summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/malloc_debug.cpp
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2022-03-09 15:43:20 -0800
committerEvgenii Stepanov <eugenis@google.com>2022-03-10 16:38:06 -0800
commit9705aac89af61f8688a952f89404a256eea1e775 (patch)
tree770a45cc89b99a8bfc68ba68c0bfa62cda86df22 /libc/malloc_debug/malloc_debug.cpp
parent471bef4d34a666a5edfb2c0008dad89b6c6f1d76 (diff)
Fix mte tests to allow auto-upgrade.
The kernel MTE mode auto-upgrade feature (see mte_tcf_preferred) allows silent auto-upgrade of Async MTE mode to Asymm or Sync depending on the OS settings. Relax the tests to allow either Sync or Async faults when requesting Async mode, and only Sync faults when requesting Sync. Also tighten the MTENote test to check that both system allocator and prctl are off when MTE is disabled. Bug: 214622342 Test: bionic-unit-tests on fvp with all variations of /sys/devices/system/cpu/cpu*/mte_tcf_preferred=(async|asymm|sync) Change-Id: I77a92789d6b330742d00b08c9f0fecc3a6c8fca6
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions