llvm-project/compiler-rt/test
Dmitry Vyukov cc1f318b5a tsan: support pie binaries on newer kernels
4.1+ Linux kernels map pie binaries at 0x55:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d1fd836dcf00d2028c700c7e44d2c23404062c90
Currently tsan does not support app memory at 0x55 (https://github.com/google/sanitizers/issues/503).
Older kernels also map pie binaries at 0x55 when ASLR is disables (most notably under gdb).

This change extends tsan mapping for linux/x86_64 to cover 0x554-0x568 app range and fixes both 4.1+ kernels and gdb.

This required to slightly shrink low and high app ranges and move heap. The mapping become even more non-linear, since now we xor lower bits. Now even a continuous app range maps to split, intermixed shadow ranges. This breaks ShadowToMemImpl as it assumes linear mapping at least within a continuous app range (however it turned out to be already broken at least on arm64/42-bit vma as uncovered by r281970). So also change ShadowToMemImpl to hopefully a more robust implementation that does not assume a linear mapping.

llvm-svn: 282152
2016-09-22 13:42:02 +00:00
..
BlocksRuntime Move tests for BlocksRuntime and builtins to corresponding directories under test/ 2014-02-14 09:47:31 +00:00
asan [asan] Fix GlobalAddressDescription::Print() 2016-09-20 20:33:18 +00:00
builtins [compiler-rt][tests] cpu_model_test.c test fails to compile if X86 is not clang's default target 2016-08-18 14:39:39 +00:00
cfi Remove obsolete XFAIL. 2016-09-21 17:41:03 +00:00
dfsan [mips] XFAIL the new mips64el compiler-rt tests that fail on clang-cmake-mipsel. 2016-08-12 11:56:36 +00:00
esan [ESan][MIPS] Fix tests struct-simple.cpp on MIPS 2016-09-22 08:36:54 +00:00
interception [Darwin] Exclude interception union tests on Darwin and Android 2016-08-04 04:46:39 +00:00
lsan [lsan] one more test fix to please the Debian Sid bot (this time, confirmed on the proper machine). Apparently, newer glibc uses slightly more stack 2016-08-25 19:08:10 +00:00
msan [sanitizer] Add interceptor for ttyname_r 2016-09-09 23:09:34 +00:00
profile Try to fix another profile test 2016-09-01 14:44:02 +00:00
safestack [asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR false positive with LTO (compiler-rt part) 2016-09-14 14:09:18 +00:00
sanitizer_common Revert "[sanitizers] Update sanitizers test to better match glibc internals" 2016-09-21 10:06:37 +00:00
scudo [scudo] Fix a bug in the new Secondary Allocator 2016-09-20 22:17:59 +00:00
tsan tsan: support pie binaries on newer kernels 2016-09-22 13:42:02 +00:00
ubsan [ubsan] fix the test to me more resistent against changes in the sanitizer allocator 2016-08-24 21:03:28 +00:00
xray [compiler-rt][XRay] Initial per-thread inmemory logging implementation 2016-08-26 06:39:33 +00:00
CMakeLists.txt [CMake] Adding compiler-rt-test-depends target 2016-09-01 18:26:51 +00:00
lit.common.cfg [asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR false positive with LTO (compiler-rt part) 2016-09-14 14:09:18 +00:00
lit.common.configured.in [sanitizers] Make it possible to XFAIL on the effective target, not just the default. 2016-08-09 11:50:53 +00:00