glibc/sysdeps
Alex Butler 2417ddb645 aarch64: MTE compatible strncmp
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 03e1378f94)
2024-11-04 16:31:20 +00:00
..
aarch64 aarch64: MTE compatible strncmp 2024-11-04 16:31:20 +00:00
alpha Update Alpha libm-test-ulps 2019-09-03 21:43:22 +02:00
arm arm: Use "nr" constraint for Systemtap probes [BZ #24164] 2019-02-05 13:49:03 +01:00
csky
generic posix: Fix large mmap64 offset for mips64n32 (BZ#24699) 2019-07-15 09:26:39 -03:00
gnu Don't make errlist.o[s].d depend on errlist-compat.h 2024-05-09 20:12:05 -07:00
hppa hppa: Update libm-tests-ulps 2019-08-18 11:38:26 +02:00
htl hurd: advertise *_setpshared as not supported 2019-01-02 22:21:34 +01:00
hurd
i386 x86: Check IFUNC definition in unrelocated executable [BZ #20019] 2021-01-13 14:30:42 -08:00
ia64 Fix a few typos in comments 2019-01-12 13:44:51 +00:00
ieee754 math/test-sinl-pseudo: Use stack protector only if available 2020-03-15 17:33:57 -04:00
init_array
m68k
mach hurd: Check at_flags passed to faccessat 2019-01-22 22:47:10 +01:00
microblaze
mips Update MIPS libm-test-ulps. 2019-01-02 17:25:33 +00:00
nios2
nptl nptl: Avoid fork handler lock for async-signal-safe fork [BZ #24161] 2019-02-08 12:54:41 +01:00
posix CVE-2016-10739: getaddrinfo: Fully parse IPv4 address strings [BZ #20018] 2019-01-21 21:26:03 +01:00
powerpc Fix array overflow in backtrace on PowerPC (bug 25423) 2020-03-18 13:41:55 -04:00
pthread
riscv RISC-V: Update nofpu ULPs 2019-01-24 13:55:05 -05:00
s390 S390: Mark vx and vxe as important hwcap. 2019-03-21 09:27:37 +01:00
sh
sparc Fix output of LD_SHOW_AUXV=1. 2019-03-13 10:51:23 +01:00
unix AArch64: Use __memcpy_simd on Neoverse N2/V1 2020-10-14 14:31:24 +01:00
wordsize-32
wordsize-64
x86 x86: Fix incorrect scope of setting shared_per_thread [BZ# 30745] 2023-09-11 22:48:28 -05:00
x86_64 x86_64: Optimize ffsll function code size. 2024-02-08 10:07:26 -08:00