summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/glibc/glibc/0026-PR25847-10.patch54
-rw-r--r--meta/recipes-core/glibc/glibc_2.35.bb1
2 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc/0026-PR25847-10.patch b/meta/recipes-core/glibc/glibc/0026-PR25847-10.patch
new file mode 100644
index 0000000000..99049d468a
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/0026-PR25847-10.patch
@@ -0,0 +1,54 @@
1From 4f78382dd671f381db6d1f452e6f1593d17b177e Mon Sep 17 00:00:00 2001
2From: Florian Weimer <fweimer@redhat.com>
3Date: Tue, 14 Oct 2025 06:53:40 -0700
4Subject: [PATCH] nptl: PTHREAD_COND_INITIALIZER compatibility with pre-2.41
5 versions (bug 32786)
6
7The new initializer and struct layout does not initialize the
8__g_signals field in the old struct layout before the change in
9commit c36fc50781995e6758cae2b6927839d0157f213c ("nptl: Remove
10g_refs from condition variables"). Bring back fields at the end
11of struct __pthread_cond_s, so that they are again zero-initialized.
12
13The following commits have been cherry-picked from Glibc master branch:
14Bug : https://sourceware.org/bugzilla/show_bug.cgi?id=25847
15commit: dbc5a50d12eff4cb3f782129029d04b8a76f58e7
16
17Upstream-Status: Submitted
18[https://sourceware.org/pipermail/libc-stable/2025-July/002282.html]
19
20Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
21---
22 sysdeps/nptl/bits/thread-shared-types.h | 2 ++
23 sysdeps/nptl/pthread.h | 2 +-
24 2 files changed, 3 insertions(+), 1 deletion(-)
25
26diff --git a/sysdeps/nptl/bits/thread-shared-types.h b/sysdeps/nptl/bits/thread-shared-types.h
27index 6f17afa4..2354ea21 100644
28--- a/sysdeps/nptl/bits/thread-shared-types.h
29+++ b/sysdeps/nptl/bits/thread-shared-types.h
30@@ -99,6 +99,8 @@ struct __pthread_cond_s
31 unsigned int __g1_orig_size;
32 unsigned int __wrefs;
33 unsigned int __g_signals[2];
34+ unsigned int __unused_initialized_1;
35+ unsigned int __unused_initialized_2;
36 };
37
38 typedef unsigned int __tss_t;
39diff --git a/sysdeps/nptl/pthread.h b/sysdeps/nptl/pthread.h
40index bbb36540..8d6d24ff 100644
41--- a/sysdeps/nptl/pthread.h
42+++ b/sysdeps/nptl/pthread.h
43@@ -152,7 +152,7 @@ enum
44
45
46 /* Conditional variable handling. */
47-#define PTHREAD_COND_INITIALIZER { { {0}, {0}, {0, 0}, 0, 0, {0, 0} } }
48+#define PTHREAD_COND_INITIALIZER { { {0}, {0}, {0, 0}, 0, 0, {0, 0}, 0, 0 } }
49
50
51 /* Cleanup buffers */
52--
532.49.0
54
diff --git a/meta/recipes-core/glibc/glibc_2.35.bb b/meta/recipes-core/glibc/glibc_2.35.bb
index 26e8d8c408..1b5830699f 100644
--- a/meta/recipes-core/glibc/glibc_2.35.bb
+++ b/meta/recipes-core/glibc/glibc_2.35.bb
@@ -71,6 +71,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
71 file://0026-PR25847-7.patch \ 71 file://0026-PR25847-7.patch \
72 file://0026-PR25847-8.patch \ 72 file://0026-PR25847-8.patch \
73 file://0026-PR25847-9.patch \ 73 file://0026-PR25847-9.patch \
74 file://0026-PR25847-10.patch \
74 \ 75 \
75 file://0001-Revert-Linux-Implement-a-useful-version-of-_startup_.patch \ 76 file://0001-Revert-Linux-Implement-a-useful-version-of-_startup_.patch \
76 file://0002-get_nscd_addresses-Fix-subscript-typos-BZ-29605.patch \ 77 file://0002-get_nscd_addresses-Fix-subscript-typos-BZ-29605.patch \