hanchenye-llvm-project/compiler-rt/lib/msan
Evgeniy Stepanov 45328240dc [msan] Mprotect all inaccessible memory regions.
Fix 2 bugs in memory mapping setup:
- the invalid region at offset 0 was not protected because mmap at
  address 0 fails with EPERM on most Linux systems. We did not
  notice this because the check condition was flipped: the code was
  checking that mprotect has failed. And the test that was supposed
  to catch this was weakened by the mitigations in the mmap
  interceptor.
- when running without origins, the origin shadow range was left
  unprotected.

The new test ensures that mmap w/o MAP_FIXED always returns valid
application addresses.

llvm-svn: 238109
2015-05-24 02:47:59 +00:00
..
tests [Sanitizer] Fix/suppress compiler warnings in unit tests. 2015-03-04 21:54:20 +00:00
CMakeLists.txt Allow UBSan+MSan and UBSan+TSan combinations (Clang part). 2015-04-28 00:56:48 +00:00
msan.cc [msan] Mprotect all inaccessible memory regions. 2015-05-24 02:47:59 +00:00
msan.h [msan] Mprotect all inaccessible memory regions. 2015-05-24 02:47:59 +00:00
msan.syms.extra Export __ubsan_* symbols from MSan and TSan runtimes. 2015-04-28 01:20:34 +00:00
msan_allocator.cc [msan] Better use-after-free reports. 2015-01-22 13:33:16 +00:00
msan_allocator.h [msan] Introduce MsanThread. Move thread-local allocator cache out of TLS. 2014-04-04 09:47:41 +00:00
msan_blacklist.txt
msan_chained_origin_depot.cc [msan] Change the way origin ids are built. 2014-12-03 13:58:40 +00:00
msan_chained_origin_depot.h [msan] Make origin tracking fork-safe. 2014-09-04 10:36:14 +00:00
msan_flags.h [sanitizer] Flag parser rewrite. 2015-01-15 15:13:43 +00:00
msan_flags.inc [Sanitizer] Change the runtime flag representation. 2015-01-07 00:38:00 +00:00
msan_interceptors.cc [sanitizer] Recognize static TLS in __tls_get_addr interceptor. 2015-05-16 00:34:15 +00:00
msan_interface_internal.h [msan] Fix MsanTest to pass in track_origins=2 mode. 2015-02-26 15:19:33 +00:00
msan_linux.cc [msan] Mprotect all inaccessible memory regions. 2015-05-24 02:47:59 +00:00
msan_new_delete.cc [MSan] Prepare for splitting msan_new_delete.cc into a separate library. NFC. 2015-04-27 22:08:04 +00:00
msan_origin.h [msan] Fix MsanTest to pass in track_origins=2 mode. 2015-02-26 15:19:33 +00:00
msan_poisoning.cc [msan] Refactor shadow operations. 2015-01-21 16:42:30 +00:00
msan_poisoning.h [msan] Refactor shadow operations. 2015-01-21 16:42:30 +00:00
msan_report.cc [Sanitizer] Be consistent about separating ==%PID== and logged data. 2015-03-31 18:16:42 +00:00
msan_thread.cc [msan] Stop calling pthread_getspecific in signal handlers. 2014-12-17 10:30:06 +00:00
msan_thread.h [msan] Disable chained origins in signal handlers. 2014-04-23 14:01:57 +00:00