This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizer] Add munmap interceptor in sanitizer_common
ClosedPublic

Authored by kstoimenov on Jun 9 2023, 5:10 PM.

Diff Detail

Event Timeline

kstoimenov created this revision.Jun 9 2023, 5:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2023, 5:10 PM
Herald added a subscriber: Enna1. · View Herald Transcript
kstoimenov requested review of this revision.Jun 9 2023, 5:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2023, 5:10 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Fixed tests.

What is the use case for this? If sanitizers other than TSan haven't needed to intercept munmap, adding it to sanitizer-common seems to just be adding overhead and possible complications.

vitalybuka accepted this revision.Jun 12 2023, 11:13 AM

I assume there is no test, as there is sanitizer_common tests with munmap

This revision is now accepted and ready to land.Jun 12 2023, 11:13 AM

What is the use case for this? If sanitizers other than TSan haven't needed to intercept munmap, adding it to sanitizer-common seems to just be adding overhead and possible complications.

We want the similar to UnmapShadow for other sanitizers to reset shadown to 0 and release physical pages.

This revision was landed with ongoing or failed builds.Jun 12 2023, 2:34 PM
This revision was automatically updated to reflect the committed changes.