Go to file
Alex Butler 6d69c4aad4 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:15:10 +00:00
argp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
assert Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
benchtests Add undef to fix test failure. 2019-09-13 16:35:12 +01:00
bits Update RWF_SUPPORTED for Linux kernel 4.16 [BZ #22947] 2018-05-10 10:56:25 +00:00
catgets intl/tst-gettext: fix failure with newest msgfmt 2020-11-16 08:00:00 +00:00
ChangeLog.old Add missing reference to bug 21654 2017-10-07 13:14:36 +02:00
conform conform: XFAIL siginfo_t si_band test on sparc64 2018-10-26 09:25:48 +02:00
crypt crypt: Fix badsalttest test (Bug 22765) 2018-02-01 00:02:49 -08:00
csu Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
ctype Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
debug Fix array overflow in backtrace on PowerPC (bug 25423) 2020-11-16 08:00:00 +00:00
dirent Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
dlfcn malloc: tcache double free check 2018-12-12 13:22:42 +01:00
elf aarch64: add STO_AARCH64_VARIANT_PCS and DT_AARCH64_VARIANT_PCS 2019-07-10 15:50:14 +01:00
gmon Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gnulib Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
grp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gshadow Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
hesiod Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
hurd hurd: Fix preprocessor indentation 2018-01-29 23:00:17 +01:00
iconv iconv: Fix incorrect UCS4 inner loop bounds (BZ#26923) 2021-01-03 12:21:12 +00:00
iconvdata iconv: Accept redundant shift sequences in IBM1364 [BZ #26224] 2020-11-30 22:59:53 +00:00
include Fix _dl_profile_fixup data-dependency issue (Bug 23690) 2018-12-13 06:41:41 +01:00
inet inet/tst-if_index-long: New test case for CVE-2018-19591 [BZ #23927] 2018-12-12 13:25:11 +01:00
intl intl: Handle translation output codesets with suffixes [BZ #26383] 2020-11-30 22:59:53 +00:00
io io: Remove copy_file_range emulation [BZ #24744] 2019-07-09 10:45:47 +02:00
libidn Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libio libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203] 2019-11-28 14:42:32 +01:00
locale Abbreviated alternative month names (%Ob) also added (bug 10871). 2018-01-22 11:26:55 +01:00
localedata Add Transliterations for Unicode Misc. Mathematical Symbols-A/B [BZ #23132] 2020-11-30 22:59:53 +00:00
login Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
mach hurd: Add expected ABI lists 2018-01-29 22:07:44 +01:00
malloc Fix tcache count maximum (BZ #24531) 2019-05-22 15:00:49 +01:00
manual [AArch64] Add ifunc support for Ares 2019-09-06 18:53:37 +01:00
math Fix parameter type in C++ version of iseqsig (bug 23171) 2018-06-19 13:50:46 -03:00
mathvec Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
misc Fix misreported errno on preadv2/pwritev2 (BZ#23579) 2018-09-28 15:30:30 -03:00
nis libnsl: Turn remaining symbols into compat symbols [BZ #22701] 2018-01-29 17:42:30 +01:00
nptl Add compiler barriers around modifications of the robust mutex list for pthread_mutex_trylock. [BZ #24180] 2019-02-07 15:44:18 +01:00
nptl_db Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nscd nscd: Fix double free in netgroupcache [BZ #27462] 2021-03-08 10:12:28 +00:00
nss Fix multiple definitions of __nss_*_database (bug 22918) 2018-03-12 19:26:40 +00:00
po Update translations from the Translation Project 2018-03-12 19:26:40 +00:00
posix wordexp: handle overflow in positional parameter number (bug 28011) 2021-07-06 19:04:26 +00:00
pwd Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
resolv Add an additional test to resolv/tst-resolv-network.c 2018-11-09 14:39:11 +01:00
resource resource/tst-getrlimit.c: Add copyright header 2018-01-05 20:34:10 +01:00
rt Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
scripts Add RISC-V to build-many-glibcs.py 2018-01-29 10:43:15 -08:00
setjmp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
shadow Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
signal Add tst-sigaction.c to test BZ #23069 2018-04-28 13:18:25 +02:00
socket Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
soft-fp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
stdio-common stdio-common/tst-printf.c: Remove part under a non-free license [BZ #23363] 2018-07-03 18:36:19 +02:00
stdlib Fix path length overflow in realpath [BZ #22786] 2018-05-10 10:56:25 +00:00
streams Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
string <string.h>: Define __CORRECT_ISO_CPP_STRING_H_PROTO for Clang [BZ #25232] 2020-11-16 08:00:00 +00:00
sunrpc sunrpc: Remove stray exports without --enable-obsolete-rpc [BZ #23166] 2018-05-15 08:21:11 +02:00
support support: Add xsetlocale function 2020-11-30 22:59:53 +00:00
sysdeps aarch64: MTE compatible strncmp 2024-11-04 17:15:10 +00:00
sysvipc Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
termios Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
time Use _STRUCT_TIMESPEC as guard in <bits/types/struct_timespec.h> [BZ #23349] 2018-06-28 13:21:20 +02:00
timezone Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
wcsmbs Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
wctype Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
.gitattributes Assume __NR_openat is always defined 2016-03-23 23:35:08 +01:00
.gitignore Add *.pyc to .gitignore 2015-05-18 15:26:26 +05:30
abi-tags Remove the bulk of the NaCl port. 2017-05-20 08:09:10 -04:00
aclocal.m4 LIBC_SLIBDIR_RTLDDIR: substitute arguments in single quotes 2018-01-25 17:20:28 +01:00
ChangeLog nscd: Fix use-after-free in addgetnetgrentX [BZ #23520] 2021-03-08 10:12:28 +00:00
config.h.in Add RISC-V entries to config.h.in 2018-01-29 10:24:57 -08:00
config.make.in Pass -no-pie to GCC only if GCC defaults to PIE [BZ #22614] 2017-12-18 12:24:38 -08:00
configure Pass -no-pie to GCC only if GCC defaults to PIE [BZ #22614] 2017-12-18 12:24:38 -08:00
configure.ac Pass -no-pie to GCC only if GCC defaults to PIE [BZ #22614] 2017-12-18 12:24:38 -08:00
COPYING Update to latest versions of GPL-2.0 and LGPL-2.1 2013-09-09 12:52:48 +10:00
COPYING.LIB Update to latest versions of GPL-2.0 and LGPL-2.1 2013-09-09 12:52:48 +10:00
extra-lib.mk Rename cppflags-iterator.mk to libof-iterator.mk, remove extra-modules.mk. 2017-05-09 07:06:29 -04:00
gen-locales.mk Split locale generation snippet into a separate file 2015-05-13 13:05:28 +05:30
INSTALL Fix typo in the previous commit 2018-01-31 23:13:00 +00:00
libc-abis A few more archs have IFUNC support. 2010-03-17 02:43:12 -07:00
libof-iterator.mk Rename cppflags-iterator.mk to libof-iterator.mk, remove extra-modules.mk. 2017-05-09 07:06:29 -04:00
LICENSES stdio-common/tst-printf.c: Remove part under a non-free license [BZ #23363] 2018-07-03 18:36:19 +02:00
MAINTAINERS Add MAINTAINERS 2017-05-11 13:38:30 -04:00
Makeconfig Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Makefile.in New make target to only build benchmark binaries 2016-04-20 10:23:28 +05:30
Makerules Allow make-link-multidir to make subdirectories 2018-01-06 23:35:46 -08:00
NEWS wordexp: handle overflow in positional parameter number (bug 28011) 2021-07-06 19:04:26 +00:00
o-iterator.mk Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> 1995-03-17 18:42:51 +00:00
README Skeleton documentation for the RISC-V port 2018-01-29 10:22:26 -08:00
Rules Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
shlib-versions Extend NSS test suite 2017-07-17 15:52:44 -04:00
test-skeleton.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
version.h Update for 2.27 release 2018-02-01 16:17:18 +00:00

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
	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
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu
	tilegx-*-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.