summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2019-10-02 16:26:43 -0700
committerEvgenii Stepanov <eugenis@google.com>2019-10-03 10:21:58 -0700
commitd181585dd575383ec12c1856efc1bffda24d9a32 (patch)
tree581f18d0b4a6db4eb68dbefc52642d6d536f70ec /libc/malloc_hooks/malloc_hooks.cpp
parent464593472c9e0cddaad338bca3eb07a2176f8875 (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