This is an archive of the discontinued LLVM Phabricator instance.

[mte] work around lifetime issue with setjmp.
ClosedPublic

Authored by fmayer on Feb 1 2022, 5:15 PM.

Details

Summary

setjmp can return twice, but PostDominatorTree is unaware of this. as
such, it overestimates postdominance, leaving some cases where memory
does not get untagged on return. this causes false positives later in
the program execution.

this is a workaround for now, in the longer term PostDominatorTree
should be made aware of returns_twice, as this may cause problems
elsewhere.

See D118647 for equivalent fix to HWASan.

Diff Detail

Event Timeline

fmayer created this revision.Feb 1 2022, 5:15 PM
fmayer requested review of this revision.Feb 1 2022, 5:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2022, 5:15 PM
eugenis accepted this revision.Feb 2 2022, 1:46 PM

LGTM

This revision is now accepted and ready to land.Feb 2 2022, 1:46 PM
This revision was landed with ongoing or failed builds.Feb 2 2022, 1:55 PM
This revision was automatically updated to reflect the committed changes.