This is an archive of the discontinued LLVM Phabricator instance.

[ASan] Implement malloc zone enumeration for Darwin.
Needs RevisionPublic

Authored by delcypher on Jan 20 2019, 5:57 PM.

Details

Summary

The implementation supports both in-process and out-of-process
enumeration.

The implementation relies on the ForEachChunk() method of
the allocators and the LsanMetadataRemoteView class to enumerate
live allocations.

The implementation is only for ASan right now but should be easy to
port to LSan in the future.

rdar://problem/45284065

Event Timeline

delcypher created this revision.Jan 20 2019, 5:57 PM
Herald added a subscriber: Restricted Project. · View Herald TranscriptJan 20 2019, 5:57 PM

Update for changes to VMReadContext.

  • Use new CopyFromTarget(...) method.
  • Use new ThisTASVT<AddressSpaceView> template.
vitalybuka requested changes to this revision.Apr 24 2019, 11:14 AM

Removing stale patches from the "Ready to Review" list.

This revision now requires changes to proceed.Apr 24 2019, 11:14 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 24 2019, 11:14 AM
yln resigned from this revision.Jul 22 2021, 4:14 PM