about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorAndrea Corallo <andrea.corallo@arm.com>2020-06-05 17:18:49 +0200
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-06-09 09:20:27 +0100
commitf7de454f20c05a748b5d421ed22d96a5232b6093 (patch)
treec764c5dbed0625d3de9d2ab0dda35a419766bd4c /elf
parentd1f75e964484504e4f30f4623569d5889a97ac18 (diff)
downloadglibc-f7de454f20c05a748b5d421ed22d96a5232b6093.tar.gz
glibc-f7de454f20c05a748b5d421ed22d96a5232b6093.tar.xz
glibc-f7de454f20c05a748b5d421ed22d96a5232b6093.zip
aarch64: MTE compatible strchrnul
Introduce an Arm MTE compatible strchrnul implementation.

The existing implementation assumes that any access to the pages in
which the string resides is safe.  This assumption is not true when
MTE is enabled.  This patch updates the algorithm to ensure that
accesses remain within the bounds of an MTE tag (16-byte chunks) and
improves overall performance.

Benchmarked on Cortex-A72, Cortex-A53, Neoverse N1.

Co-authored-by: Wilco Dijkstra <wilco.dijkstra@arm.com>
Diffstat (limited to 'elf')
0 files changed, 0 insertions, 0 deletions