Commit Graph

177 Commits

Author SHA1 Message Date
DJ Delorie
e7f2c8230d Increase ungetc test coverage, guarantee single char pushback (RHEL-46738)
Resolves: RHEL-46738
2024-12-20 14:19:15 -05:00
Florian Weimer
2fc4b325a8 Make getenv thread-safe in more cases (RHEL-67692)
Resolves: RHEL-67692
2024-12-16 18:53:37 +01:00
Florian Weimer
fb0599e12c Use UsrMove (Changes/UsrMerge) path destination in the RPMs (RHEL-65334)
This commit updates most occurrences of /%{_lib} to %{_libdir}.
The glibc build process is not changed, instead the symbolic links
are created right before installing the files, to redirect them
to their final locations.  The symbolic links are removed again
so that they do not end up in the shipped packages.

Resolves: RHEL-65334
2024-12-13 19:22:02 +01:00
Florian Weimer
901a0b41b3 Rework filelist construction
Eliminate most pattern matching and list files explicitly.  Two
common exceptions are modeled explicitly: libmvec (additional shared
object and static library), libnldbl (additional shared object).

To implement glibc-headers-* and glibc-gconv-extra, pattern matching
is still used, but with helper shell functions that allow splitting
the matching and non-matching files into separate list files.

The remaining differences are bug fixes for directory ownership.

/usr/libexec/glibc-benchtests is now owned by glibc-benchtests.
/lib64/glibc-hwcaps is now owned by glibc.ppc64le.

Differences can be checked with this script:

mkdir -p filelist
for x in "$@" ; do
    target="$(rpm -qp --qf 'filelist/%{name}.%{arch}.txt' "$x")"
    rpm -qp --qf '[%{filenames} %{filemodes:perms} (%{fileflags:fflags})(%{fileverifyflags:hex}) \{%{filecaps}\} %{fileusername} %{filegroupname}\n]' "$x" > "$target"
done

Note: Delete the *.src.rpm files because %{arch} has unexpected
results for them.

Related: RHEL-65334
2024-12-13 19:22:02 +01:00
Florian Weimer
d19a50e449 Hard-code ld.so paths for all architectures
Vaguely based on Fedora commit 7749ea58a9e2198f830d6eb8b162344aaf8acb84.

Co-authored-by: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
Related: RHEL-65334
2024-12-13 19:22:02 +01:00
DJ Delorie
e62097ee2d Add GB18030-2022 charmap and tests (RHEL-56032)
Resolves: RHEL-56032
2024-12-05 17:57:47 -05:00
Florian Weimer
6beea7eb54 Document struct link_map and interaction with dlinfo (RHEL-47467)
Resolves: RHEL-47467
2024-12-02 11:43:17 +01:00
Patsy Griffin
1ae6242e8b iconv: Support in-place conversions (RHEL-1915)
Resolves: RHEL-1915
2024-11-21 11:36:45 -05:00
Florian Weimer
e56f6d3b52 Add printf function family tests (RHEL-46725)
Resolves: RHEL-46725
2024-11-18 16:09:30 +01:00
Arjun Shankar
9f5423a440 Add error and FUSE based tests for fchmod (RHEL-50548)
Resolves: RHEL-50548
2024-11-11 18:26:37 +01:00
Florian Weimer
9c1694b310 Add more tests for freopen (RHEL-46736)
Resolves: RHEL-46736
2024-11-07 20:20:03 +01:00
Florian Weimer
a2d1e68858 Add more tests of getline (RHEL-54413)
Resolves: RHEL-54413
2024-11-07 18:52:42 +01:00
Florian Weimer
9d46c1dd61 Add fclose testcases (RHEL-46733)
Resolves: RHEL-46733
2024-11-07 16:40:49 +01:00
Florian Weimer
0ce6757412 Fix memory leak after fdopen seek failure (RHEL-66253)
Resolves: RHEL-66253
2024-11-07 14:48:23 +01:00
Florian Weimer
c6a316c547 Document rules for mixing stdio streams and file descriptors (RHEL-46724)
Resolves: RHEL-46724
2024-11-07 09:39:00 +01:00
Patsy Griffin
c711e702dd Support clearing options in /etc/resolv.conf, RES_OPTIONS with a - prefix.
Introduce the strict-error/RES_STRICTERR stub resolver option (RHEL-50662)

