You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR updates fiber/MSan integration by enabling BOOST_USE_MSAN for _boost_context, updating the Boost submodule to a commit that adds proper MSan fiber-switch hooks, and removing local __msan_unpoison from FiberStack::allocate. The change is small, targeted, and consistent with upstream sanitizer integration; I did not find correctness, safety, or performance issues in the touched paths.
Missing context
⚠️ No CI report links or run results were provided in this review context, so runtime validation under MSan could not be verified here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add MSan support for fibers
I've looked at github, and there are 0 usage of
__msan_start_switch_fiber/__msan_finish_switch_fiberoutside of LLVM - https://github.com/search?q=%22__msan_start_switch_fiber%22++-path%3A%22compiler-rt%22+-path%3A%22msan_interface.h%22+-path%3A%22msan%2Fmsan.cpp%22+-path%3A%22msan_interface_internal.h%22+-path%3A%22swapcontext_annotation.cpp%22+&type=code&ref=advsearchSo either it is a problem in other places, or it is not mandatory
Also I've tried to reproduce the issue with simple fibers, w/o any luck, but probably this is what we are hitting here.
Refs: ClickHouse/boost#45
Reverts: #100138
Closes: #101566