This is an archive of the discontinued LLVM Phabricator instance.

[scudo][standalone] Allow fallback to secondary if primary is full
ClosedPublic

Authored by cryptoad on Mar 19 2020, 7:55 AM.

Details

Summary

We introduced a way to fallback to the immediately larger size class for
the Primary in the event a region was full, but in the event of the largest
size class, we would just fail.

This change allows to fallback to the Secondary when the last region of
the Primary is full. We also expand the trick to all platforms as opposed
to being Android only, and update the test to cover the new case.

Diff Detail

Event Timeline

cryptoad created this revision.Mar 19 2020, 7:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2020, 7:55 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
cryptoad updated this revision to Diff 251385.Mar 19 2020, 8:00 AM

Initialize Block to nullptr.

hctim accepted this revision.Mar 19 2020, 1:20 PM

LGTM

This revision is now accepted and ready to land.Mar 19 2020, 1:20 PM
cferris accepted this revision.Mar 19 2020, 2:40 PM

This passes all tests in the Android environment.

This revision was automatically updated to reflect the committed changes.