Add recoverable GWP-ASan.
Recoverable GWP-ASan is a mode landed upstream in https://reviews.llvm.org/D140173. For more information about why/what it is, see https://android-review.git.corp.google.com/c/platform/bionic/+/2394588. This patch makes debuggerd call the required libc callbacks for GWP-ASan to recover from the memory corruption. It also adds the functionality that libart/sigchain eventually ends up calling, which dumps a GWP-ASan report for the first error encountered. Test: Build the platform, run sanitizer-status in recoverable mode, asserting that it doesn't crash but we get a debuggerd report. Bug: 247012630 Change-Id: I27212f7250844c20a8fd1e961417cdb4e5bd3626
Loading
Please register or sign in to comment