This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Untag pointer in iterateOverChunks
ClosedPublic

Authored by vitalybuka on Jun 1 2021, 5:02 PM.

Details

Summary

Pointer comparison in Lambda will not work on tagged pointers.

Diff Detail

Event Timeline

vitalybuka created this revision.Jun 1 2021, 5:02 PM
vitalybuka requested review of this revision.Jun 1 2021, 5:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2021, 5:02 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka updated this revision to Diff 349169.Jun 1 2021, 9:15 PM

fix test for non-MTE

pcc added inline comments.Jun 3 2021, 8:50 PM
compiler-rt/lib/scudo/standalone/combined.h
736

Can this just use archSupportsMemoryTagging()?

vitalybuka marked an inline comment as done.

use archSupportsMemoryTagging

pcc accepted this revision.Jun 4 2021, 11:30 AM

LGTM

compiler-rt/lib/scudo/standalone/combined.h
736–737

You don't need to move these two lines around now.

This revision is now accepted and ready to land.Jun 4 2021, 11:30 AM
vitalybuka marked an inline comment as done.

undo accidental line move

This revision was landed with ongoing or failed builds.Jun 4 2021, 12:45 PM
This revision was automatically updated to reflect the committed changes.