This is an archive of the discontinued LLVM Phabricator instance.

[hwasan] LLVM-level flags for linux kernel-compatible hwasan instrumentation.
ClosedPublic

Authored by eugenis on Jan 16 2018, 3:57 PM.

Details

Summary

-hwasan-mapping-offset defines the non-zero shadow base address.
-hwasan-kernel disables calls to __hwasan_init in module constructors.
Unlike ASan, -hwasan-kernel does not force callback instrumentation.
This is controlled separately with -hwasan-instrument-with-calls.

Event Timeline

eugenis created this revision.Jan 16 2018, 3:57 PM
kcc accepted this revision.Jan 16 2018, 4:42 PM

LGTM

This revision is now accepted and ready to land.Jan 16 2018, 4:42 PM
This revision was automatically updated to reflect the committed changes.