This is an archive of the discontinued LLVM Phabricator instance.

[GWP-ASan] Handle wild touches of the guarded pool.
ClosedPublic

Authored by hctim on Feb 28 2023, 8:16 AM.

Details

Summary

AllocMeta could be null when returned from __gwp_asan_get_metadata() for
a bad access into the GuardedPagePool that was never allocated.
Currently, then we dereference the null pointer, oops.

Hoist the check up and print a message (only once in recoverable mode)
about the bad memory access.

Diff Detail

Event Timeline

hctim created this revision.Feb 28 2023, 8:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2023, 8:16 AM
Herald added a subscriber: Enna1. · View Herald Transcript
hctim requested review of this revision.Feb 28 2023, 8:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2023, 8:16 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
fmayer accepted this revision.Feb 28 2023, 11:32 AM
This revision is now accepted and ready to land.Feb 28 2023, 11:32 AM
This revision was landed with ongoing or failed builds.Feb 28 2023, 2:15 PM
This revision was automatically updated to reflect the committed changes.