-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[Clang][attr] Add 'cfi_salt' attribute #141846
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
bfdf16c
[Clang][attr] Add cfi_salt attribute
bwendling 04d2c0b
Don't use AttributedType. Instead add it as a trailing object to the …
bwendling 94d10c5
Merge branch 'main' into kcfi-salt
bwendling bbce666
Merge branch 'llvm:main' into kcfi-salt
bwendling e36bc7c
Merge branch 'llvm:main' into kcfi-salt
bwendling b0c8a2e
Merge branch 'llvm:main' into kcfi-salt
bwendling 9e164e5
Merge branch 'llvm:main' into kcfi-salt
bwendling eef5f43
Reserve attribute to C-only and rename to 'kcfi_salt', indicating tha…
bwendling 46d0edd
Alphabetize.
bwendling f4a54d9
Reformat.
bwendling e9aaaf5
Use correct preferred type and fix the attribute documentation.
bwendling 0b13d3a
Merge branch 'llvm:main' into kcfi-salt
bwendling cec156a
Rename 'kcfi_salt' to 'cfi_salt' to indicate that it's not just for t…
bwendling 44950cc
Reject function protos that have different cfi_salt values.
bwendling 514523b
fixup! Reject function protos that have different cfi_salt values.
bwendling f74c5ea
Remove C++ test. Try to get along with only a 'TypeAttr' instead of '…
bwendling 527297f
Use the modern syntax for the attribute. Remove the C++ mangled name …
bwendling 2df94a9
Re-add attributes on function vars and decls.
bwendling 66cb83b
Fix testcase.
bwendling 516aa05
Add extra test.
bwendling 1b1d3ab
Enhance the attribute docs.
bwendling 6d00a7e
Use 'FunctionList' for the Subjects.
bwendling 2e9022d
Use RST instead of MD.
bwendling 7f2de1c
Improve docs. It was totally just me and not Claude rewriting it.
bwendling 44c179d
Add missing backtick.
bwendling 029ee8e
Add tests for a salt that's empty.
bwendling 06e43bd
Change number of arguments check. Add test for it. And move the diagn…
bwendling 132995f
Specify that we accept non-NULL ASCII strings.
bwendling cd975ea
Add a diagnostic for K&R-style functions without a prototype.
bwendling abe3bde
Improve the docs by explaining why the salt improves CFI safety.
bwendling c2dba02
Update clang/test/Sema/attr-cfi-salt.c
bwendling 95698c2
Return 'true' when the argument type isn't a string.
bwendling 09a446a
Merge branch 'main' into kcfi-salt
bwendling ae91164
Merge branch 'main' into kcfi-salt
bwendling 9bd2c95
Reformat
bwendling 9700cac
Add back accidentally removed code.
bwendling File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.