llvm-project/llvm/test/Instrumentation/HWAddressSanitizer
Alex Shlyapnikov 99cf54baa6 [HWASan] Introduce non-zero based and dynamic shadow memory (LLVM).
Summary:
Support the dynamic shadow memory offset (the default case for user
space now) and static non-zero shadow memory offset
(-hwasan-mapping-offset option). Keeping the the latter case around
for functionality and performance comparison tests (and mostly for
-hwasan-mapping-offset=0 case).

The implementation is stripped down ASan one, picking only the relevant
parts in the following assumptions: shadow scale is fixed, the shadow
memory is dynamic, it is accessed via ifunc global, shadow memory address
rematerialization is suppressed.

Keep zero-based shadow memory for kernel (-hwasan-kernel option) and
calls instreumented case (-hwasan-instrument-with-calls option), which
essentially means that the generated code is not changed in these cases.

Reviewers: eugenis

Subscribers: srhines, llvm-commits

Differential Revision: https://reviews.llvm.org/D45840

llvm-svn: 330475
2018-04-20 20:04:04 +00:00
..
X86 hwasan: add -fsanitize=kernel-hwaddress flag 2018-04-13 18:05:21 +00:00
alloca.ll [HWASan] Introduce non-zero based and dynamic shadow memory (LLVM). 2018-04-20 20:04:04 +00:00
atomic.ll [hwasan] Fix inline instrumentation. 2018-02-21 19:52:23 +00:00
basic.ll [HWASan] Introduce non-zero based and dynamic shadow memory (LLVM). 2018-04-20 20:04:04 +00:00
kernel-alloca.ll [hwasan] Fix inline instrumentation. 2018-02-21 19:52:23 +00:00
kernel-inline.ll asan: add kernel inline instrumentation test (retry) 2018-02-21 19:40:55 +00:00
kernel.ll hwasan: add -fsanitize=kernel-hwaddress flag 2018-04-13 18:05:21 +00:00
with-calls.ll [hwasan] Rename sized load/store callbacks to be consistent with ASan. 2018-01-16 23:15:08 +00:00