-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Sanitizers target modificators #138736
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
base: master
Are you sure you want to change the base?
Sanitizers target modificators #138736
Conversation
This comment has been minimized.
This comment has been minimized.
7526d38
to
0777169
Compare
This comment has been minimized.
This comment has been minimized.
0777169
to
f454b02
Compare
This comment has been minimized.
This comment has been minimized.
f454b02
to
509e0b3
Compare
This comment has been minimized.
This comment has been minimized.
509e0b3
to
1f20a51
Compare
This comment has been minimized.
This comment has been minimized.
1f20a51
to
fc95e77
Compare
This comment has been minimized.
This comment has been minimized.
e025a55
to
c54dcfc
Compare
☔ The latest upstream changes (presumably #138974) made this pull request unmergeable. Please resolve the merge conflicts. |
r? compiler |
Do we have any tests that check simultaneous use of multiple sanitizers? For example, if I enable both shadow-call-stack and kcfi at the same time, then both must also be enabled in deps. |
@rustbot claim |
@@ -0,0 +1,7 @@ | |||
//@ no-prefer-dynamic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Should test file names be separated by hyphen ('-') instead?
Unfortunately, I don't think we do at this moment. (Others feel free to correct me if I'm wrong.) Something somewhat related that I also wanted us to have that we don't at the moment is build |
c54dcfc
to
3d27c96
Compare
Renamed '_' to '-' in tests, added test with safestack + kcfi sanitizers. Btw, which target supports both kcfi and shadow-call-stack in the example? About |
This comment has been minimized.
This comment has been minimized.
…t modifiers with custom consistency check function
3d27c96
to
280dfab
Compare
Depends on bool flag fix: #138483.
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.
Many test errors was with sanizer flags inconsistent with std deps. Tests are fixed with
-C unsafe-allow-abi-mismatch
.