Go to file
Alex Butler 5daf0c9815 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 17:20:31 +00:00
argp
assert Fix position of tests-unsupported definition in assert/Makefile. 2017-09-04 11:31:43 +02:00
benchtests Improve strstr performance 2019-09-13 16:39:12 +01:00
bits
catgets
conform conform/conformtest.pl: Escape literal braces in regular expressions 2018-07-06 16:41:11 +02:00
crypt crypt: Use NSPR header files in addition to NSS header files [BZ #17956] 2017-11-18 19:26:57 +01:00
csu powerpc: Fix float128 IFUNC relocations [BZ #21707] 2017-07-17 17:49:26 -03:00
ctype
debug Fix array overflow in backtrace on PowerPC (bug 25423) 2020-03-20 15:32:44 -03:00
dev
dirent
dlfcn
elf aarch64: add STO_AARCH64_VARIANT_PCS and DT_AARCH64_VARIANT_PCS 2019-07-12 10:50:12 +01:00
gmon
gnulib
grp Fix cast-after-dereference 2017-07-19 13:17:03 -04:00
gshadow
hesiod
hurd
iconv
iconvdata
include <array_length.h>: New array_length and array_end macros 2017-12-16 12:57:38 +01:00
inet __inet6_scopeid_pton: Remove attribute_hidden, internal_function 2017-08-22 14:50:56 +02:00
intl intl: Do not return NULL on asprintf failure in gettext [BZ #24018] 2019-01-02 20:01:05 +01:00
io linux: make getcwd(3) fail if it cannot obtain an absolute path [BZ #22679] 2018-01-12 14:49:49 +00:00
libidn
libio libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203] 2019-11-28 14:44:48 +01:00
locale Minor improvements to new az_IR locale 2017-07-27 16:11:04 +02:00
localedata Fix country name in title of mai_NP locale 2017-07-27 16:24:07 +02:00
login
mach
malloc Fix tcache count maximum (BZ #24531) 2019-05-22 15:41:24 +01:00
manual [AArch64] Add ifunc support for Ares 2019-09-06 18:58:34 +01:00
math Fix parameter type in C++ version of iseqsig (bug 23171) 2018-06-19 14:16:36 -03:00
mathvec
misc utmp: Avoid -Wstringop-truncation warning 2018-10-22 14:00:13 +02:00
nis
nptl Add compiler barriers around modifications of the robust mutex list for pthread_mutex_trylock. [BZ #24180] 2019-02-07 15:49:36 +01:00
nptl_db
nscd Fix nscd readlink argument aliasing (bug 22446). 2018-10-22 14:08:12 +02:00
nss nss_files: Avoid large buffers with many host addresses [BZ #22078] 2017-10-19 10:44:31 +02:00
po Update translations 2017-10-10 15:47:10 +05:30
posix Fix use-after-free in glob when expanding ~user (bug 25414) 2020-03-20 17:49:04 -03:00
pwd
resolv Add an additional test to resolv/tst-resolv-network.c 2018-11-09 14:43:45 +01:00
resource
rt
scripts Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
setjmp
shadow
signal
socket
soft-fp
stdio-common stdio-common/tst-printf.c: Remove part under a non-free license [BZ #23363] 2018-07-03 18:34:26 +02:00
stdlib Fix path length overflow in realpath [BZ #22786] 2018-05-17 14:10:16 +02:00
streams
string Improve performance of memmem 2019-09-13 16:41:34 +01:00
sunrpc
support Synchronize support/ infrastructure with master 2018-07-03 18:13:05 +02:00
sysdeps aarch64: MTE compatible strncmp 2024-11-04 17:20:31 +00:00
sysvipc
termios
time Use _STRUCT_TIMESPEC as guard in <bits/types/struct_timespec.h> [BZ #23349] 2018-06-28 13:22:34 +02:00
timezone timezone: pacify GCC -Wstringop-truncation 2018-10-22 14:00:17 +02:00
wcsmbs
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
BUGS
ChangeLog aarch64: add HWCAP_ATOMICS to HWCAP_IMPORTANT 2020-03-25 18:00:22 +00:00
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.10
ChangeLog.11
ChangeLog.12
ChangeLog.13
ChangeLog.14
ChangeLog.15
ChangeLog.16
ChangeLog.17
ChangeLog.old-ports
ChangeLog.old-ports-aarch64
ChangeLog.old-ports-aix
ChangeLog.old-ports-alpha
ChangeLog.old-ports-am33
ChangeLog.old-ports-arm
ChangeLog.old-ports-cris
ChangeLog.old-ports-hppa
ChangeLog.old-ports-ia64
ChangeLog.old-ports-linux-generic
ChangeLog.old-ports-m68k
ChangeLog.old-ports-microblaze
ChangeLog.old-ports-mips
ChangeLog.old-ports-powerpc
ChangeLog.old-ports-tile
config.h.in
config.make.in
configure crypt: Use NSPR header files in addition to NSS header files [BZ #17956] 2017-11-18 19:26:57 +01:00
configure.ac crypt: Use NSPR header files in addition to NSS header files [BZ #17956] 2017-11-18 19:26:57 +01:00
CONFORMANCE
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL Update contributors and latest gcc and binutils versions 2017-08-02 18:22:58 +05:30
libc-abis
libof-iterator.mk
LICENSES stdio-common/tst-printf.c: Remove part under a non-free license [BZ #23363] 2018-07-03 18:34:26 +02:00
MAINTAINERS
Makeconfig
Makefile
Makefile.in
Makerules Place $(elf-objpfx)sofini.os last [BZ #22051] 2017-09-07 08:27:30 -07:00
NAMESPACE
NEWS Fix use-after-free in glob when expanding ~user (bug 25414) 2020-03-20 17:49:04 -03:00
o-iterator.mk
README
README.pretty-printers
README.tunables
Rules
shlib-versions Extend NSS test suite 2017-07-17 15:52:44 -04:00
test-skeleton.c
version.h Update for 2.26 release 2017-08-02 18:27:16 +05:30
WUR-REPORT

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.  The current
GNU/Hurd support requires out-of-tree patches that will eventually be
incorporated into an official GNU C Library release.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	hppa-*-linux-gnu	Not currently functional without patches.
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu
	tilegx-*-linux-gnu
	tilepro-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see http://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at http://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see http://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.