diff options
author | Mitch Phillips <mitchp@google.com> | 2020-02-11 14:42:14 -0800 |
---|---|---|
committer | Mitch Phillips <mitchp@google.com> | 2020-02-11 14:52:17 -0800 |
commit | bba80dcd80709ad6e4c4cc8097fa72acc961c413 (patch) | |
tree | 414953f7be1203d0b4ba445cb1943ae517da6650 /libc/malloc_hooks/malloc_hooks.cpp | |
parent | d129786e122f4a7136fe4b8b1b3fdc5525897532 (diff) |
[GWP-ASan] Fix non-reentrant libc_globals init behaviour.
The WriteProtected mutator for __libc_globals isn't reentrant.
Previously we were calling __libc_globals.mutate() inside of GWP-ASan's
libc initialisation, which is called inside the __libc_globals.mutate().
This causes problems with malloc_debug and other malloc shims, as they
fail to install when GWP-ASan is sampling their processes.
Bug: 135634846
Test: atest bionic
Change-Id: Iae51faa8d78677eeab6204b6ab4f3ae1b7517ba5
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions