This is an archive of the discontinued LLVM Phabricator instance.

Unpoison stack memory in use-after-return + use-after-scope mode
ClosedPublic

Authored by vitalybuka on Jun 9 2016, 2:42 PM.

Details

Summary

We still want to unpoison full stack even in use-after-return as it can be disabled at runtime.

PR27453

Diff Detail

Event Timeline

vitalybuka updated this revision to Diff 60241.Jun 9 2016, 2:42 PM
vitalybuka retitled this revision from to Unpoison stack memory in use-after-return + use-after-scope mode.
vitalybuka updated this object.
vitalybuka added reviewers: eugenis, kcc.
vitalybuka added a subscriber: llvm-commits.
eugenis edited edge metadata.Jun 9 2016, 3:03 PM

Looks reasonable, but I'd like kcc to take a look.

kcc accepted this revision.Jun 9 2016, 3:18 PM
kcc edited edge metadata.

LGTM

lib/Transforms/Instrumentation/AddressSanitizer.cpp
2183–2195

we have a bit of code duplication here. Up to you if you want to eliminate it or keep it as is.

This revision is now accepted and ready to land.Jun 9 2016, 3:18 PM
vitalybuka updated this revision to Diff 60263.Jun 9 2016, 3:40 PM
vitalybuka edited edge metadata.

Dedup some code.

This revision was automatically updated to reflect the committed changes.
test/Instrumentation/AddressSanitizer/lifetime-uar-uas.ll