diff options
author | Evgenii Stepanov <eugenis@google.com> | 2019-10-02 16:26:43 -0700 |
---|---|---|
committer | Evgenii Stepanov <eugenis@google.com> | 2019-10-03 10:21:58 -0700 |
commit | d181585dd575383ec12c1856efc1bffda24d9a32 (patch) | |
tree | 581f18d0b4a6db4eb68dbefc52642d6d536f70ec /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 464593472c9e0cddaad338bca3eb07a2176f8875 (diff) |
Block signals in pthread_create.
HWASan-instrumented code needs TLS_SLOT_SANITIZER set up to run, and
that is not done until the new thread calls __hwasan_thread_enter. Block
all signals until that time to prevent hwasan-instrumented signal
handlers running (and crashing) on the new thread.
Bug: 141893397
Test: seq 0 10000000 | xargs -n 1 -P 200 adb shell am instrument \
-w -r -e command grant-all \
com.android.permissionutils/.PermissionInstrumentation
Change-Id: I63ec7080cd5b0ee8dcd6ae2ec5a90a19c83cfe4e
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions