]> git.ipfire.org Git - thirdparty/glibc.git/commit
aarch64: MTE compatible strcpy
authorAlex Butler <Alex.Butler@arm.com>
Tue, 9 Jun 2020 15:57:03 +0000 (15:57 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 23 Jun 2020 16:55:39 +0000 (17:55 +0100)
commitbb2c12aecbd26a8d29f63b51b80b7c84e65d1818
tree0e5678dba91892a3ea39eea9f1b020a06cc1918e
parent8ec13b46395a7075d3f01e9d0a65b4bee0adbfca
aarch64: MTE compatible strcpy

Add support for MTE to strcpy. 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: Wilco Dijkstra <wilco.dijkstra@arm.com>
sysdeps/aarch64/strcpy.S