This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer-common] Expand testing for 56-bit address spaces
ClosedPublic

Authored by thurston on Apr 25 2023, 11:18 AM.

Details

Summary

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.

Diff Detail

Event Timeline

thurston created this revision.Apr 25 2023, 11:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 11:18 AM
thurston requested review of this revision.Apr 25 2023, 11:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 11:18 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
thurston edited the summary of this revision. (Show Details)Apr 25 2023, 11:19 AM
thurston added reviewers: vitalybuka, dvyukov.
vitalybuka accepted this revision.Apr 25 2023, 7:40 PM
This revision is now accepted and ready to land.Apr 25 2023, 7:40 PM
This revision was landed with ongoing or failed builds.Apr 25 2023, 8:04 PM
This revision was automatically updated to reflect the committed changes.
compiler-rt/test/sanitizer_common/TestCases/Linux/mmap_56bit_test.c