llvm-project/compiler-rt/lib/hwasan
Evgeniy Stepanov 443c034391 [sanitizer] Decorate /proc/self/maps better.
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
2019-02-06 01:14:50 +00:00
..
.clang-format [sanitizer] Remove unneeded blank lines 2018-05-09 00:44:26 +00:00
CMakeLists.txt [HWASAN] Add support for memory intrinsics 2018-12-20 09:10:03 +00:00
hwasan.cc [sanitizer] Decorate /proc/self/maps better. 2019-02-06 01:14:50 +00:00
hwasan.h hwasan: Add __hwasan_init_static() function. 2019-01-31 23:37:12 +00:00
hwasan.syms.extra
hwasan_allocator.cc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hwasan_allocator.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hwasan_blacklist.txt
hwasan_checks.h [HWASAN] Improve tag mismatch diagnostics 2019-01-21 09:51:10 +00:00
hwasan_dynamic_shadow.cc Mark __rela_iplt_{start,end} as weak. 2019-02-01 00:43:31 +00:00
hwasan_dynamic_shadow.h hwasan: Add __hwasan_init_static() function. 2019-01-31 23:37:12 +00:00
hwasan_flags.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hwasan_flags.inc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hwasan_interceptors.cc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hwasan_interface_internal.h hwasan: Add __hwasan_init_static() function. 2019-01-31 23:37:12 +00:00
hwasan_linux.cc hwasan: Add __hwasan_init_static() function. 2019-01-31 23:37:12 +00:00
hwasan_mapping.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hwasan_memintrinsics.cc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hwasan_new_delete.cc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hwasan_poisoning.cc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hwasan_poisoning.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hwasan_report.cc [hwasan] Implement print_module_map flag. 2019-01-25 02:05:25 +00:00
hwasan_report.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hwasan_thread.cc hwasan: Add __hwasan_init_static() function. 2019-01-31 23:37:12 +00:00
hwasan_thread.h hwasan: Add __hwasan_init_static() function. 2019-01-31 23:37:12 +00:00
hwasan_thread_list.cc [hwasan] Record and display stack history in stack-based reports. 2018-09-24 23:03:34 +00:00
hwasan_thread_list.h [hwasan] Madvise away thread aux data 2019-01-25 02:05:48 +00:00