This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Disable OddEvenTags by default.
ClosedPublic

Authored by eugenis on Jun 14 2023, 5:05 PM.

Details

Summary

Scudo has zero-tagged headers between any two allocation that will catch
a linear buffer overflow of up to 16 bytes. OddEvenTags extends this
guarantee to one chunk of the given SizeClass at the cost of the reduced
entropy for all heap tags (i.e. lower chance to catch use-after-free and
large overflows).

Given that the first 16 bytes are already deterministic, I feel this is
a bad tradeoff.

Diff Detail

Event Timeline

eugenis created this revision.Jun 14 2023, 5:05 PM
eugenis requested review of this revision.Jun 14 2023, 5:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2023, 5:05 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
fmayer accepted this revision.Jun 14 2023, 5:07 PM
This revision is now accepted and ready to land.Jun 14 2023, 5:07 PM
hctim accepted this revision.Jun 15 2023, 1:45 AM

Yeah, I agree.

This revision was landed with ongoing or failed builds.Jun 15 2023, 4:37 PM
This revision was automatically updated to reflect the committed changes.