summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2019-10-28 13:11:00 -0700
committerPeter Collingbourne <pcc@google.com>2019-10-29 16:18:31 -0700
commit900d07d6a1f3e1eca8cdbb3b1db1ceeec0acc9e2 (patch)
tree3453e11061f4a1a3f0860deb9561e718503abd1f /libc/malloc_hooks/malloc_hooks.cpp
parent6f9a97f864898bb9538898b212bf0a9547b2f943 (diff)
Add arm64 string.h function implementations for use with hardware supporting MTE.
As it turns out, our "generic" arm64 implementations of certain string.h functions are not actually generic, since they will eagerly read memory possibly outside of the bounds of an MTE granule, which may lead to a segfault on MTE-enabled hardware. Therefore, move the implementations into a "default" directory and use ifuncs to select between them and a new set of "mte" implementations, conditional on whether the hardware and kernel support MTE. The MTE implementations are currently naive implementations written in C but will later be replaced with a set of optimized assembly implementations. Bug: 135772972 Change-Id: Ife37c4e0e6fd60ff20a34594cc09c541af4d1dd7
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions