diff options
author | Andrea Corallo <andrea.corallo@arm.com> | 2020-06-05 17:18:49 +0200 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-06-09 09:20:27 +0100 |
commit | f7de454f20c05a748b5d421ed22d96a5232b6093 (patch) | |
tree | c764c5dbed0625d3de9d2ab0dda35a419766bd4c /nptl/tst-attr2.c | |
parent | d1f75e964484504e4f30f4623569d5889a97ac18 (diff) | |
download | glibc-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 'nptl/tst-attr2.c')
0 files changed, 0 insertions, 0 deletions