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
assert
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
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
ctype
debug Fix array overflow in backtrace on PowerPC (bug 25423) 2020-11-16 08:00:00 +00:00
dirent
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
gnulib
grp
gshadow
hesiod
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
libio libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203] 2019-11-28 14:42:32 +01:00
locale
localedata Add Transliterations for Unicode Misc. Mathematical Symbols-A/B [BZ #23132] 2020-11-30 22:59:53 +00:00
login
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
misc Fix misreported errno on preadv2/pwritev2 (BZ#23579) 2018-09-28 15:30:30 -03:00
nis
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
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
resolv Add an additional test to resolv/tst-resolv-network.c 2018-11-09 14:39:11 +01:00
resource
rt
scripts Add RISC-V to build-many-glibcs.py 2018-01-29 10:43:15 -08:00
setjmp
shadow
signal Add tst-sigaction.c to test BZ #23069 2018-04-28 13:18:25 +02:00
socket
soft-fp
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
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
termios
time Use _STRUCT_TIMESPEC as guard in <bits/types/struct_timespec.h> [BZ #23349] 2018-06-28 13:21:20 +02:00
timezone
wcsmbs
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
ChangeLog nscd: Fix use-after-free in addgetnetgrentX [BZ #23520] 2021-03-08 10:12:28 +00:00
config.h.in
config.make.in
configure
configure.ac
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL Fix typo in the previous commit 2018-01-31 23:13:00 +00:00
libc-abis
libof-iterator.mk
LICENSES stdio-common/tst-printf.c: Remove part under a non-free license [BZ #23363] 2018-07-03 18:36:19 +02:00
MAINTAINERS
Makeconfig
Makefile
Makefile.in
Makerules
NEWS wordexp: handle overflow in positional parameter number (bug 28011) 2021-07-06 19:04:26 +00:00
o-iterator.mk
README
Rules
shlib-versions
test-skeleton.c
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.