diff options
author | Mitch Phillips <mitchp@google.com> | 2020-04-17 15:00:37 -0700 |
---|---|---|
committer | Mitch Phillips <mitchp@google.com> | 2020-04-20 13:58:44 -0700 |
commit | 8dceacc296f4cef9606efbde467a4b399cf53ba7 (patch) | |
tree | 1ef330dc39f3e65ae6634a34d601b193d293b076 /libc/malloc_debug/malloc_debug.cpp | |
parent | ede1fd19e27331d145fdae71ce8ef22b21e47681 (diff) |
Set the top bit for tagged pointers.
Some applications may incorrectly assume that a "negative" pointer
indicates error. By setting the top bit in TBI mode, we catch these
cases as well. Although they don't directly indicate incompatibility
with MTE (as MTE uses the 2nd-highest nibble) - this ensures we catch
HWASan errors as well as reserve the bits for future MTE expansion.
Bug: 154272452
Test: Boot flame, device boots successfully.
Change-Id: I94a6821a82ce7ead59e6ca2dd113a5a50ee9e56b
Merged-In: I94a6821a82ce7ead59e6ca2dd113a5a50ee9e56b
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions