Commit 9b7656d4 authored by Evgenii Stepanov's avatar Evgenii Stepanov
Browse files

HWASan support in ART.

Two small tweaks:
* The highest 8 bits of a pointer in hwasan contain a random tag which needs to
  be removed before comparing _unrelated_ pointers.
* Annotate DoLongJump. HWASan needs to re-tag the newly unallocated stack space
  to match SP. This is similar to ASan annotation (__asan_handle_noreturn), but
  more precise - HWASan needs to know the destination SP address because it can
  not conservatively "unpoison" the entire stack like ASan does.

Bug: 112438058
Test: mmm SANITIZE_TARGET=hwaddress

Change-Id: I9f9d92495b3a4b2637e48c7af1b614e8d1db8ea0
parent 19759b28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment