[hwasan] Enable common syscall interceptors
authorThurston Dang <thurston@google.com>
Thu, 27 Apr 2023 22:05:46 +0000 (22:05 +0000)
committerThurston Dang <thurston@google.com>
Thu, 27 Apr 2023 23:13:29 +0000 (23:13 +0000)
commitde79b0baa12d7528a11d4b830fed698b7290df01
tree276b5c6574b5deb244252cc853323cfe53304f8a
parentf9b3e3411cc09393afecfdef6439a77e9ba77cc9
[hwasan] Enable common syscall interceptors

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

Differential Revision: https://reviews.llvm.org/D149386
compiler-rt/lib/hwasan/hwasan_interceptors.cpp
compiler-rt/test/hwasan/TestCases/Linux/syscalls.cpp [new file with mode: 0644]