diff options
author | Alex Butler <Alex.Butler@arm.com> | 2020-06-09 15:57:03 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-06-23 17:55:39 +0100 |
commit | bb2c12aecbd26a8d29f63b51b80b7c84e65d1818 (patch) | |
tree | 0e5678dba91892a3ea39eea9f1b020a06cc1918e /include/ar.h | |
parent | 8ec13b46395a7075d3f01e9d0a65b4bee0adbfca (diff) | |
download | glibc-bb2c12aecbd26a8d29f63b51b80b7c84e65d1818.tar glibc-bb2c12aecbd26a8d29f63b51b80b7c84e65d1818.tar.gz glibc-bb2c12aecbd26a8d29f63b51b80b7c84e65d1818.tar.bz2 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 'include/ar.h')
0 files changed, 0 insertions, 0 deletions