This is an archive of the discontinued LLVM Phabricator instance.

[hwasan] Respect llvm.asan.globals.
ClosedPublic

Authored by eugenis on Jun 23 2021, 4:27 PM.

Details

Summary

This enable no_sanitize C++ attribute to exclude globals from hwasan
testing, and automatically excludes other sanitizers' globals (such as
ubsan location descriptors).

Diff Detail

Event Timeline

eugenis created this revision.Jun 23 2021, 4:27 PM
eugenis requested review of this revision.Jun 23 2021, 4:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2021, 4:27 PM

ASan does very fancy things to run this logic only once and access it in a function pass.
HWASan is a module pass and it can simply run the code once in initialization.

pcc accepted this revision.Jun 23 2021, 5:12 PM

LGTM

This revision is now accepted and ready to land.Jun 23 2021, 5:12 PM
eugenis updated this revision to Diff 354128.Jun 23 2021, 6:20 PM

inclusive language

This revision was landed with ongoing or failed builds.Jun 23 2021, 6:38 PM
This revision was automatically updated to reflect the committed changes.