[PATCH] D65768: hwasan: Untag global variable addresses in tests.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 12:42:04 PDT 2019
pcc created this revision.
pcc added a reviewer: hctim.
Herald added subscribers: Sanitizers, kubamracek.
Herald added projects: Sanitizers, LLVM.
pcc added a child revision: D65770: hwasan: Instrument globals..
Once we start instrumenting globals, all addresses including those of string literals
that we pass to the operating system will start being tagged. Since we can't rely
on the operating system to be able to cope with these addresses, we need to untag
them before passing them to the operating system. This change introduces a macro
that does so and uses it everywhere it is needed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D65768
Files:
compiler-rt/test/hwasan/TestCases/Linux/aligned_alloc-alignment.cpp
compiler-rt/test/hwasan/TestCases/Linux/decorate-proc-maps.c
compiler-rt/test/hwasan/TestCases/Linux/pvalloc-overflow.cpp
compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c
compiler-rt/test/hwasan/TestCases/Posix/posix_memalign-alignment.cpp
compiler-rt/test/hwasan/TestCases/allocator_returns_null.cpp
compiler-rt/test/hwasan/TestCases/heap-buffer-overflow.c
compiler-rt/test/hwasan/TestCases/malloc_fill.cpp
compiler-rt/test/hwasan/TestCases/many-threads-uaf.c
compiler-rt/test/hwasan/TestCases/mem-intrinsics.c
compiler-rt/test/hwasan/TestCases/sizes.cpp
compiler-rt/test/hwasan/TestCases/tail-magic.c
compiler-rt/test/hwasan/TestCases/use-after-free.c
compiler-rt/test/hwasan/TestCases/utils.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65768.213432.patch
Type: text/x-patch
Size: 14946 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190805/60b0dec8/attachment.bin>
More information about the llvm-commits
mailing list