llvm-project/compiler-rt/lib
Jay Foad 198337bf42 [msan] Fix SetShadow for mappings at the end of the application address space
Summary:
On PPC64 if you disable ASLR (or run under gdb) you're likely to see
mmap returning a mapping right at the end of the application address
space region. This caused SetShadow to call MEM_TO_SHADOW() on the
last+1 address in the region, which seems wrong to me; how can
MEM_TO_SHADOW() distinguish this from the first address in the following
region?

Fixed by only calling MEM_TO_SHADOW() once, on the start address.

Reviewers: samsonov, wschmidt, eugenis

Reviewed By: eugenis

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10735

llvm-svn: 240690
2015-06-25 20:47:59 +00:00
..
BlocksRuntime Move tests for BlocksRuntime and builtins to corresponding directories under test/ 2014-02-14 09:47:31 +00:00
asan Working on reconciling out-of-tree patches to compiler-rt for building for iOS. 2015-06-23 21:39:54 +00:00
builtins Fix incorrect truncation at the overflow boundary 2015-06-23 20:24:53 +00:00
dfsan [dfsan] ignore more __sanitizer callbacks 2015-05-23 01:56:39 +00:00
interception CMake: Stop using LLVM's custom parse_arguments. NFC 2015-06-19 03:39:24 +00:00
lsan CMake: Stop using LLVM's custom parse_arguments. NFC 2015-06-19 03:39:24 +00:00
msan [msan] Fix SetShadow for mappings at the end of the application address space 2015-06-25 20:47:59 +00:00
profile CMake: Stop using LLVM's custom parse_arguments. NFC 2015-06-19 03:39:24 +00:00
safestack SafeStack: Add another missing header to try to fix FreeBSD build. 2015-06-24 18:16:05 +00:00
sanitizer_common Enable memory sanitizer for PPC64 2015-06-25 06:22:31 +00:00
tsan tsan: fix handling of dup2 2015-06-25 20:32:04 +00:00
ubsan [CMake] Fix PR23539: Don't reference C++ ABI symbols prior to Mac OS 10.9. 2015-06-25 00:57:42 +00:00
CMakeLists.txt Protection against stack-based memory corruption errors using SafeStack: compiler-rt runtime support library 2015-06-15 21:08:47 +00:00
Makefile.mk Remove support for building sanitizers from Makefile/autoconf build on Linux. 2015-02-18 22:26:49 +00:00