This is an archive of the discontinued LLVM Phabricator instance.

[HWASAN] Support tagged stack pointer
ClosedPublic

Authored by vitalybuka on Apr 25 2023, 7:56 PM.

Details

Summary

If stack was allocated using regular allocator, it may be tagged
and it will make memToShadow calculate invalid offset.

Also when UAR tag should be the tag of the stack frame pointer.

Diff Detail

Event Timeline

vitalybuka created this revision.Apr 25 2023, 7:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 7:56 PM
vitalybuka requested review of this revision.Apr 25 2023, 7:56 PM

remove unrelated stuff

eugenis accepted this revision.Apr 26 2023, 2:52 PM
This revision is now accepted and ready to land.Apr 26 2023, 2:52 PM
This revision was landed with ongoing or failed builds.Apr 26 2023, 7:27 PM
This revision was automatically updated to reflect the committed changes.
Enna1 added a comment.Apr 26 2023, 8:46 PM

just curious when stack will be allocated using regular allocator :)

just curious when stack will be allocated using regular allocator :)

makecontext/swapcontext