- Include <cet.h> in sanitizer_common/sanitizer_asm.h to mark Intel CET support when Intel CET is enabled.
- Add _CET_ENDBR to function entries in assembly codes so that ENDBR instruction will be generated when Intel CET is enabled.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
[compiler-rt] Support Intel CET
compiler-rt consists of sanitizers, builtins (similar to libgcc), xray, orc (for JIT), and a bunch of other things.
If this is for sanitizer functions which may be called indirectly, using a [sanitizer] tag may be better.
Has this been verified on CET capable hardware by testing check-all (which includes check-asan check-msan check-tsan check-ubsan ...)?
I assume that builtins will be made CET compatible by D109811.