Resolves: RHEL-50662
2024-11-06 15:42:54 -05:00
DJ Delorie
6fbaa68419 Test Implementation to verify mkstemp behavior (RHEL-50545)
Resolves: RHEL-50545

Includes base FUSE filesystem testing framework support.
2024-11-06 13:49:54 -05:00
Arjun Shankar
66024333e7 strtod: Fix subnormal rounding & errno; add new tests (RHEL-46739)
Resolves: RHEL-46739
2024-09-30 11:57:47 +02:00
Florian Weimer
52c06307bd Remove some unused ppc64le string functions (RHEL-60466)
The sysdeps/powerpc/powerpc64/strncmp.S variant crashes due to a page
boundary handling bug.  It is not used on ppc64le because the POWER8
variant takes precedence (and on RHEL9, we always use the POWER9
variant).  Upstream removed these old variants, so this commit just
backports it.  It avoids interfering with further testing.

Resolves: RHEL-60466
2024-09-27 12:58:09 +02:00
Arjun Shankar
d1f7c5caba Add new test for fread (RHEL-46735)
Resolves: RHEL-46735
2024-09-26 17:20:40 +02:00
Arjun Shankar
9bd80898a7 Add new test for fdopen (RHEL-46734)
Resolves: RHEL-46734
2024-09-26 16:05:40 +02:00
DJ Delorie
cc0b035e01 Add fgets testcases
Resolves: RHEL-46728
2024-09-24 20:41:54 -04:00
DJ Delorie
2ba780bc6b manual: Add Descriptor-Relative Access section
Resolves: RHEL-41189
2024-09-24 14:58:59 -04:00
Florian Weimer
ff10577abe Switch to upstream approach for building xtest during make check (RHEL-59494)
Upstream unconditionally builds xtests during make check after
the backported commit, so the spec file change is no longer necessary.

Resolves: RHEL-59494
2024-09-24 16:27:59 +02:00
Florian Weimer
ecd5a531a3 Ensure that xtests can be built (RHEL-59494)
Running the tests isn't ideal, but the makefiles currently do not
support building xtests without running them.

Resolves: RHEL-59494
2024-09-19 17:39:02 +02:00
DJ Delorie
3d4f500e5c elf: Rework exception handling in the dynamic loader (RHEL-46979)
Resolves: RHEL-46979

Note glibc-RHEL-46979-3.patch contains backport-related
ABI protection and is not an upstream commit.
2024-09-09 15:27:04 -04:00
Siddhesh Poyarekar
8e284fa1e8 Fix ungetc leak and invalid read (RHEL-54447)
Resolves: RHEL-54447
2024-09-05 06:26:05 -04:00
Patsy Griffin
07b20a236a - s390x: Fix segfault in wcsncmp
- Enhanced test coverage for strncmp, wcsncmp

Resolves: RHEL-49489
2024-09-03 17:36:50 -04:00
Patsy Griffin
666f2b55d3 - elf: Clarify and invert second argument of _dl_allocate_tls_init
- elf: Avoid re-initializing already allocated TLS in dlopen

Resolves: RHEL-36148
2024-08-28 15:23:03 -04:00
Florian Weimer
7a74d3400a Document dprintf, vdprintf in the manual (RHEL-46723)
Resolves: RHEL-46723
2024-08-15 11:11:24 +02:00
Frédéric Bérat
479ad685f5 getdelim: ensure error indicator is set on error (RHEL-54007)
Resolves: RHEL-54007
2024-08-13 15:22:17 +02:00
Arjun Shankar
0d2a788a88 Add new tests for aligned_alloc (RHEL-50101)
Resolves: RHEL-50101
2024-08-06 17:21:29 +02:00
Arjun Shankar
0ecf9bed9b manual: Improve documentation of putc, putwc, getc, and getwc (RHEL-46741)
Resolves: RHEL-46741
2024-08-06 14:00:31 +02:00
DJ Delorie
21ce8318ac manual: add syscalls (RHEL-25257)
Resolves: RHEL-25257
2024-07-22 15:13:48 -04:00
DJ Delorie
29cbc66e08 Update mmap() flags and errors lists (RHEL-30823)
Resolves: RHEL-30823
2024-07-12 13:29:15 -04:00
Patsy Griffin
45033701c6 elf: Avoid some free (NULL) calls in _dl_update_slotinfo
elf: Support recursive use of dynamic TLS in interposed malloc

Resolves: RHEL-39992
2024-07-11 16:01:24 -04:00
Patsy Griffin
c24969da03 Update syscall list for Linux 6.9.
Resolves: RHEL-39000
2024-07-03 18:29:08 -04:00
Patsy Griffin
d3837bb611 CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two buffers in addgetnetgrentX
Resolves: RHEL-34272
Resolves: RHEL-34274
2024-06-13 22:25:57 -04:00
Patsy Griffin
ec53b9158c CVE-2024-33600: nscd: Do not send missing not-found response in addgetnetgrentX.
Resolves: RHEL-34268
2024-06-11 23:25:01 -04:00
Patsy Griffin
221f7bce5b CVE-2024-33599: nscd: buffer overflow in netgroup cache (RHEL-34265)
Resolves: RHEL-34265
2024-06-10 13:51:02 -04:00
Arjun Shankar
001abaad14 Add new test for malloc mmap fall-back path upon sbrk failure (RHEL-25063)
Resolves: RHEL-25063
2024-06-10 14:10:09 +02:00
Arjun Shankar
1fb374e8dc Correct changelog entry
Related: RHEL-31805
2024-06-10 14:07:04 +02:00
Patsy Griffin
c9855bf213 CVE-2024-2961: Out of bounds write in iconv conversion to ISO-2022-CN-EXT (RHEL-31805)
Resolves: RHEL-31805
2024-06-06 21:34:16 -04:00
Patsy Griffin
2ea0ac63f1 Enhance ld.so --list-diagnostics on aarch64
Resolves: RHEL-22165
2024-06-06 14:24:58 -04:00
DJ Delorie
6640587883 Add MMAP_ABOVE4G from Linux 6.6 to sys/mman.h
Resolves: RHEL-39006
2024-05-29 15:47:04 -04:00
Patsy Griffin
ed2fe1a5b0 Improve test coverage for connect()
Resolves: RHEL-32681
2024-05-20 17:35:34 -04:00
DJ Delorie
ada12691fb x86-64: Save APX registers in ld.so trampoline
Resolves: RHEL-25046
2024-04-03 23:25:59 -04:00
DJ Delorie
6dbf26d6f4 x86: Fix Zen3/Zen4 ERMS selection
Resolves: RHEL-25531
2024-04-02 22:40:56 -04:00
Arjun Shankar
5a35e9b70f malloc: Do not use MAP_NORESERVE to allocate heap segments (RHEL-21884)
Resolves: RHEL-21884
2024-03-12 17:10:19 +01:00
DJ Delorie
b11febd624 x86-64: Add glibc.cpu.prefer_map_32bit_exec
Resolves: RHEL-20172

Note: there are follow up patches which fix Hurd wrt this change,
but those lead to a rabbit hole of other required fixes that
become more and more invasive... One relevant change was to move
the tests specific to this change, but there has been no further
work upstream on those tests, so leaving that out should not
affect future merges.
2024-03-11 18:22:11 -04:00