llvm-project/compiler-rt/test/hwasan/TestCases
Peter Collingbourne d11ea6518c hwasan: Teach the runtime to identify the local variable being accessed in UAR reports.
Each function's PC is recorded in the ring buffer. From there we can access
the function's local variables and reconstruct the tag of each one with the
help of the information printed by llvm-symbolizer's new FRAME command. We
can then find the variable that was likely being accessed by matching the
pointer's tag against the reconstructed tag.

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

llvm-svn: 364607
2019-06-27 23:16:13 +00:00
..
Linux [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* 2019-06-27 20:56:04 +00:00
Posix [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* 2019-06-27 20:56:04 +00:00
abort-message-android.cc [hwasan] Add entire report to abort message on Android. 2018-11-09 21:54:03 +00:00
allocator_returns_null.cc [HWASan] Disable allocator_returns_null.cc test on Android. 2018-06-08 00:56:49 +00:00
cfi.cc [hwasan] Link ubsan_cxx to shared runtime library. 2018-12-12 22:56:00 +00:00
check-interface.cc [HWASan] Add "N" suffix to generic __hwasan_load/store. 2018-04-18 22:05:18 +00:00
deep-recursion.c Fix typo in test cases as well. 2018-12-15 07:08:04 +00:00
double-free.c [hwasan] use thread-local ring buffers to properly report heap-use-after-free 2018-08-30 22:11:56 +00:00
halt-on-error.cc [hwasan] Implement -fsanitize-recover=hwaddress. 2017-12-20 19:05:44 +00:00
heap-buffer-overflow.c [hwasan] Switch to 64 allocator with a dense size class map. 2019-01-03 23:19:02 +00:00
hwasan-print-shadow.cc [hwasan] Add a basic API. 2018-08-15 00:39:35 +00:00
longjmp.c [hwasan] make error reporting look more like in asan, print the memory tag around the buggy access, simplify one test 2018-08-22 22:55:16 +00:00
malloc-test.c [hwasan] Fix new[] with zero size. 2018-08-31 17:49:49 +00:00
malloc_bisect.c Runtime flags for malloc bisection. 2019-02-15 18:38:14 +00:00
malloc_fill.cc [hwasan] Add malloc_fill_byte and free_fill_byte flags. 2018-08-16 20:13:09 +00:00
many-threads-uaf.c [hwasan] print thread IDs when reporting a bug (also had to fix pthread_create on Linux) 2018-09-05 01:16:50 +00:00
mem-intrinsics-zero-size.c hwasan: Ignore loads and stores of size 0. 2019-01-09 00:44:13 +00:00
mem-intrinsics.c [HWASAN] Improve tag mismatch diagnostics 2019-01-21 09:51:10 +00:00
new-test.cc [hwasan] Fix new[] with zero size. 2018-08-31 17:49:49 +00:00
override-new-delete.cpp Set an output file name for the override-new-delete.cpp test. 2019-06-07 02:30:58 +00:00
print-memory-usage-android.c [hwasan] Re-enable print-memory-usage-android test. 2018-09-10 22:22:02 +00:00
print-memory-usage.c [hwasan] relax the rint-memory-usage.c test further 2018-09-07 01:36:34 +00:00
print-module-map.c [hwasan] Implement print_module_map flag. 2019-01-25 02:05:25 +00:00
pthread_exit.c [hwasan] fix pthread_exit 2018-09-06 22:13:43 +00:00
random-align-right.c hwasan: Use bits [3..11) of the ring buffer entry address as the base stack tag. 2019-06-17 23:39:51 +00:00
realloc-after-free.c [hwasan] use thread-local ring buffers to properly report heap-use-after-free 2018-08-30 22:11:56 +00:00
realloc-test.cc [sanitizer] Implement reallocarray. 2019-05-01 17:33:01 +00:00
register-dump-no-fp.cc Removed regiser dump checks from FP unit test. 2019-04-19 17:36:58 +00:00
register-dump-read.c [HWASan] Save + print registers when tag mismatch occurs in AArch64. 2019-03-08 21:22:35 +00:00
rich-stack.c [hwasan] Record and display stack history in stack-based reports. 2018-09-24 23:03:34 +00:00
sanitizer_malloc.cc [sanitizer] Implement reallocarray. 2019-05-01 17:33:01 +00:00
sizes.cpp [sanitizer] Implement reallocarray. 2019-05-01 17:33:01 +00:00
stack-history-length.c hwasan: Use bits [3..11) of the ring buffer entry address as the base stack tag. 2019-06-17 23:39:51 +00:00
stack-oob.c [hwasan] rename two .cc tests into .c 2018-09-08 01:27:10 +00:00
stack-uar-dynamic.c hwasan: Teach the runtime to identify the local variable being accessed in UAR reports. 2019-06-27 23:16:13 +00:00
stack-uar-realign.c hwasan: Teach the runtime to identify the local variable being accessed in UAR reports. 2019-06-27 23:16:13 +00:00
stack-uar.c hwasan: Teach the runtime to identify the local variable being accessed in UAR reports. 2019-06-27 23:16:13 +00:00
tag_in_free.c Fix false positive when tag_in_malloc=0,tag_in_free=1. 2019-02-15 18:38:03 +00:00
tail-magic.c [hwasan] implement free_checks_tail_magic=1 2018-11-17 00:25:17 +00:00
thread-uaf.c [hwasan] print all threads in a bug report 2018-10-10 18:56:31 +00:00
try-catch.cc [hwasan] Limit try-catch tests to aarch64. 2019-05-17 18:40:06 +00:00
uaf_with_rb_distance.c [hwasan] On every use-after-free print a developer note: the index of this heap object in the thread's deallocation ring buffer. Mostly useful to hwasan developers, will hopefully let us know the good size of the deallocation ring buffer 2018-09-12 00:58:15 +00:00
use-after-free.c [hwasan] Fix tests after .cc->.cpp renaming. 2019-02-27 20:50:35 +00:00