[all-commits] [llvm/llvm-project] 1e09db: [asan] Fix stack-use-after-free checks on non-main...
Drew Fisher via All-commits
all-commits at lists.llvm.org
Sat Oct 24 14:29:52 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1e09dbb6a942ec5558dc84b5dbc8a842891135d4
https://github.com/llvm/llvm-project/commit/1e09dbb6a942ec5558dc84b5dbc8a842891135d4
Author: Drew Fisher <zarvox at google.com>
Date: 2020-10-24 (Sat, 24 Oct 2020)
Changed paths:
M compiler-rt/lib/asan/asan_thread.cpp
Log Message:
-----------
[asan] Fix stack-use-after-free checks on non-main thread on Fuchsia
While some platforms call `AsanThread::Init()` from the context of the
thread being started, others (like Fuchsia) call `AsanThread::Init()`
from the context of the thread spawning a child. Since
`AsyncSignalSafeLazyInitFakeStack` writes to a thread-local, we need to
avoid calling it from the spawning thread on Fuchsia. Skipping the call
here on Fuchsia is fine; it'll get called from the new thread lazily on first
attempted access.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D89607
More information about the All-commits
mailing list