[PATCH] D57720: [sanitizer] Decorate /proc/self/maps on Android.
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 4 15:55:15 PST 2019
eugenis created this revision.
eugenis added reviewers: pcc, vitalybuka.
Herald added subscribers: jfb, kubamracek, srhines.
Refactor the way /proc/self/maps entries are annotated to support most
(all?) posix platforms, with a special implementation for Android.
Extend the set of decorated Mmap* calls.
Generic implementation has limits (max number of files under /dev/shm is
64K on my machine), which can be conceivably reached when sanitizing
multiple programs at once. Android implemenation is essentially free, and
enabled by default.
The test in sanitizer_common is copied to hwasan and not reused directly
because hwasan fails way too many common tests at the moment.
https://reviews.llvm.org/D57720
Files:
compiler-rt/lib/cfi/cfi.cc
compiler-rt/lib/hwasan/hwasan.cc
compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h
compiler-rt/lib/sanitizer_common/sanitizer_common.h
compiler-rt/lib/sanitizer_common/sanitizer_flags.inc
compiler-rt/lib/sanitizer_common/sanitizer_posix.cc
compiler-rt/lib/sanitizer_common/sanitizer_posix.h
compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc
compiler-rt/lib/sanitizer_common/sanitizer_win.cc
compiler-rt/test/hwasan/TestCases/Linux/decorate-proc-maps.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57720.185180.patch
Type: text/x-patch
Size: 19756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190204/753bb2ac/attachment.bin>
More information about the llvm-commits
mailing list