Globals that shouldn't be sanitized are currently communicated to HWASan
through the use of the llvm.asan.globals IR metadata. Now that we have
an on-GV attribute, use it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
FYI - if you want to check that the attribute is being emitted correctly for sanitizer ignorelists, one uses the test in the parent patch: https://reviews.llvm.org/D126929#change-pnXipICIxofc
If you want to check that the attribute is being emitted correctly for __attribute__((no_sanitize('hwaddress'))), you'll have to check the child patch, as that's not currently possible :).