about summary refs log tree commit diff
path: root/nptl_db/structs.def
diff options
context:
space:
mode:
authorAlex Butler <Alex.Butler@arm.com>2020-06-16 12:44:24 +0000
committerWilco Dijkstra <wilco.dijkstra@arm.com>2024-11-04 17:20:31 +0000
commit5daf0c98152bdc54719a3ef62302204705e16fa6 (patch)
treebc542c7ebba4a1aee5cfcf0c226bbea7b2b16a21 /nptl_db/structs.def
parent268df5a91054fcb4284e8504afd086a769ec4c40 (diff)
downloadglibc-release/2.26/master.tar.gz
glibc-release/2.26/master.tar.xz
glibc-release/2.26/master.zip
aarch64: MTE compatible strncmp release/2.26/master
Add support for MTE to strncmp. Regression tested with xcheck and benchmarked
with glibc's benchtests on the Cortex-A53, Cortex-A72, and Neoverse N1.

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.

Co-authored-by: Branislav Rankov <branislav.rankov@arm.com>
Co-authored-by: Wilco Dijkstra <wilco.dijkstra@arm.com>
(cherry picked from commit 03e1378f94173fc192a81e421457198f7b8a34a0)
Diffstat (limited to 'nptl_db/structs.def')
0 files changed, 0 insertions, 0 deletions