This is an archive of the discontinued LLVM Phabricator instance.

[hwasan] Enable common syscall interceptors
ClosedPublic

Authored by thurston on Apr 27 2023, 3:06 PM.

Details

Summary

This adds the sanitizer_common syscall hooks to HWASan and also defines
the COMMON_SYSCALL_PRE_{READ/WRITE}_RANGE macros.

Diff Detail

Event Timeline

thurston created this revision.Apr 27 2023, 3:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2023, 3:06 PM
Herald added a subscriber: Enna1. · View Herald Transcript
thurston requested review of this revision.Apr 27 2023, 3:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2023, 3:06 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Probably we can port test/asan/TestCases/Linux/syscalls.cpp

Probably we can port test/asan/TestCases/Linux/syscalls.cpp

with relatively small buffer on heap, so we can use aliasing mode

thurston updated this revision to Diff 517742.Apr 27 2023, 4:00 PM

This adds hwasan/TestCases/Linux/syscalls.cpp (adapted from asan),
per Vitaly's suggestion.

This revision is now accepted and ready to land.Apr 27 2023, 4:11 PM
This revision was landed with ongoing or failed builds.Apr 27 2023, 4:21 PM
This revision was automatically updated to reflect the committed changes.