HomePhabricator

tsan: don't leave unmapped hole in non-app memory

Authored by dvyukov on Feb 15 2021, 2:25 AM.

Description

tsan: don't leave unmapped hole in non-app memory

If an app mmaps lots of memory, a user mmap may end up
in the tsan region for traces. Shadow for this range
overlaps with shadow for other user regions.
This causes havok: from false positives to crashes.
Don't leave unmapped holes in the traces region.

Reviewed-in: https://reviews.llvm.org/D96697

Details

Committed
dvyukovFeb 16 2021, 11:37 PM
Parents
rGa23e6b321ca6: [SampleFDO] Fix MSVC "namespace uses itself" warning (NFC)
Branches
Unknown
Tags
Unknown