This is an archive of the discontinued LLVM Phabricator instance.

[asan] Optimize Quarantine of secondary allocations
ClosedPublic

Authored by vitalybuka on Jun 21 2023, 10:56 PM.

Details

Summary

For the secondary allocation we don't need poison and fill memory if we
skip quarantine, and we don't need to poison after quarantine. In both
cases the secondary allocator will unmap memory and unpoison the shadow
from get_allocator().Deallocate().

Depends on D153496.

Diff Detail

Event Timeline

vitalybuka created this revision.Jun 21 2023, 10:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2023, 10:56 PM
Herald added a subscriber: Enna1. · View Herald Transcript
vitalybuka requested review of this revision.Jun 21 2023, 10:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2023, 10:56 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
thurston accepted this revision.Jun 22 2023, 9:04 AM
This revision is now accepted and ready to land.Jun 22 2023, 9:04 AM
This revision was landed with ongoing or failed builds.Jun 22 2023, 11:24 AM
This revision was automatically updated to reflect the committed changes.