forked from OSchip/llvm-project
45328240dc
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 |
||
---|---|---|
.. | ||
tests | ||
CMakeLists.txt | ||
msan.cc | ||
msan.h | ||
msan.syms.extra | ||
msan_allocator.cc | ||
msan_allocator.h | ||
msan_blacklist.txt | ||
msan_chained_origin_depot.cc | ||
msan_chained_origin_depot.h | ||
msan_flags.h | ||
msan_flags.inc | ||
msan_interceptors.cc | ||
msan_interface_internal.h | ||
msan_linux.cc | ||
msan_new_delete.cc | ||
msan_origin.h | ||
msan_poisoning.cc | ||
msan_poisoning.h | ||
msan_report.cc | ||
msan_thread.cc | ||
msan_thread.h |