-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some sanitizers should be target modifiers #138453
Comments
MemorySanitizer and ThreadSanitizer should be considered target modifiers as well. |
Ok, thanks. Updated. |
Also, from zulip thread: they should be target modifiers iff they lead to unsoundness when different values of the flag are used for different parts of what eventually becomes a single binary 18:20 18:21 18:22 18:25 18:25 18:27 |
Draft PR: #138736. Has problems with tests using sanitizers inconsistent with std deps. |
Using -C unsafe-allow-abi-mismatch in existing tests should be fine. Ideally tests would rebuild the standard library, but it is not clear to me whether it is worth it given the complexity and compile time cost. |
Yes, fixed. |
Some sanitizers need to be target modifiers, and some do not. For now, we should mark all sanitizers as target modifiers except for these: AddressSanitizer, LeakSanitizer
For kCFI, the helper flag
-Zsanitizer-cfi-normalize-integers
should also be a target modifier. Same applies to #138311 when it lands.The shadow-call-stack sanitizer is currently being considered as a target modifier for simplicity. However, there are cases where it does not need to be a target modifier.
Please see the target modifiers tracking issue for more details. See also the Tracking Issue for stabilizing the sanitizers.
cc @rcvalle @azhogin @maurer
@rustbot label F-target_modifiers A-sanitizers
The text was updated successfully, but these errors were encountered: