This is an archive of the discontinued LLVM Phabricator instance.

[hwasan] Allow optional early shadow setup.
ClosedPublic

Authored by eugenis on Aug 10 2018, 1:37 PM.

Details

Summary

Provide __hwasan_shadow_init that can be used to initialize shadow w/o touching libc.
It can be used to bootstrap an unusual case of fully-static executable with
hwasan-instrumented libc, which needs to run hwasan code before it is ready to serve
user calls like madvise().

Event Timeline

eugenis created this revision.Aug 10 2018, 1:37 PM
vitalybuka accepted this revision.Aug 10 2018, 4:41 PM
This revision is now accepted and ready to land.Aug 10 2018, 4:41 PM
This revision was automatically updated to reflect the committed changes.