This is an archive of the discontinued LLVM Phabricator instance.

[hwasan] Don't require untagged pointer in __hwasan_tag_memory
ClosedPublic

Authored by vitalybuka on Apr 5 2023, 4:48 PM.

Details

Summary

Use likely have tagged pointer. I see no value making user to untag it.

Diff Detail

Event Timeline

vitalybuka created this revision.Apr 5 2023, 4:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 5 2023, 4:48 PM
Herald added a subscriber: Enna1. · View Herald Transcript
vitalybuka requested review of this revision.Apr 5 2023, 4:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 5 2023, 4:48 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka edited the summary of this revision. (Show Details)Apr 5 2023, 4:51 PM
vitalybuka added reviewers: eugenis, kstoimenov, fmayer.
fmayer accepted this revision.Apr 10 2023, 3:39 PM

Seems that this is only API for testing, so fine either way. I was pondering whether this restriction was on purpose to prevent people from retagging pointers that already have shadow memory associated.

This revision is now accepted and ready to land.Apr 10 2023, 3:39 PM