diff options
author | Evgenii Stepanov <eugenis@google.com> | 2019-10-02 16:26:43 -0700 |
---|---|---|
committer | Evgenii Stepanov <eugenis@google.com> | 2019-10-07 15:37:26 -0700 |
commit | b92d1c3a26efe48bab8d7e2e17f04d4c9dbd3371 (patch) | |
tree | 30e7342f2ce859d3272a43f2d733367577658e1e /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 67ff8b5f9cb1af1a633e96a771e386d3305c6799 (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
(cherry picked from commit d181585dd575383ec12c1856efc1bffda24d9a32)
Change-Id: Id65fae836edcacdf057327ccf16cf0b5e0f9474a
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions