Go to file
Alex Butler 92d25389c2 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:36:14 +00:00
argp
assert
benchtests
bits
catgets
ChangeLog.old
conform conform: XFAIL siginfo_t si_band test on sparc64 2018-10-26 09:19:40 +02:00
crypt
csu
ctype
debug debug: Mark libSegFault.so as NODELETE 2023-07-21 16:41:28 +02:00
dirent
dlfcn dlfcn: Guard __dlerror_main_freeres with __libc_once_get (once) [BZ#24476] 2019-05-16 15:19:44 +02:00
elf Makerules: fix MAKEFLAGS assignment for upcoming make-4.4 [BZ# 29564] 2024-05-09 20:14:31 -07:00
gmon
gnulib
grp [BZ #20271] Add newlines in __libc_fatal calls. 2018-11-09 10:17:07 -05:00
gshadow
hesiod
htl hurd: Add missing symbols for proper libc_get/setspecific 2018-08-08 02:17:39 +02:00
hurd hurd: Fix exec usage of mach_setup_thread 2018-08-01 00:10:03 +02:00
iconv
iconvdata gconv: Fix assertion failure in ISO-2022-JP-3 module (bug 27256) 2021-01-27 15:51:17 +01:00
include Enhance setuid-tunables test 2021-04-14 11:49:23 +05:30
inet resolv/tst-idna_name_classify: Isolate from system libraries 2024-05-09 15:33:29 -07:00
intl intl: Do not return NULL on asprintf failure in gettext [BZ #24018] 2019-01-02 16:46:12 +01:00
io io: Remove copy_file_range emulation [BZ #24744] 2019-07-09 10:33:10 +02:00
libio libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203] 2019-11-28 14:42:11 +01:00
locale Fix out of bounds access in findidxwc (bug 23442) 2018-07-25 10:50:03 +02:00
localedata ja_JP locale: Add entry for the new Japanese era [BZ #22964] 2019-04-03 18:23:14 -04:00
login
mach hurd: Fix exec usage of mach_setup_thread 2018-08-01 00:10:03 +02:00
malloc Base max_fast on alignment, not width, of bins (Bug 24903) 2019-10-31 16:48:04 +01:00
manual Add glibc.malloc.mxfast tunable 2019-10-30 19:03:40 +01:00
math Add XFAIL_ROUNDING_IBM128_LIBGCC to more fma() tests 2019-01-16 15:55:23 -02:00
mathvec
misc Fix misreported errno on preadv2/pwritev2 (BZ#23579) 2018-09-28 15:32:43 -03:00
nis
nptl Fix alignment of TLS variables for tls variant TLS_TCB_AT_TP [BZ #23403] 2019-11-06 17:40:18 -05:00
nptl_db
nscd nscd: Fix double free in netgroupcache [BZ #27462] 2021-03-08 15:42:28 +05:30
nss nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-10-31 17:55:49 -04:00
po Synchronize translation project PO files. 2018-08-01 01:01:42 -04:00
posix Fix use-after-free in glob when expanding ~user (bug 25414) 2020-03-20 15:23:11 -03:00
pwd
resolv CVE-2016-10739: getaddrinfo: Fully parse IPv4 address strings [BZ #20018] 2019-02-04 21:36:37 +01:00
resource
rt
scripts
setjmp
shadow
signal
socket
soft-fp
stdio-common Add test for bug 29530 2022-08-30 12:42:19 +02:00
stdlib testsuite: stdlib/isomac.c: add missing include 2024-05-09 19:11:00 -07:00
streams
string x86: Fix wcsnlen-avx2 page cross length comparison [BZ #29591] 2022-11-24 18:06:14 -08:00
sunrpc
support support: Add xsetlocale function 2022-08-30 12:42:19 +02:00
sysdeps aarch64: MTE compatible strncmp 2024-11-04 16:36:14 +00:00
sysvipc
termios
time Fix tzfile low-memory assertion failure 2018-11-09 10:17:13 -05:00
timezone
wcsmbs
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
ChangeLog testsuite: stdlib/isomac.c: add missing include 2024-05-09 19:11:00 -07:00
config.h.in
config.make.in
configure x86: Assume --enable-cet if GCC defaults to CET [BZ #25225] 2019-12-03 21:11:32 +01:00
configure.ac x86: Assume --enable-cet if GCC defaults to CET [BZ #25225] 2019-12-03 21:11:32 +01:00
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL Update tooling versions verified to work with glibc. 2018-07-31 16:37:07 -04:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Force DT_RPATH for --enable-hardcoded-path-in-tests 2024-05-10 06:17:30 -07:00
Makefile
Makefile.in
Makerules Makerules: fix MAKEFLAGS assignment for upcoming make-4.4 [BZ# 29564] 2024-05-09 20:14:31 -07:00
NEWS Remove most vfprintf width/precision-dependent allocations (bug 14231, bug 26211). 2022-08-30 12:20:01 +02:00
o-iterator.mk
README
Rules
shlib-versions
test-skeleton.c
version.h Update NEWS, version.h, and features.h for glibc 2.28. 2018-08-01 01:10:47 -04: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.

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

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.