platform_bionic/libc/platform/bionic
Mitch Phillips f3968e89cb [GWP-ASan] Integrate GWP-ASan into bionc's malloc() (using hooks).
This patch introduces GWP-ASan - a sampled allocator framework that
finds use-after-free and heap-buffer-overflow bugs in production
environments.

GWP-ASan is being introduced in an always-disabled mode. This means that
GWP-ASan will be permanently disabled until a further patch turns on
support. As such, there should be no visible functional change for the
time being.

GWP-ASan requires -fno-emulated-tls wherever it's linked from. We
intentionally link GWP-ASan into libc so that it's part of the initial
set of libraries, and thus has static TLS storage (so we can use
Initial-Exec TLS instead of Global-Dynamic). As a benefit, this reduces
overhead for a sampled process.

GWP-ASan is always initialised via. a call to
mallopt(M_INITIALIZE_GWP_ASAN, which must be done before a process is
multithreaded).

More information about GWP-ASan can be found in the upstream
documentation: http://llvm.org/docs/GwpAsan.html

Bug: 135634846
Test: atest bionic
Change-Id: Ib9bd33337d17dab39ac32f4536bff71bd23498b0
2020-02-10 10:51:23 -08:00
..
android_unsafe_frame_pointer_chase.h Add an android_unsafe_frame_pointer_chase function. 2020-02-03 10:30:45 -08:00
fdtrack.h Move fdtrack APIs to LLNDK. 2020-01-30 13:55:10 -08:00
macros.h Move bionic_macros.h from private to platform. 2020-01-02 14:09:50 -08:00
malloc.h [GWP-ASan] Integrate GWP-ASan into bionc's malloc() (using hooks). 2020-02-10 10:51:23 -08:00
mte.h Add some MTE-related helpers. 2020-01-30 10:56:50 -08:00
mte_kernel.h Update bionic to use the MTE API proposed on LKML. 2019-12-13 12:13:29 -08:00
page.h Make private/bionic_page.h available as platform/bionic/page.h. 2019-12-12 15:26:14 -08:00
reserved_signals.h Add a tool to track down fd leaks. 2020-01-30 13:55:10 -08:00
tls.h Make tls related header files platform accessible. 2019-09-27 12:14:24 -07:00
tls_defines.h Make tls related header files platform accessible. 2019-09-27 12:14:24 -07:00