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
Unit Tests
Unit Tests
| Time | Test | |
|---|---|---|
| 60,100 ms | x64 debian > libFuzzer.libFuzzer::large.test | |
| 60,060 ms | x64 debian > libFuzzer.libFuzzer::minimize_crash.test |
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.