aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SafeStack.cpp
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2020-11-10 14:15:47 -0800
committerEvgenii Stepanov <eugenis@google.com>2020-11-10 17:24:24 -0800
commite1eeb026e66c38add2a1f8f1271e1f618c2f7a72 (patch)
tree4df43e6ae54b6b6306dae7269b7755dabd3f8ac6 /llvm/lib/CodeGen/SafeStack.cpp
parent07ba0662da5caf2e926b9cb82e9d89265dbdf144 (diff)
downloadllvm-e1eeb026e66c38add2a1f8f1271e1f618c2f7a72.zip
llvm-e1eeb026e66c38add2a1f8f1271e1f618c2f7a72.tar.gz
llvm-e1eeb026e66c38add2a1f8f1271e1f618c2f7a72.tar.bz2
[hwasan] Fix Thread reuse.
HwasanThreadList::DontNeedThread clobbers Thread::next_, breaking the freelist. As a result, only the top of the freelist ever gets reused, and the rest of it is lost. Since the Thread object its associated ring buffer is only 8Kb, this is typically only noticable in long running processes, such as fuzzers. Fix the problem by switching from an intrusive linked list to a vector. Differential Revision: https://reviews.llvm.org/D91208
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
0 files changed, 0 insertions, 0 deletions