This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by dvyukov on Feb 15 2021, 3:12 AM.

Details

Reviewers
vitalybuka
Summary

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.

Diff Detail