about summary refs log tree commit diff
path: root/sysdeps/unix/confstr.h
diff options
context:
space:
mode:
authorAlex Butler <Alex.Butler@arm.com>2020-06-09 15:57:03 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-06-23 17:55:39 +0100
commitbb2c12aecbd26a8d29f63b51b80b7c84e65d1818 (patch)
tree0e5678dba91892a3ea39eea9f1b020a06cc1918e /sysdeps/unix/confstr.h
parent8ec13b46395a7075d3f01e9d0a65b4bee0adbfca (diff)
downloadglibc-bb2c12aecbd26a8d29f63b51b80b7c84e65d1818.tar.gz
glibc-bb2c12aecbd26a8d29f63b51b80b7c84e65d1818.tar.xz
glibc-bb2c12aecbd26a8d29f63b51b80b7c84e65d1818.zip
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>
Diffstat (limited to 'sysdeps/unix/confstr.h')
0 files changed, 0 insertions, 0 deletions