forked from OSchip/llvm-project
443c034391
Summary: 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. Replace shm_open with internal_open("/dev/shm/%s"). Shm_open is problematic because it calls libc open() which may be intercepted. 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. Reviewers: pcc, vitalybuka Subscribers: srhines, kubamracek, jfb, llvm-commits, kcc Differential Revision: https://reviews.llvm.org/D57720 llvm-svn: 353255 |
||
---|---|---|
.. | ||
.clang-format | ||
CMakeLists.txt | ||
hwasan.cc | ||
hwasan.h | ||
hwasan.syms.extra | ||
hwasan_allocator.cc | ||
hwasan_allocator.h | ||
hwasan_blacklist.txt | ||
hwasan_checks.h | ||
hwasan_dynamic_shadow.cc | ||
hwasan_dynamic_shadow.h | ||
hwasan_flags.h | ||
hwasan_flags.inc | ||
hwasan_interceptors.cc | ||
hwasan_interface_internal.h | ||
hwasan_linux.cc | ||
hwasan_mapping.h | ||
hwasan_memintrinsics.cc | ||
hwasan_new_delete.cc | ||
hwasan_poisoning.cc | ||
hwasan_poisoning.h | ||
hwasan_report.cc | ||
hwasan_report.h | ||
hwasan_thread.cc | ||
hwasan_thread.h | ||
hwasan_thread_list.cc | ||
hwasan_thread_list.h |