commit | 18ce54241cb726d9783be7385c734f6ea6d3051b | [log] [tgz] |
---|---|---|
author | Mitch Phillips <[email protected]> | Thu Jan 19 14:23:49 2023 -0800 |
committer | Mitch Phillips <[email protected]> | Wed Feb 01 15:25:29 2023 -0800 |
tree | 8625f854417374e1fd679134986ed30bef7ef3de | |
parent | a812f45678cfb1e6672e80f73194b96fdb031396 [diff] |
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