[PATCH] D50406: SafeStack: Delay thread stack clean-up

Vlad Tsyrklevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 7 14:03:00 PDT 2018


vlad.tsyrklevich created this revision.
vlad.tsyrklevich added a reviewer: pcc.
Herald added subscribers: Sanitizers, llvm-commits, delcypher, kubamracek.

glibc can call SafeStack instrumented code even after the last pthread
data destructor has run. Delay cleaning-up unsafe stacks for threads
until the thread is dead by having future threads clean-up prior threads
stacks.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D50406

Files:
  lib/safestack/safestack.cc
  lib/sanitizer_common/sanitizer_common.h
  lib/sanitizer_common/sanitizer_linux.cc
  test/safestack/pthread-cleanup.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50406.159593.patch
Type: text/x-patch
Size: 6436 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180807/dbc04ece/attachment.bin>


More information about the llvm-commits mailing list