Set KCFI type metadata for the sanitizer constructors to prevent
runtime failures when these functions are indirectly called in
instrumented code. This fixes a compatibility issue with KASAN and
-fsanitize=kcfi in the Linux kernel.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/test/Instrumentation/AddressSanitizer/kcfi.ll | ||
|---|---|---|
| 11 | fix the next line as well | |
Add a comment that this matches CodeGenModule::CreateKCFITypeId in Clang.