This is an archive of the discontinued LLVM Phabricator instance.

[asan] Initialize fake stack during thread init
ClosedPublic

Authored by waltl on May 8 2018, 8:47 PM.

Details

Summary

If detect-stack-use-after-return is on, initialize fake stack during
AsanThread::Init(), rather than lazily. This is required on Myriad.
From kcc: "There used to be a reason why this was done lazily, but I
don't remember if we still have that reason." Tested on x86.

Diff Detail

Repository
rL LLVM

Event Timeline

waltl created this revision.May 8 2018, 8:47 PM

I'd guess the reason is that thread may run only non instrumented code and it will never use fake stack

This revision is now accepted and ready to land.May 10 2018, 11:10 AM
This revision was automatically updated to reflect the committed changes.