glibc:release/2.39/master

Last commit made on 2024-06-25
Get this branch:
git clone -b release/2.39/master https://git.launchpad.net/glibc

Branch merges

Branch information

Name:
release/2.39/master
Repository:
lp:glibc

Recent commits

74630b1... by Adhemerval Zanella

posix: Fix pidfd_spawn/pidfd_spawnp leak if execve fails (BZ 31695)

If the pidfd_spawn/pidfd_spawnp helper process succeeds, but evecve
fails for some reason (either with an invalid/non-existent, memory
allocation, etc.) the resulting pidfd is never closed, nor returned
to caller (so it can call close).

Since the process creation failed, it should be up to posix_spawn to
also, close the file descriptor in this case (similar to what it
does to reap the process).

This patch also changes the waitpid with waitid (P_PIDFD) for pidfd
case, to avoid a possible pid re-use.

Checked on x86_64-linux-gnu.
Reviewed-by: Carlos O'Donell <email address hidden>

(cherry picked from commit c90cfce849d010474e8cccf3e5bff49a2c8b141f)

7f9f25f... by Florian Weimer

Linux: Include <dl-symbol-redir-ifunc.h> in dl-sysdep.c

The _dl_sysdep_parse_arguments function contains initalization
of a large on-stack variable:

  dl_parse_auxv_t auxv_values = { 0, };

This uses a non-inline version of memset on powerpc64le-linux-gnu,
so it must use the baseline memset.

(cherry picked from commit f6ea5d1291cf3f264514d03872ebae84e0293b69)

198632a... by Andreas K. Hüttel

NEWS: update list of fixed CVEs in 2.39

Signed-off-by: Andreas K. Hüttel <email address hidden>

77bb3c7... by Andreas K. Hüttel

NEWS: update list of fixed bugs in 2.39

Signed-off-by: Andreas K. Hüttel <email address hidden>

f056387... by "H.J. Lu" <email address hidden>

x86: Properly set x86 minimum ISA level [BZ #31883]

Properly set libc_cv_have_x86_isa_level in shell for MINIMUM_X86_ISA_LEVEL
defined as

(__X86_ISA_V1 + __X86_ISA_V2 + __X86_ISA_V3 + __X86_ISA_V4)

Also set __X86_ISA_V2 to 1 for i386 if __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
is defined. There are no changes in config.h nor in config.make on x86-64.
On i386, -march=x86-64-v2 with GCC generates

 #define MINIMUM_X86_ISA_LEVEL 2

in config.h and

have-x86-isa-level = 2

in config.make. This fixes BZ #31883.

Signed-off-by: H.J. Lu <email address hidden>
Reviewed-by: Noah Goldstein <email address hidden>
(cherry picked from commit 29807a271edca3e47195bda0c69ae45e245551a9)

b7f5b0a... by "H.J. Lu" <email address hidden>

x86: Properly set MINIMUM_X86_ISA_LEVEL for i386 [BZ #31867]

On i386, set the default minimum ISA level to 0, not 1 (baseline which
includes SSE2). There are no changes in config.h nor in config.make on
x86-64. This fixes BZ #31867.

Signed-off-by: H.J. Lu <email address hidden>
Tested-by: Ian Jordan <email address hidden>
Reviewed-by: Sam James <email address hidden>
Reviewed-by: Florian Weimer <email address hidden>
(cherry picked from commit 09bc68b0ac26331a0109f0578c9368e09176da18)

e1d0040... by Mike FABIAN <email address hidden>

localedata: ssy_ER: Fix syntax error

(cherry picked from commit 07fd072caff50bca2a7e9f5737a5b38280d2ffda)

9de9cd1... by sayan paul <email address hidden>

malloc: New test to check malloc alternate path using memory obstruction

The test aims to ensure that malloc uses the alternate path to
allocate memory when sbrk() or brk() fails.To achieve this,
the test first creates an obstruction at current program break,
tests that obstruction with a failing sbrk(), then checks if malloc
is still returning a valid ptr thus inferring that malloc() used
mmap() instead of brk() or sbrk() to allocate the memory.
Reviewed-by: Arjun Shankar <email address hidden>
Reviewed-by: Zack Weinberg <email address hidden>

(cherry picked from commit 127fc56152347d73cb7c1c283e60e1cb1f15e9f9)

a2da98a... by Joe Simmons-Talbott <email address hidden>

malloc: Improve aligned_alloc and calloc test coverage.

Add a DSO (malloc/tst-aligned_alloc-lib.so) that can be used during
testing to interpose malloc with a call that randomly uses either
aligned_alloc, __libc_malloc, or __libc_calloc in the place of malloc.
Use LD_PRELOAD with the DSO to mirror malloc/tst-malloc.c testing as an
example in malloc/tst-malloc-random.c. Add malloc/tst-aligned-alloc-random.c
as another example that does a number of malloc calls with randomly sized,
but limited to 0xffff, requests.

The intention is to be able to utilize existing malloc testing to ensure
that similar allocation APIs are also exposed to the same rigors.

Reviewed-by: DJ Delorie <email address hidden>
(cherry picked from commit 3395157ff2b0657d70c36169156f67440205c8bf)

305ee48... by "H.J. Lu" <email address hidden>

malloc/Makefile: Split and sort tests

Put each test on a separate line and sort tests.

Signed-off-by: H.J. Lu <email address hidden>
Reviewed-by: Carlos O'Donell <email address hidden>
(cherry picked from commit d49cd6a1913da9744b9a0ffbefb3f7958322382e)