aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
10 daysmalloc: Remove redundant NULL checkWilco Dijkstra1-4/+3
Remove a redundant NULL check from tcache_get_n. Reviewed-by: Cupertino Miranda <cupertino.miranda@oracle.com>
11 daysreplace atan2-inputs with more meaningful inputsPaul Zimmermann1-1002/+1001
Commit 934d88d used inputs with exponent generated at random in the whole binary64 exponent range, which yields essentially very large or very small values of |y/x|. Instead, this commit generates x, y at random in [-10,10], which should better corresponds to real applications. Reviewed-by: Florian Weimer <fweimer@redhat.com>
11 daysinet-fortified: fix namespace violation (bug 33227)Sam James1-4/+4
We need to use __sz, not sz, as we do elsewhere. Reviewed-by: Florian Weimer <fweimer@redhat.com>
11 daystst-cond23: return EXIT_UNSUPPORTED on missing clock selectionSamuel Thibault1-1/+1
11 daysNEWS: Add 2.43 sectionAndreas K. Hüttel1-0/+27
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
11 daysBump version to 2.42.9000glibc-2.42.9000Andreas K. Hüttel1-2/+2
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
11 daysCreate ChangeLog.old/ChangeLog.31glibc-2.42Andreas K. Hüttel1-0/+10420
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
11 daysBump version number to 2.42Andreas K. Hüttel2-3/+3
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
11 daysNEWS: update with last-minute fix bug 33224Andreas K. Hüttel1-0/+2
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
11 daysmath: Update auto-libm-tests-in with ldbl-128ibm compoundn/pown failuresAdhemerval Zanella3-90/+90
It fixes ce488f7c1615bc2f6fe96ff4d51456e470aa5805 which updated the out files without using gen-auto-libm-tests.c instructions. Checked on powerpc64le-linux-gnu. Tested-by: Andreas K. Huettel <dilfridge@gentoo.org> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
11 daysINSTALL: Update newest tested binutils versionAndreas K. Hüttel2-4/+2
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
12 dayself: Compile _dl_debug_state separately (bug 33224)Florian Weimer3-11/+31
This ensures that the compiler will not inline it, so that debuggers which do not use the Systemtap probes can reliably set a breakpoint on it. Reviewed-by: Andreas K. Huettel <dilfridge@gentoo.org> Tested-by: Andreas K. Huettel <dilfridge@gentoo.org>
12 daysconfigure.ac: fix bashisms in SFrame checksSam James2-4/+4
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
13 daysINSTALL: regenerateAndreas K. Hüttel1-11/+14
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
13 daysinstall.texi: Update tested build tool versionsAndreas K. Hüttel1-7/+8
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
13 dayscontrib.texi: UpdateAndreas K. Hüttel1-14/+39
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
14 daysNEWS: insert list of CVEsAndreas K. Hüttel1-2/+15
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
14 daysadvisories: s/CVE-id/CVE-Id/ (the lowercase i breaks our tooling)Andreas K. Hüttel3-3/+3
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
2025-07-25NEWS: Generalize testing section and mention the manual.Carlos O'Donell1-2/+5
2025-07-25NEWS: Insert list of bugs fixed in 2.42Andreas K. Hüttel1-2/+93
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
2025-07-25NEWS: Collect some more newsworthy itemsAndreas K. Hüttel1-0/+16
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
2025-07-25NEWS: editorial changesAndreas K. Hüttel1-17/+17
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
2025-07-25po: Update swedish translationsAndreas K. Hüttel1-3/+9
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
2025-07-25debug: Only run sframe tests if run-built-tests is enabledAdhemerval Zanella1-0/+2
2025-07-25aarch64: Fix aarch64_be build with --enable-sframeAdhemerval Zanella1-1/+1
2025-07-24elf: Check SFrame on tst-dl_find_object.cAdhemerval Zanella1-0/+14
If SFrame is enable check if DLFO_FLAG_SFRAME is set (since sframe support is added by default) and if dlfo_sframe has the expected value. Checked on aarch64-linux-gnu and x86_64-linux-gnu. Reviewed-by: Sam James <sam@gentoo.org>
2025-07-24sframe: Add support for SFRAME_F_FDE_FUNC_START_PCREL flagClaudiu Zissulescu3-31/+118
The Sframe V2 has a new errata which introduces the SFRAME_F_FDE_FUNC_START_PCREL flag. This flag indicates the encoding of the SFrame FDE function start address field like this: - if set, sfde_func_start_address field contains the offset in bytes to the start PC of the associated function from the field itself. - if unset, sfde_func_start_address field contains the offset in bytes to the start PC of the associated function from the start of the SFrame section. Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> Reviewed-by: Sam James <sam@gentoo.org>
2025-07-24Disable SFrame support by defaultAdhemerval Zanella17-88/+141
And add extra checks to enable for binutils 2.45 and if the architecture explicitly enables it. When SFrame is disabled, all the related code is also not enabled for backtrace() and _dl_find_object(), so SFrame backtracking is not used even if the binary has the SFrame segment. This patch also adds some other related fixes: * Fixed an issue with AC_CHECK_PROG_VER, where the READELF_SFRAME usage prevented specifying a different readelf through READELF environment variable at configure time. * Add an extra arch-specific internal definition, libc_cv_support_sframe, to disable --enable-sframe on architectures that have binutils but not glibc support (s390x). * Renamed the tests without the .sframe segment and move the tst-backtrace1 from pthread to debug. * Use the built compiler strip to remove the .sframe segment, instead of the system one (which might not support SFrame). Checked on x86_64-linux-gnu and aarch64-linux-gnu. Reviewed-by: Sam James <sam@gentoo.org>
2025-07-24math: xfail some pown and compoundn tests for ibm128-libgccSachin Monga3-44/+44
On powerpc math/test-ibm128-pown shows below failures: testing long double (without inline functions) infinity has wrong sign. Failure: Test: pown_downward (-inf, 0x7fffffffffffffffLL) Result: is: inf inf should be: -inf -inf Failure: Test: pown_downward (-0, 9223372036854775807LL) Result: is: 0.00000000000000000000000000000000e+00 0x0.000000000000000000000000000p+0 should be: -0.00000000000000000000000000000000e+00 -0x0.000000000000000000000000000p+0 difference: 0.00000000000000000000000000000000e+00 0x0.000000000000000000000000000p+0 ulp : 0.0000 max.ulp : 16.0000 Failure: pown_downward (-0x1p+0, 9223372036854775807LL): Exception "Invalid operation" set Failure: pown_downward (-0x1p+0, 9223372036854775807LL): errno set to 34, expected 0 (unchanged) Failure: Test: pown_downward (-0x1p+0, 9223372036854775807LL) Result: is: qNaN should be: -1.00000000000000000000000000000000e+00 -0x1.000000000000000000000000000p+0 infinity has wrong sign. Failure: Test: pown_towardzero (-0, -0x7fffffffffffffffLL) Result: is: inf inf should be: -inf -inf infinity has wrong sign. Failure: Test: pown_towardzero (-inf, 0x7fffffffffffffffLL) Result: is: inf inf should be: -inf -inf Failure: Test: pown_towardzero (-inf, -0x7fffffffffffffffLL) Result: is: 0.00000000000000000000000000000000e+00 0x0.000000000000000000000000000p+0 should be: -0.00000000000000000000000000000000e+00 -0x0.000000000000000000000000000p+0 difference: 0.00000000000000000000000000000000e+00 0x0.000000000000000000000000000p+0 ulp : 0.0000 max.ulp : 16.0000 Failure: Test: pown_towardzero (-0, 9223372036854775807LL) Result: is: 0.00000000000000000000000000000000e+00 0x0.000000000000000000000000000p+0 should be: -0.00000000000000000000000000000000e+00 -0x0.000000000000000000000000000p+0 difference: 0.00000000000000000000000000000000e+00 0x0.000000000000000000000000000p+0 ulp : 0.0000 max.ulp : 16.0000 Failure: pown_towardzero (-0x1p+0, -9223372036854775807LL): Exception "Invalid operation" set Failure: pown_towardzero (-0x1p+0, -9223372036854775807LL): errno set to 34, expected 0 (unchanged) Failure: Test: pown_towardzero (-0x1p+0, -9223372036854775807LL) Result: is: qNaN should be: -1.00000000000000000000000000000000e+00 -0x1.000000000000000000000000000p+0 Failure: pown_towardzero (-0x1p+0, 9223372036854775807LL): Exception "Invalid operation" set Failure: pown_towardzero (-0x1p+0, 9223372036854775807LL): errno set to 34, expected 0 (unchanged) Failure: Test: pown_towardzero (-0x1p+0, 9223372036854775807LL) Result: is: qNaN should be: -1.00000000000000000000000000000000e+00 -0x1.000000000000000000000000000p+0 infinity has wrong sign. Failure: Test: pown_upward (-0, -0x7fffffffffffffffLL) Result: is: inf inf should be: -inf -inf Failure: Test: pown_upward (-inf, -0x7fffffffffffffffLL) Result: is: 0.00000000000000000000000000000000e+00 0x0.000000000000000000000000000p+0 should be: -0.00000000000000000000000000000000e+00 -0x0.000000000000000000000000000p+0 difference: 0.00000000000000000000000000000000e+00 0x0.000000000000000000000000000p+0 ulp : 0.0000 max.ulp : 16.0000 Failure: pown_upward (-0x1p+0, -9223372036854775807LL): Exception "Invalid operation" set Failure: pown_upward (-0x1p+0, -9223372036854775807LL): errno set to 34, expected 0 (unchanged) Failure: Test: pown_upward (-0x1p+0, -9223372036854775807LL) Result: is: qNaN should be: -1.00000000000000000000000000000000e+00 -0x1.000000000000000000000000000p+0 Likewise, math/test-ibm128-compoundn shows below failure: testing long double (without inline functions) Failure: compoundn_upward (0xf.ffffffffffff8p+1020, 1LL): Exception "Overflow" set Failure: compoundn_upward (0xf.ffffffffffff8p+1020, 1LL): errno set to 34, expected 0 (unchanged) Failure: Test: compoundn_upward (0xf.ffffffffffff8p+1020, 1LL) Result: is: inf inf should be: 1.79769313486231570814527423731707e+308 0x1.fffffffffffff00000000000008p+1023 Signed-off-by: Sachin Monga <smonga@linux.ibm.com> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2025-07-24manual: Use @Theglibc{} at sentence start in terminal documentationFlorian Weimer1-3/+3
Fixes commit 5dd2a19ad5218261cee064 ("termios: manual: improve the explanation of various tty concepts") and commit c744519bad8106769760 ("termios: manual: document the SPEED_MAX and BAUD_MAX constants"). Reviewed-by: Collin Funk <collin.funk1@gmail.com>
2025-07-24Update Fix-Commit list for advisory GLIBC-SA-2025-0002Carlos O'Donell1-0/+5
2025-07-24debug: Link tst-sprintf-fortify-rdonly-static with -Wl,-z,relro [BZ 33183]John David Anglin1-0/+1
This test requires relro_format be placed in the PT_GNU_RELRO segment. The ELF linker enables -z relro support by default on all Linux targets except FRV, HPPA, IA64 and MIPS. On these targets, we need to explicitly link with -z relro to place relro_format in the PT_GNU_RELRO segment. Signed-off-by: John David Anglin <dave.anglin@bell.net>
2025-07-23Advisory text for CVE-2025-8058Adhemerval Zanella1-0/+14
The fix is already installed (7ea06e994093fa0bcca0d0ee2c1db271d8d7885d). Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2025-07-22Makeconfig: The hash character # confuses old make, use $(dir instead of sedAndreas K. Hüttel1-1/+1
Up to Make 4.2, # is treated as the start of a comment even in function invocations. This leads to a syntax error. Fixed in Make 4.3, but we still support versions back to 4.0 at the moment. Tested on Gentoo (x86-64) and Debian (loongarch64) Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> Reviewed-by: Collin Funk <collin.funk1@gmail.com>
2025-07-22po: Incorporate translationsAndreas K. Hüttel38-3933/+5798
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
2025-07-21posix: Fix double-free after allocation failure in regcomp (bug 33185)Florian Weimer3-1/+180
If a memory allocation failure occurs during bracket expression parsing in regcomp, a double-free error may result. Reported-by: Anastasia Belova <abelova@astralinux.ru> Co-authored-by: Paul Eggert <eggert@cs.ucla.edu> Reviewed-by: Andreas K. Huettel <dilfridge@gentoo.org>
2025-07-21Revert "Linux: Keep termios ioctl constants strictly internal"Florian Weimer18-116/+260
This reverts commit 3d3572f59059e2b19b8541ea648a6172136ec42e. Reason for revert: TCGETS etc. work to some extent on at least a subset of architectures, so there is no pressing need to force applications off them. Removal of the macros breaks building the sanitizers, impacting both GCC and LLVM. Reviewed-by: Sam James <sam@gentoo.org>
2025-07-20termios: manual: document the SPEED_MAX and BAUD_MAX constantsH. Peter Anvin1-0/+18
Add the SPEED_MAX and BAUD_MAX constants to the manual. [ v3: drop leading underscores ] Signed-off-by: "H. Peter Anvin" (Intel) <hpa@zytor.com> Reviewed-by: Collin Funk <collin.funk1@gmail.com>
2025-07-20termios: SPEED_MAX and BAUD_MAX constantsH. Peter Anvin2-1/+5
Add constants indicating the maximum values of speed_t and baud_t. Hopefully if and when the baud_t interface is standardized then BAUD_MAX will be included in the standardization from the start. Historically, the __MAX_BAUD symbol has indicated the maximum speed_t value on at least some platforms (including glibc). However, this name would be problematic for future standardization, because it confusingly implies a reference to baud_t, not speed_t, and it is inconsistent with other limit symbols, which are all of the form *_MAX (e.g. SIZE_MAX for size_t.) [ v3: dropped leading underscores, leave __MAX_BAUD outside #ifdef __USE_MISC since it is a legacy symbol, and namespace-protected with a double underscore. (Collin Funk, Adhermerval Zanella Netto) ] [ v4: moved from __USE_MISC to __USE_GNU (Collin Funk) ] Signed-off-by: "H. Peter Anvin" (Intel) <hpa@zytor.com> Reviewed-by: Collin Funk <collin.funk1@gmail.com>
2025-07-20termios: move the baud_t interface from __USE_MISC to __USE_GNUH. Peter Anvin1-0/+2
__USE_MISC refers to interfaces imported from BSD or System V, but the baud_t interface is (at least for now) a GNU extension, so move it from __USE_MISC to __USE_GNU. Suggested-by: Collin Funk <collin.funk1@gmail.com> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com> Reviewed-by: Collin Funk <collin.funk1@gmail.com>
2025-07-20termios: manual: improve the explanation of various tty conceptsH. Peter Anvin1-128/+281
It is a lot easier to understand the meaning of the tty interface if it is explained from the beginning as conceptually emulating an RS232 serial port. This greatly simplifies the discussions of specific items like the meaning of line speed. Distinguish between "modem disconnect request" (deasserting DTR) and "modem disconnect" (DCD deasserted). Conflating the two terms is confusing, especially for non-RS232 devices. In particular, on most systems, a pseudo-terminal will *not* respond to a modem disconnect request by triggering a modem disconnect event for the purpose of the HUPCL flag. It is not necessarily true that the line speed has no effect on non-serial port devices: e.g. an SPI port may interpret it as the clock frequency to use; however, SPI does not use asynchronous framing bits, instead synchronization is handled by the SS# wire. Similarly, it is common but not by any means universal for interfaces that employ various forms of fixed data to symbol rate encodings to encode the data link layer bit rate rather than the physical symbol rate, which may be higher (e.g. 8B10B) or lower (e.g. QAM/Trellis), without the encoding or framing overhead. Finally, a handful of devices use the line rate for entirely nonstandard purposes. One example is Arduino USB interfaces, which often interprets changing the baud rate to 1200 baud as a command to reset the device. [ v2: removed a bogus stray chunk from editing ] Signed-off-by: H. Peter Anvin <hpa@zytor.com> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2025-07-20termios: manual: remove duplicate cfgetospeed() definitionH. Peter Anvin1-10/+0
The function cfsetospeed() is defined twice in the manual. Remove the one that seems out of place. Signed-off-by: "H. Peter Anvin" (Intel) <hpa@zytor.com> Reviewed-by: Collin Funk <collin.funk1@gmail.com>
2025-07-20termios: manual: fix typo: tcsettattr -> tcsetattrH. Peter Anvin1-1/+1
Fix a typo in the manual: tcsetattr misspelled as tcsettattr. Signed-off-by: "H. Peter Anvin" (Intel) <hpa@zytor.com> Reviewed-by: Collin Funk <collin.funk1@gmail.com>
2025-07-19libc.pot: regenerateAndreas K. Hüttel1-117/+123
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
2025-07-19io/tst-stat.c: Use a temporary directory for symlink testH.J. Lu1-4/+9
Call support_create_temp_directory to create a temporary directory for symlink test, instead of a fixed file in the glibc source tree, to avoid the race condition when there are more than one glibc tests running at the same time with the same glibc source tree. This fixes BZ #33178. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Andreas K. Huettel <dilfridge@gentoo.org>
2025-07-18elf: Initialize GLRO (dl_read_only_area) after static dlopen (bug 33139)Florian Weimer4-1/+15
The _dl_read_only_area function in the uninitialized ld.so after static dlopen is not able to find anything. Instead, we need to redirect to the code from the statically linked main program. Fixes commit d60fffe28a46b2a41fc308c1804ff02375d27408 ("debug: Improve '%n' fortify detection (BZ 30932)"). Reviewed-by: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
2025-07-18debug: Do not link tst-sprintf-fortify-rdonly against the dlopen moduleFlorian Weimer1-3/+3
The test intends to load tst-sprintf-fortify-rdonly-dlopen.so via dlopen, and directly linking against it prevents that. Reviewed-by: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
2025-07-18x86-64: Properly compile ISA optimized modf and modffH.J. Lu12-47/+90
There are 3 variants of modf and modff: SSE2, SSE4.1 and AVX. s_modf.c and s_modff.c include the generic implementation compiled with the minimum x86 ISA level. The IFUNC selector is used only if the minimum ISA level is less than AVX. SSE4.1 variant is included only if the ISA level is less than SSE4.1. AVX variant is included only the ISA level is less than AVX. AVX variant should be compiled with -mavx, not -msse2avx -DSSE2AVX which are used to encode SSE assembly sources with EVEX encoding. The routines that are shared between libc and libm should use different rules to avoid using the same MODULE_NAME, to avoid potential issues like BZ #33165 where __stack_chk_fail not being routed to the internal symbol. Tested with -march=x86-64, -march=x86-64-v2, -march=x86-64-v3 and -march=x86-64-v4. This fixes BZ #33165 and BZ #33173. Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2025-07-17x86-64: Compile ISA versions of modf/modff with -fno-stack-protectorH.J. Lu1-4/+11
Since modf and modff are compiled into both libc and libm, when glibc is configured with --enable-stack-protector=all, ISA versions of modf and modff should be compiled with -fno-stack-protector to avoid calling __stack_chk_fail via PLT in libc.so. This fixes BZ #33165. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Andreas K. Huettel <dilfridge@gentoo.org>
2025-07-17iconv: iconv -o should not create executable files (bug 33164)Florian Weimer2-2/+6
The mistake is that open must use 0666 to pick up the umask, and not 0777 (which is required by mkdir). Fixes commit 8ef3cff9d1ceafe369f982d980678d749fb93bd2 ("iconv: Support in-place conversions (bug 10460, bug 32033)"). Reviewed-by: H.J. Lu <hjl.tools@gmail.com>