[sanitizer-common] Expand testing for 56-bit address spaces
authorThurston Dang <thurston@google.com>
Tue, 25 Apr 2023 18:17:32 +0000 (18:17 +0000)
committerThurston Dang <thurston@google.com>
Wed, 26 Apr 2023 02:48:56 +0000 (02:48 +0000)
commit6f66b12528cc27031b5cfa1f49bf44f99755731c
treebb19453c16c7b9290e9a1da22274d7b004e0a632
parentda0730b908a43e490430717beda8486598667ab8
[sanitizer-common] Expand testing for 56-bit address spaces

This patch adds mmap_56bit_test.c, which attempts to deliberately
mmap above 2^47. This currently exposes a failure on ASan on
systems with 56-bit user address spaces, because it allows an mmap
above 2^47 but the shadow mapping is only set up for a 2^47 user address
space.

Additionally, this patch moves pie_no_aslr from the tsan tests into
sanitizer-common, for greater test coverage.

Differential Revision: https://reviews.llvm.org/D149176
compiler-rt/test/sanitizer_common/TestCases/Linux/mmap_56bit_test.c [new file with mode: 0644]
compiler-rt/test/sanitizer_common/TestCases/Linux/pie_no_aslr.cpp [new file with mode: 0644]
compiler-rt/test/tsan/Linux/pie_no_aslr.cpp [deleted file]