[winasan] Unpoison the stack in NtTerminateThread

Authored by dmajor on Fri, Sep 14, 5:58 AM.



In long-running builds we've seen some ASan complaints during thread creation that we suspect are due to leftover poisoning from previous threads whose stacks occupied that memory. This patch adds a hook that unpoisons the stack just before the NtTerminateThread syscall.

Diff Detail

dmajor created this revision.Fri, Sep 14, 5:58 AM
Herald added subscribers: Restricted Project, llvm-commits, kubamracek. · View Herald TranscriptFri, Sep 14, 5:58 AM
rnk accepted this revision.Wed, Sep 19, 1:40 PM


This revision is now accepted and ready to land.Wed, Sep 19, 1:40 PM
This revision was automatically updated to reflect the committed changes.