• Vlad Tsyrklevich's avatar
    GWP-ASan: Add crash handler hook. · 409ceb85
    Vlad Tsyrklevich authored
    After a GWP-ASan exception occurs, a crash handler hook (e.g. a crashpad
    UserStreamDataSource) is responsible for looking at the crash and
    1) determining if the exception was related to GWP-ASan, and 2) adding
    additional debug information to the minidump if so.
    
    The crash handler hook determines if the exception was related to
    GWP-ASan by finding the AllocatorState address (using a crash key),
    reading the allocator state and seeing if the exception occurred in the
    bounds of the allocator region. If it did, we extract debug information
    about that allocation and report it in the minidump.
    
    CQ-DEPEND=CL:1339246
    
    Bug: 896019
    Change-Id: I63d12b5137098b20ec946e3bddbdcabaf20e430a
    Reviewed-on: https://chromium-review.googlesource.com/c/1330283Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
    Reviewed-by: default avatarBrian White <bcwhite@chromium.org>
    Reviewed-by: default avatarVitaly Buka <vitalybuka@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#611033}
    409ceb85
allocator_state_unittest.cc 3.54 KB