[all-commits] [llvm/llvm-project] 966386: [compiler-rt][hwasan] Setup hwasan thread handling...
Leonard Chan via All-commits
all-commits at lists.llvm.org
Wed Jul 7 15:09:29 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 966386514bec9366ca85d1599f4c866eee9f1927
https://github.com/llvm/llvm-project/commit/966386514bec9366ca85d1599f4c866eee9f1927
Author: Leonard Chan <leonardchan at google.com>
Date: 2021-07-07 (Wed, 07 Jul 2021)
Changed paths:
M compiler-rt/lib/hwasan/CMakeLists.txt
A compiler-rt/lib/hwasan/hwasan_fuchsia.cpp
M compiler-rt/lib/hwasan/hwasan_thread.cpp
Log Message:
-----------
[compiler-rt][hwasan] Setup hwasan thread handling on Fuchsia
This patch splits up hwasan thread creation between `__sanitizer_before_thread_create_hook`,
`__sanitizer_thread_create_hook`, and `__sanitizer_thread_start_hook`.
The linux implementation creates the hwasan thread object inside the
new thread. On Fuchsia, we know the stack bounds before thread creation,
so we can initialize part of the thread object in `__sanitizer_before_thread_create_hook`,
then initialize the stack ring buffer in `__sanitizer_thread_start_hook`
once we enter the thread.
Differential Revision: https://reviews.llvm.org/D104085
More information about the All-commits
mailing list