forked from rpms/glibc
9651e7c5de
Upstream commit: fd658f026f25cf59e8db243bc3b3e09cd5a20ba0
nscd is currently not build, so the security fixes below
are not relevant.
- elf: Also compile dl-misc.os with $(rtld-early-cflags)
- CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two buffers in addgetnetgrentX (bug 31680)
- CVE-2024-33600: nscd: Avoid null pointer crashes after notfound response (bug 31678)
- CVE-2024-33600: nscd: Do not send missing not-found response in addgetnetgrentX (bug 31678)
- CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup cache (bug 31677)
- x86: Define MINIMUM_X86_ISA_LEVEL in config.h [BZ #31676]
Related: RHEL-31738
- i386: ulp update for SSE2 --disable-multi-arch configurations
- nptl: Fix tst-cancel30 on kernels without ppoll_time64 support
Related: RHEL-35602
Fedora 40 commit: 94914be52f
50 lines
1.6 KiB
Diff
50 lines
1.6 KiB
Diff
commit e828914cf9f2fc2caa5bced0fc6a03cb78324979
|
|
Author: Florian Weimer <fweimer@redhat.com>
|
|
Date: Tue Apr 23 21:16:32 2024 +0200
|
|
|
|
nptl: Fix tst-cancel30 on kernels without ppoll_time64 support
|
|
|
|
Fall back to ppoll if ppoll_time64 fails with ENOSYS.
|
|
Fixes commit 370da8a121c3ba9eeb2f13da15fc0f21f4136b25 ("nptl: Fix
|
|
tst-cancel30 on sparc64").
|
|
|
|
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
|
(cherry picked from commit f4724843ada64a51d66f65d3199fe431f9d4c254)
|
|
|
|
diff --git a/sysdeps/pthread/tst-cancel30.c b/sysdeps/pthread/tst-cancel30.c
|
|
index 3030660e5fd93e2c..94ad6281bcf080f4 100644
|
|
--- a/sysdeps/pthread/tst-cancel30.c
|
|
+++ b/sysdeps/pthread/tst-cancel30.c
|
|
@@ -18,6 +18,7 @@
|
|
License along with the GNU C Library; if not, see
|
|
<https://www.gnu.org/licenses/>. */
|
|
|
|
+#include <errno.h>
|
|
#include <support/check.h>
|
|
#include <support/xstdio.h>
|
|
#include <support/xthread.h>
|
|
@@ -46,13 +47,19 @@ tf (void *arg)
|
|
|
|
/* Wait indefinitely for cancellation, which only works if asynchronous
|
|
cancellation is enabled. */
|
|
-#if defined SYS_ppoll || defined SYS_ppoll_time64
|
|
-# ifndef SYS_ppoll_time64
|
|
-# define SYS_ppoll_time64 SYS_ppoll
|
|
+#ifdef SYS_ppoll_time64
|
|
+ long int ret = syscall (SYS_ppoll_time64, NULL, 0, NULL, NULL);
|
|
+ (void) ret;
|
|
+# ifdef SYS_ppoll
|
|
+ if (ret == -1 && errno == ENOSYS)
|
|
+ syscall (SYS_ppoll, NULL, 0, NULL, NULL);
|
|
# endif
|
|
- syscall (SYS_ppoll_time64, NULL, 0, NULL, NULL);
|
|
#else
|
|
+# ifdef SYS_ppoll
|
|
+ syscall (SYS_ppoll, NULL, 0, NULL, NULL);
|
|
+# else
|
|
for (;;);
|
|
+# endif
|
|
#endif
|
|
|
|
return 0;
|