diff options
author | Alex Butler <Alex.Butler@arm.com> | 2020-06-09 16:09:36 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-06-23 17:55:39 +0100 |
commit | 79160c06c7b74672c7f7368355ca0b59103b2d30 (patch) | |
tree | 3d79c68608a44b978629f7a04106c012b2cdac26 /sysdeps/aarch64/crti.S | |
parent | df06b0d90f3aa5a4702aa7d6772665e2228a0915 (diff) | |
download | glibc-79160c06c7b74672c7f7368355ca0b59103b2d30.tar.gz glibc-79160c06c7b74672c7f7368355ca0b59103b2d30.tar.xz glibc-79160c06c7b74672c7f7368355ca0b59103b2d30.zip |
aarch64: MTE compatible strrchr
Add support for MTE to strrchr. 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/aarch64/crti.S')
0 files changed, 0 insertions, 0 deletions