HomePhabricator

[winasan] Unpoison the stack in NtTerminateThread

Description

[winasan] Unpoison the stack in NtTerminateThread

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.

Differential Revision: https://reviews.llvm.org/D52091

Details

Committed
dmajorSep 20 2018, 7:59 AM
Differential Revision
D52091: [winasan] Unpoison the stack in NtTerminateThread
Parents
rL342651: [sanitizer] Make __sanitizer::CheckFailed not public
Branches
Unknown
Tags
Unknown