diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-05-24 02:47:59 +0000 | 
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-05-24 02:47:59 +0000 | 
| commit | 45328240dcae7c6b236bf165581b255030df911f (patch) | |
| tree | 40c8ce1563333ebb22ecdecdd9a0dcaccf9bc5c6 /llvm/unittests/CodeGen/DIEHashTest.cpp | |
| parent | 65ad1602b038549dfff4e8e2fe30dac15e45189d (diff) | |
| download | llvm-45328240dcae7c6b236bf165581b255030df911f.zip llvm-45328240dcae7c6b236bf165581b255030df911f.tar.gz llvm-45328240dcae7c6b236bf165581b255030df911f.tar.bz2 | |
[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
Diffstat (limited to 'llvm/unittests/CodeGen/DIEHashTest.cpp')
0 files changed, 0 insertions, 0 deletions
