All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Upgrades on 02-10-2026
@ 2026-10-02  7:15 Jaipaul Cheernam
  2026-10-02  7:15 ` [PATCH 1/4] libjitterentropy: upgrade 3.6.3 -> 3.7.0 Jaipaul Cheernam
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Jaipaul Cheernam @ 2026-10-02  7:15 UTC (permalink / raw)
  To: openembedded-core

Jaipaul Cheernam (4):
  libjitterentropy: upgrade 3.6.3 -> 3.7.0
  libjitterentropy: Fix HOMEPAGE
  shadow: upgrade 4.20.2 -> 4.20.3
  glib-networking: upgrade 2.80.1 -> 2.90.0

 ...-check-return-value-when-writing-to-.patch |  82 ----------
 ...heck-return-value-of-g_tls_bio_alloc.patch |  42 -----
 ...enssl-check-return-values-of-BIO_new.patch | 146 ------------------
 ...of-bounds-read-in-accepted-cas-prope.patch |  48 ------
 ...ng_2.80.1.bb => glib-networking_2.90.0.bb} |  10 +-
 .../shadow/files/notallylog.patch             |   2 +-
 .../{shadow_4.20.2.bb => shadow_4.20.3.bb}    |   2 +-
 ...opy_3.6.3.bb => libjitterentropy_3.7.0.bb} |   6 +-
 8 files changed, 9 insertions(+), 329 deletions(-)
 delete mode 100644 meta/recipes-core/glib-networking/glib-networking/0001-openssl-properly-check-return-value-when-writing-to-.patch
 delete mode 100644 meta/recipes-core/glib-networking/glib-networking/0002-openssl-check-return-value-of-g_tls_bio_alloc.patch
 delete mode 100644 meta/recipes-core/glib-networking/glib-networking/0003-openssl-check-return-values-of-BIO_new.patch
 delete mode 100644 meta/recipes-core/glib-networking/glib-networking/0004-openssl-fix-out-of-bounds-read-in-accepted-cas-prope.patch
 rename meta/recipes-core/glib-networking/{glib-networking_2.80.1.bb => glib-networking_2.90.0.bb} (81%)
 rename meta/recipes-extended/shadow/{shadow_4.20.2.bb => shadow_4.20.3.bb} (98%)
 rename meta/recipes-support/libjitterentropy/{libjitterentropy_3.6.3.bb => libjitterentropy_3.7.0.bb} (85%)



^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 1/4] libjitterentropy: upgrade 3.6.3 -> 3.7.0
  2026-10-02  7:15 [PATCH 0/4] Upgrades on 02-10-2026 Jaipaul Cheernam
@ 2026-10-02  7:15 ` Jaipaul Cheernam
  2026-10-02  8:52   ` [OE-core] " Mathieu Dubois-Briand
  2026-11-17  2:46   ` [PATCH v2] " Prasanth R
  2026-10-02  7:15 ` [PATCH 2/4] libjitterentropy: Fix HOMEPAGE Jaipaul Cheernam
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 16+ messages in thread
From: Jaipaul Cheernam @ 2026-10-02  7:15 UTC (permalink / raw)
  To: openembedded-core

Source: CHANGES.md

3.7.0
 * Add secure memory implementation for Linux and {Net,Open,Free}BSD, MacOS and Windows
 * Update supported CMake version to 3.10
 * doc: use Doxygen-style comments
 * NTG.1 compliance: Modify startup such that the memory access and SHA-3 loop are treated as independent noise sources which are sampled to collect at least 240 bits each before first block of random numbers is released
 * Remove all code when JENT_CONF_DISABLE_LOOP_SHUFFLE is unset. This code is already discouraged for a long time. Now it is taken out for good.
 * If cache size cannot be detected from base system (e.g. virtualization), use the requested memory size.
 * Change the stuck test to always calculate the absolute values of the 2nd and 3rd discrete derivation of time.
 * Replace SHA3-256 output generation with XDRBG-256
 * Prune the jitterentropy.h header file of internal definitions and delcarations which are moved to src/jitterentropy-internal.h. With that, jitterentropy.h only contains the API. This modification does not alter the Jitter RNG behavior at all.
 * Update secure storage memory implementation for libgcrypt and OpenSSL
 * Add API jent_status

License-Update: copyright years updated.

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 .../{libjitterentropy_3.6.3.bb => libjitterentropy_3.7.0.bb}  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-support/libjitterentropy/{libjitterentropy_3.6.3.bb => libjitterentropy_3.7.0.bb} (89%)

diff --git a/meta/recipes-support/libjitterentropy/libjitterentropy_3.6.3.bb b/meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
similarity index 89%
rename from meta/recipes-support/libjitterentropy/libjitterentropy_3.6.3.bb
rename to meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
index 776cfe9785f..ed3d850e81a 100644
--- a/meta/recipes-support/libjitterentropy/libjitterentropy_3.6.3.bb
+++ b/meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
@@ -5,12 +5,12 @@ stamp. It is a small-scale, yet fast entropy source that is viable in almost \
 all environments and on a lot of CPU architectures."
 HOMEPAGE = "http://www.chronox.de/jent.html"
 LICENSE = "BSD-3-Clause OR GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=e01027c4ad1fe5a4768f8488c945d491 \
+LIC_FILES_CHKSUM = "file://LICENSE;md5=fcaa2e2fa77c4ea22e45bf79e9a41093 \
                     file://LICENSE.gplv2;md5=eb723b61539feef013de476e68b5c50a \
                     file://LICENSE.bsd;md5=66a5cedaf62c4b2637025f049f9b826f \
                     "
 SRC_URI = "git://github.com/smuellerDD/jitterentropy-library.git;branch=master;protocol=https;tag=v${PV}"
-SRCREV = "c90ff465dcdb6a6949542c72a26a8ab496daa8cb"
+SRCREV = "e783cf1c450bce4d72f95c9f9c84546a6094976a"
 
 do_configure[noexec] = "1"
 


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 2/4] libjitterentropy: Fix HOMEPAGE
  2026-10-02  7:15 [PATCH 0/4] Upgrades on 02-10-2026 Jaipaul Cheernam
  2026-10-02  7:15 ` [PATCH 1/4] libjitterentropy: upgrade 3.6.3 -> 3.7.0 Jaipaul Cheernam
@ 2026-10-02  7:15 ` Jaipaul Cheernam
  2026-10-02  7:15 ` [PATCH 3/4] shadow: upgrade 4.20.2 -> 4.20.3 Jaipaul Cheernam
  2026-10-02  7:15 ` [PATCH 4/4] glib-networking: upgrade 2.80.1 -> 2.90.0 Jaipaul Cheernam
  3 siblings, 0 replies; 16+ messages in thread
From: Jaipaul Cheernam @ 2026-10-02  7:15 UTC (permalink / raw)
  To: openembedded-core

 - Fix URL for HOMEPAGE

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb b/meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
index ed3d850e81a..fc74b1a3611 100644
--- a/meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
+++ b/meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "The Jitter RNG provides a noise source using the CPU execution ti
 It does not depend on any system resource other than a high-resolution time \
 stamp. It is a small-scale, yet fast entropy source that is viable in almost \
 all environments and on a lot of CPU architectures."
-HOMEPAGE = "http://www.chronox.de/jent.html"
+HOMEPAGE = "https://www.chronox.de/jent"
 LICENSE = "BSD-3-Clause OR GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=fcaa2e2fa77c4ea22e45bf79e9a41093 \
                     file://LICENSE.gplv2;md5=eb723b61539feef013de476e68b5c50a \


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 3/4] shadow: upgrade 4.20.2 -> 4.20.3
  2026-10-02  7:15 [PATCH 0/4] Upgrades on 02-10-2026 Jaipaul Cheernam
  2026-10-02  7:15 ` [PATCH 1/4] libjitterentropy: upgrade 3.6.3 -> 3.7.0 Jaipaul Cheernam
  2026-10-02  7:15 ` [PATCH 2/4] libjitterentropy: Fix HOMEPAGE Jaipaul Cheernam
@ 2026-10-02  7:15 ` Jaipaul Cheernam
  2026-10-02  8:25   ` [OE-core] " Mathieu Dubois-Briand
  2026-10-02 11:57   ` [PATCH v2] " Jaipaul Cheernam
  2026-10-02  7:15 ` [PATCH 4/4] glib-networking: upgrade 2.80.1 -> 2.90.0 Jaipaul Cheernam
  3 siblings, 2 replies; 16+ messages in thread
From: Jaipaul Cheernam @ 2026-10-02  7:15 UTC (permalink / raw)
  To: openembedded-core

ChangeLog:
https://github.com/shadow-maint/shadow/releases/tag/4.20.3

Compare log: https://github.com/shadow-maint/shadow/compare/4.20.2...4.20.3

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 meta/recipes-extended/shadow/files/notallylog.patch             | 2 +-
 .../shadow/{shadow_4.20.2.bb => shadow_4.20.3.bb}               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-extended/shadow/{shadow_4.20.2.bb => shadow_4.20.3.bb} (98%)

diff --git a/meta/recipes-extended/shadow/files/notallylog.patch b/meta/recipes-extended/shadow/files/notallylog.patch
index 6d6957bbf83..b3b30026ce2 100644
--- a/meta/recipes-extended/shadow/files/notallylog.patch
+++ b/meta/recipes-extended/shadow/files/notallylog.patch
@@ -1,4 +1,4 @@
-From 20dc49519cc177d4c829f4dd5cc277ada24376d7 Mon Sep 17 00:00:00 2001
+From a7d45933186754a1190509b46c51c56d48089004 Mon Sep 17 00:00:00 2001
 From: Richard Purdie <richard.purdie@linuxfoundation.org>
 Date: Tue, 21 Apr 2026 11:30:52 +0100
 Subject: [PATCH] shadow: Disable tallylog execution
diff --git a/meta/recipes-extended/shadow/shadow_4.20.2.bb b/meta/recipes-extended/shadow/shadow_4.20.3.bb
similarity index 98%
rename from meta/recipes-extended/shadow/shadow_4.20.2.bb
rename to meta/recipes-extended/shadow/shadow_4.20.3.bb
index cf7d253a7f1..f11ae61a85e 100644
--- a/meta/recipes-extended/shadow/shadow_4.20.2.bb
+++ b/meta/recipes-extended/shadow/shadow_4.20.3.bb
@@ -23,7 +23,7 @@ SRC_URI:append:class-target = " \
 SRC_URI:append:class-native = " \
            file://notallylog.patch \
            "
-SRC_URI[sha256sum] = "e5016b40541ee6fa02ea3d409547cef6e7eea9b31f0e3482e4874f87c1d0c7c5"
+SRC_URI[sha256sum] = "39006c9daf9228ddda9156605201fc9f59c43f9fdecc83c78bbe0e72d9ffd58c"
 UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$"
 
 # Additional Policy files for PAM


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 4/4] glib-networking: upgrade 2.80.1 -> 2.90.0
  2026-10-02  7:15 [PATCH 0/4] Upgrades on 02-10-2026 Jaipaul Cheernam
                   ` (2 preceding siblings ...)
  2026-10-02  7:15 ` [PATCH 3/4] shadow: upgrade 4.20.2 -> 4.20.3 Jaipaul Cheernam
@ 2026-10-02  7:15 ` Jaipaul Cheernam
  3 siblings, 0 replies; 16+ messages in thread
From: Jaipaul Cheernam @ 2026-10-02  7:15 UTC (permalink / raw)
  To: openembedded-core

NEWS: https://gitlab.gnome.org/GNOME/glib-networking/-/blob/2.90.0/NEWS

2.90.0 - September 10, 2026
===========================

* Bugs fixed:
  - !286 meson: Remove version checks that are always true (correctmost)

2.90.alpha - June 25, 2026
==========================

* Bugs fixed:
  - #222 test fails with openssl 3.4.x (Michael Catanzaro)
  - #226 (CVE-2025-60018) (#YWH-PGM9867-106) Out of Bond Reads on glib-
    networking through tls/openssl/gtlscertificate-openssl.c via
    "g_tls_certificate_openssl_get_property()" due to Incorrect BIO_write Return
    Value Validation in Certificate PEM Export (Michael Catanzaro)
  - #228 (CVE-2026-2574) (#YWH-PGM9867-150) OOB Read on glib-networking through
    tls/openssl/gtlsclientconnection-openssl.c via
    g_tls_client_connection_openssl_get_property() (Michael Catanzaro)
  - #231 (CVE-2026-10028) (#YWH-PGM9867-278) Infinite loop in certification path
    building (Michael Catanzaro)
  - !261 meson: Introduce option for enable/disable tests (Leonid Zaburunov)
  - !263 openssl: check return value of g_tls_bio_alloc() and BIO_new() (Michael
    Catanzaro)
  - !265 openssl: delete support for OCSP stapling (Michael Catanzaro)
  - !268 Fix file database and PKCS11 test failures and update CI! (Michael
    Catanzaro)
  - !270 Fix miscellaneous safety issues reported by bug hunters (Michael
    Catanzaro)
  - !271 Delete gtlshttp (Michael Catanzaro)
  - !272 Fix connection test reusing a GError (Michael Catanzaro)
  - !273 openssl: fix error code confusion (Michael Catanzaro)
  - !274 ci: add catch for reporting stack traces (Michael Catanzaro)
  - !277 Require OpenSSL 1.1.1 or newer (Michael Catanzaro)
  - !280 Some fixes found with kiro (Ignacio Casal Quinteiro)
  - !281 Fix various memory leaks (Michael Catanzaro)
  - !283 openssl: refactor error handling code (Michael Catanzaro)
  - !284 openssl: use ERR_clear_error() all over the place (Michael Catanzaro)
  - !285 gnutls: always notify accepted-cas property after handshake (Michael
    Catanzaro)

- Drop the four backported OpenSSL CVE patches (CVE-2025-60018,
CVE-2025-60019, CVE-2026-2574); all are now included upstream in 2.90.0.

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 ...-check-return-value-when-writing-to-.patch |  82 ----------
 ...heck-return-value-of-g_tls_bio_alloc.patch |  42 -----
 ...enssl-check-return-values-of-BIO_new.patch | 146 ------------------
 ...of-bounds-read-in-accepted-cas-prope.patch |  48 ------
 ...ng_2.80.1.bb => glib-networking_2.90.0.bb} |  10 +-
 5 files changed, 4 insertions(+), 324 deletions(-)
 delete mode 100644 meta/recipes-core/glib-networking/glib-networking/0001-openssl-properly-check-return-value-when-writing-to-.patch
 delete mode 100644 meta/recipes-core/glib-networking/glib-networking/0002-openssl-check-return-value-of-g_tls_bio_alloc.patch
 delete mode 100644 meta/recipes-core/glib-networking/glib-networking/0003-openssl-check-return-values-of-BIO_new.patch
 delete mode 100644 meta/recipes-core/glib-networking/glib-networking/0004-openssl-fix-out-of-bounds-read-in-accepted-cas-prope.patch
 rename meta/recipes-core/glib-networking/{glib-networking_2.80.1.bb => glib-networking_2.90.0.bb} (81%)

diff --git a/meta/recipes-core/glib-networking/glib-networking/0001-openssl-properly-check-return-value-when-writing-to-.patch b/meta/recipes-core/glib-networking/glib-networking/0001-openssl-properly-check-return-value-when-writing-to-.patch
deleted file mode 100644
index 72f0c0c61ef..00000000000
--- a/meta/recipes-core/glib-networking/glib-networking/0001-openssl-properly-check-return-value-when-writing-to-.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-From 330f59dcb39386b3d640ce94fcd3f75e1668ad88 Mon Sep 17 00:00:00 2001
-From: Michael Catanzaro <mcatanzaro@redhat.com>
-Date: Mon, 4 Aug 2025 15:10:21 -0500
-Subject: [PATCH 1/3] openssl: properly check return value when writing to BIO
- objects
-
-In particular, we will read out of bounds, and then write the invalid
-memory, if BIO_write() fails when getting the PROP_CERTIFICATE_PEM
-property. Here we attempt to check the return value, but the check is
-not correct.
-
-This also fixes a leak of the BIO in the same place.
-
-Also add error checking to PROP_SUBJECT_NAME and PROP_ISSUER_NAME, for
-good measure.
-
-Fixes #226
-
-CVE: CVE-2025-60018
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <ross.burton@arm.com>
----
- tls/openssl/gtlscertificate-openssl.c | 25 +++++++++++++++----------
- 1 file changed, 15 insertions(+), 10 deletions(-)
-
-diff --git a/tls/openssl/gtlscertificate-openssl.c b/tls/openssl/gtlscertificate-openssl.c
-index 648f3e8..b536559 100644
---- a/tls/openssl/gtlscertificate-openssl.c
-+++ b/tls/openssl/gtlscertificate-openssl.c
-@@ -362,15 +362,12 @@ g_tls_certificate_openssl_get_property (GObject    *object,
-     case PROP_CERTIFICATE_PEM:
-       bio = BIO_new (BIO_s_mem ());
- 
--      if (!PEM_write_bio_X509 (bio, openssl->cert) || !BIO_write (bio, "\0", 1))
--        certificate_pem = NULL;
--      else
-+      if (PEM_write_bio_X509 (bio, openssl->cert) == 1 && BIO_write (bio, "\0", 1) == 1)
-         {
-           BIO_get_mem_data (bio, &certificate_pem);
-           g_value_set_string (value, certificate_pem);
--
--          BIO_free_all (bio);
-         }
-+      BIO_free_all (bio);
-       break;
- 
-     case PROP_PRIVATE_KEY:
-@@ -411,8 +408,12 @@ g_tls_certificate_openssl_get_property (GObject    *object,
-     case PROP_SUBJECT_NAME:
-       bio = BIO_new (BIO_s_mem ());
-       name = X509_get_subject_name (openssl->cert);
--      X509_NAME_print_ex (bio, name, 0, XN_FLAG_SEP_COMMA_PLUS);
--      BIO_write (bio, "\0", 1);
-+      if (X509_NAME_print_ex (bio, name, 0, XN_FLAG_SEP_COMMA_PLUS) < 0 ||
-+          BIO_write (bio, "\0", 1) != 1)
-+        {
-+          BIO_free_all (bio);
-+          break;
-+        }
-       BIO_get_mem_data (bio, (char **)&name_string);
-       g_value_set_string (value, name_string);
-       BIO_free_all (bio);
-@@ -421,9 +422,13 @@ g_tls_certificate_openssl_get_property (GObject    *object,
-     case PROP_ISSUER_NAME:
-       bio = BIO_new (BIO_s_mem ());
-       name = X509_get_issuer_name (openssl->cert);
--      X509_NAME_print_ex (bio, name, 0, XN_FLAG_SEP_COMMA_PLUS);
--      BIO_write (bio, "\0", 1);
--      BIO_get_mem_data (bio, &name_string);
-+      if (X509_NAME_print_ex (bio, name, 0, XN_FLAG_SEP_COMMA_PLUS) < 0 ||
-+          BIO_write (bio, "\0", 1) != 1)
-+        {
-+          BIO_free_all (bio);
-+          break;
-+        }
-+      BIO_get_mem_data (bio, (char **)&name_string);
-       g_value_set_string (value, name_string);
-       BIO_free_all (bio);
-       break;
--- 
-2.43.0
-
diff --git a/meta/recipes-core/glib-networking/glib-networking/0002-openssl-check-return-value-of-g_tls_bio_alloc.patch b/meta/recipes-core/glib-networking/glib-networking/0002-openssl-check-return-value-of-g_tls_bio_alloc.patch
deleted file mode 100644
index 9c3d19f373d..00000000000
--- a/meta/recipes-core/glib-networking/glib-networking/0002-openssl-check-return-value-of-g_tls_bio_alloc.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From b5a3a8b28b7616403d5454f5f1816c933c34cdac Mon Sep 17 00:00:00 2001
-From: Michael Catanzaro <mcatanzaro@redhat.com>
-Date: Thu, 21 Aug 2025 16:58:54 -0500
-Subject: [PATCH 2/3] openssl: check return value of g_tls_bio_alloc()
-
-This function may fail, in which case the parameter remains
-uninitialized. We'd better not dereference it in that case.
-
-CVE: CVE-2025-60019
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <ross.burton@arm.com>
----
- tls/openssl/gtlsbio.c | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/tls/openssl/gtlsbio.c b/tls/openssl/gtlsbio.c
-index 0f603fe..1e54943 100644
---- a/tls/openssl/gtlsbio.c
-+++ b/tls/openssl/gtlsbio.c
-@@ -370,7 +370,8 @@ g_tls_bio_new_from_iostream (GIOStream *io_stream)
-   GTlsBio *gbio;
- 
-   ret = g_tls_bio_alloc (&gbio);
--  gbio->io_stream = g_object_ref (io_stream);
-+  if (ret)
-+    gbio->io_stream = g_object_ref (io_stream);
- 
-   return ret;
- }
-@@ -382,7 +383,8 @@ g_tls_bio_new_from_datagram_based (GDatagramBased *socket)
-   GTlsBio *gbio;
- 
-   ret = g_tls_bio_alloc (&gbio);
--  gbio->socket = g_object_ref (socket);
-+  if (ret)
-+    gbio->socket = g_object_ref (socket);
- 
-   return ret;
- }
--- 
-2.43.0
-
diff --git a/meta/recipes-core/glib-networking/glib-networking/0003-openssl-check-return-values-of-BIO_new.patch b/meta/recipes-core/glib-networking/glib-networking/0003-openssl-check-return-values-of-BIO_new.patch
deleted file mode 100644
index 1e925da980c..00000000000
--- a/meta/recipes-core/glib-networking/glib-networking/0003-openssl-check-return-values-of-BIO_new.patch
+++ /dev/null
@@ -1,146 +0,0 @@
-From 9c22e08b41255543bc15017123ed6c64b97b9b7c Mon Sep 17 00:00:00 2001
-From: Michael Catanzaro <mcatanzaro@redhat.com>
-Date: Thu, 21 Aug 2025 17:21:01 -0500
-Subject: [PATCH 3/3] openssl: check return values of BIO_new()
-
-We probably need to check even more return values of even more OpenSSL
-functions, but these ones allocate memory and that's particularly
-important to get right.
-
-CVE: CVE-2025-60019
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <ross.burton@arm.com>
----
- tls/openssl/gtlscertificate-openssl.c | 42 ++++++++++++++++++++-------
- 1 file changed, 32 insertions(+), 10 deletions(-)
-
-diff --git a/tls/openssl/gtlscertificate-openssl.c b/tls/openssl/gtlscertificate-openssl.c
-index b536559..4fa5286 100644
---- a/tls/openssl/gtlscertificate-openssl.c
-+++ b/tls/openssl/gtlscertificate-openssl.c
-@@ -166,6 +166,9 @@ export_privkey_to_der (GTlsCertificateOpenssl  *openssl,
-     goto err;
- 
-   bio = BIO_new (BIO_s_mem ());
-+  if (!bio)
-+    goto err;
-+
-   if (i2d_PKCS8_PRIV_KEY_INFO_bio (bio, pkcs8) == 0)
-     goto err;
- 
-@@ -199,6 +202,9 @@ export_privkey_to_pem (GTlsCertificateOpenssl *openssl)
-     return NULL;
- 
-   bio = BIO_new (BIO_s_mem ());
-+  if (!bio)
-+    goto out;
-+
-   ret = PEM_write_bio_PKCS8PrivateKey (bio, openssl->key, NULL, NULL, 0, NULL, NULL);
-   if (ret == 0)
-     goto out;
-@@ -211,7 +217,7 @@ export_privkey_to_pem (GTlsCertificateOpenssl *openssl)
-   result = g_strdup (data);
- 
- out:
--  BIO_free_all (bio);
-+  g_clear_pointer (&bio, BIO_free_all);
-   return result;
- }
- 
-@@ -232,6 +238,9 @@ maybe_import_pkcs12 (GTlsCertificateOpenssl *openssl)
-     return;
- 
-   bio = BIO_new (BIO_s_mem ());
-+  if (!bio)
-+    goto import_failed;
-+
-   status = BIO_write (bio, openssl->pkcs12_data->data, openssl->pkcs12_data->len);
-   if (status <= 0)
-     goto import_failed;
-@@ -323,7 +332,7 @@ g_tls_certificate_openssl_get_property (GObject    *object,
-   guint8 *data;
-   BIO *bio;
-   GByteArray *byte_array;
--  char *certificate_pem;
-+  const char *certificate_pem;
-   long size;
- 
-   const ASN1_TIME *time_asn1;
-@@ -362,12 +371,12 @@ g_tls_certificate_openssl_get_property (GObject    *object,
-     case PROP_CERTIFICATE_PEM:
-       bio = BIO_new (BIO_s_mem ());
- 
--      if (PEM_write_bio_X509 (bio, openssl->cert) == 1 && BIO_write (bio, "\0", 1) == 1)
-+      if (bio && PEM_write_bio_X509 (bio, openssl->cert) == 1 && BIO_write (bio, "\0", 1) == 1)
-         {
-           BIO_get_mem_data (bio, &certificate_pem);
-           g_value_set_string (value, certificate_pem);
-         }
--      BIO_free_all (bio);
-+      g_clear_pointer (&bio, BIO_free_all);
-       break;
- 
-     case PROP_PRIVATE_KEY:
-@@ -407,6 +416,8 @@ g_tls_certificate_openssl_get_property (GObject    *object,
- 
-     case PROP_SUBJECT_NAME:
-       bio = BIO_new (BIO_s_mem ());
-+      if (!bio)
-+        break;
-       name = X509_get_subject_name (openssl->cert);
-       if (X509_NAME_print_ex (bio, name, 0, XN_FLAG_SEP_COMMA_PLUS) < 0 ||
-           BIO_write (bio, "\0", 1) != 1)
-@@ -421,6 +432,8 @@ g_tls_certificate_openssl_get_property (GObject    *object,
- 
-     case PROP_ISSUER_NAME:
-       bio = BIO_new (BIO_s_mem ());
-+      if (!bio)
-+        break;
-       name = X509_get_issuer_name (openssl->cert);
-       if (X509_NAME_print_ex (bio, name, 0, XN_FLAG_SEP_COMMA_PLUS) < 0 ||
-           BIO_write (bio, "\0", 1) != 1)
-@@ -533,8 +546,11 @@ g_tls_certificate_openssl_set_property (GObject      *object,
-         break;
-       CRITICAL_IF_CERTIFICATE_INITIALIZED ("certificate-pem");
-       bio = BIO_new_mem_buf ((gpointer)string, -1);
--      openssl->cert = PEM_read_bio_X509 (bio, NULL, NULL, NULL);
--      BIO_free (bio);
-+      if (bio)
-+        {
-+          openssl->cert = PEM_read_bio_X509 (bio, NULL, NULL, NULL);
-+          BIO_free (bio);
-+        }
-       if (openssl->cert)
-         openssl->have_cert = TRUE;
-       else if (!openssl->construct_error)
-@@ -554,8 +570,11 @@ g_tls_certificate_openssl_set_property (GObject      *object,
-       CRITICAL_IF_KEY_INITIALIZED ("private-key");
- 
-       bio = BIO_new_mem_buf (bytes->data, bytes->len);
--      openssl->key = d2i_PrivateKey_bio (bio, NULL);
--      BIO_free (bio);
-+      if (bio)
-+        {
-+          openssl->key = d2i_PrivateKey_bio (bio, NULL);
-+          BIO_free (bio);
-+        }
-       if (openssl->key)
-         openssl->have_key = TRUE;
-       else if (!openssl->construct_error)
-@@ -575,8 +594,11 @@ g_tls_certificate_openssl_set_property (GObject      *object,
-       CRITICAL_IF_KEY_INITIALIZED ("private-key-pem");
- 
-       bio = BIO_new_mem_buf ((gpointer)string, -1);
--      openssl->key = PEM_read_bio_PrivateKey (bio, NULL, NULL, NULL);
--      BIO_free (bio);
-+      if (bio)
-+        {
-+          openssl->key = PEM_read_bio_PrivateKey (bio, NULL, NULL, NULL);
-+          BIO_free (bio);
-+        }
-       if (openssl->key)
-         openssl->have_key = TRUE;
-       else if (!openssl->construct_error)
--- 
-2.43.0
-
diff --git a/meta/recipes-core/glib-networking/glib-networking/0004-openssl-fix-out-of-bounds-read-in-accepted-cas-prope.patch b/meta/recipes-core/glib-networking/glib-networking/0004-openssl-fix-out-of-bounds-read-in-accepted-cas-prope.patch
deleted file mode 100644
index d3673656ad5..00000000000
--- a/meta/recipes-core/glib-networking/glib-networking/0004-openssl-fix-out-of-bounds-read-in-accepted-cas-prope.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From be2173eb9b769255df9474a9128e642b60894f10 Mon Sep 17 00:00:00 2001
-From: Michael Catanzaro <mcatanzaro@gnome.org>
-Date: Thu, 12 Mar 2026 12:47:00 -0500
-Subject: [PATCH] openssl: fix out of bounds read in accepted-cas property
- getter
-
-The d2i and i2d functions are quite dangerous because they advance the
-provided pointer, so we have to pass a temporary pointer if we're later
-going to do anything with the original pointer.
-
-I've audited the codebase and found this is our only such mistake.
-
-Fixes #228 (CVE-2026-2574)
-
-Part-of: <https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/269>
-
-
-(cherry picked from commit c3c84b269165f2a312d47fa15c5cbc7f8ead7631)
-
-Co-authored-by: Michael Catanzaro <mcatanzaro@gnome.org>
-
-CVE: CVE-2026-2574
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <ross.burton@arm.com>
----
- tls/openssl/gtlsclientconnection-openssl.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/tls/openssl/gtlsclientconnection-openssl.c b/tls/openssl/gtlsclientconnection-openssl.c
-index e98fb0b..e2ff0d4 100644
---- a/tls/openssl/gtlsclientconnection-openssl.c
-+++ b/tls/openssl/gtlsclientconnection-openssl.c
-@@ -141,9 +141,11 @@ g_tls_client_connection_openssl_get_property (GObject    *object,
-               if (size > 0)
-                 {
-                   unsigned char *ca;
-+                  unsigned char *tmp;
- 
-                   ca = g_malloc (size);
--                  size = i2d_X509_NAME (sk_X509_NAME_value (openssl->ca_list, i), &ca);
-+                  tmp = ca;
-+                  size = i2d_X509_NAME (sk_X509_NAME_value (openssl->ca_list, i), &tmp);
-                   if (size > 0)
-                     accepted_cas = g_list_prepend (accepted_cas, g_byte_array_new_take (
-                                                    ca, size));
--- 
-2.43.0
-
diff --git a/meta/recipes-core/glib-networking/glib-networking_2.80.1.bb b/meta/recipes-core/glib-networking/glib-networking_2.90.0.bb
similarity index 81%
rename from meta/recipes-core/glib-networking/glib-networking_2.80.1.bb
rename to meta/recipes-core/glib-networking/glib-networking_2.90.0.bb
index aa13900da1e..1850712690c 100644
--- a/meta/recipes-core/glib-networking/glib-networking_2.80.1.bb
+++ b/meta/recipes-core/glib-networking/glib-networking_2.90.0.bb
@@ -13,7 +13,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
 SECTION = "libs"
 DEPENDS = "glib-2.0-native glib-2.0"
 
-SRC_URI[archive.sha256sum] = "b80e2874157cd55071f1b6710fa0b911d5ac5de106a9ee2a4c9c7bee61782f8e"
+SRC_URI[archive.sha256sum] = "83a75e3d9c36b66ee86d3281c2fc997816101968a5126ba322b2acb9a74dd8c0"
 
 # Upstream note that for the openssl backend, half the tests where this backend don't return
 # the expected error code or don't work as expected so default to gnutls
@@ -28,11 +28,9 @@ PACKAGECONFIG[gnomeproxy] = "-Dgnome_proxy=enabled,-Dgnome_proxy=disabled,gsetti
 
 inherit gnomebase gettext upstream-version-is-even gio-module-cache ptest-gnome
 
-SRC_URI += "file://0001-openssl-properly-check-return-value-when-writing-to-.patch \
-            file://0002-openssl-check-return-value-of-g_tls_bio_alloc.patch \
-            file://0003-openssl-check-return-values-of-BIO_new.patch \
-            file://0004-openssl-fix-out-of-bounds-read-in-accepted-cas-prope.patch \
-            file://run-ptest"
+SRC_URI += "\
+            file://run-ptest \
+            "
 
 FILES:${PN} += "\
                 ${libdir}/gio/modules/libgio*.so \


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [OE-core] [PATCH 3/4] shadow: upgrade 4.20.2 -> 4.20.3
  2026-10-02  7:15 ` [PATCH 3/4] shadow: upgrade 4.20.2 -> 4.20.3 Jaipaul Cheernam
@ 2026-10-02  8:25   ` Mathieu Dubois-Briand
  2026-10-02 10:49     ` Jaipaul Cheernam
  2026-10-02 11:57   ` [PATCH v2] " Jaipaul Cheernam
  1 sibling, 1 reply; 16+ messages in thread
From: Mathieu Dubois-Briand @ 2026-10-02  8:25 UTC (permalink / raw)
  To: Jaipaul Cheernam, openembedded-core

On Fri Oct 2, 2026 at 9:15 AM CEST, Jaipaul Cheernam wrote:
> ChangeLog:
> https://github.com/shadow-maint/shadow/releases/tag/4.20.3
>
> Compare log: https://github.com/shadow-maint/shadow/compare/4.20.2...4.20.3
>
> Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
> ---

Hi Jaipaul,

Does it build on your side? Here I get this error:

| ../../sources/shadow-4.20.3/lib/commonio.c: In function ‘dec_lock_count’:
| ../../sources/shadow-4.20.3/lib/commonio.c:425:51: error: passing argument 1 of ‘nscd_flush_cache’ makes integer from pointer without a cast [-Wint-conversion]
|   425 |                                 nscd_flush_cache ("passwd");
|       |                                                   ^~~~~~~~
|       |                                                   |
|       |                                                   char *

https://autobuilder.yoctoproject.org/valkyrie/#/builders/19/builds/4753

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [OE-core] [PATCH 1/4] libjitterentropy: upgrade 3.6.3 -> 3.7.0
  2026-10-02  7:15 ` [PATCH 1/4] libjitterentropy: upgrade 3.6.3 -> 3.7.0 Jaipaul Cheernam
@ 2026-10-02  8:52   ` Mathieu Dubois-Briand
  2026-10-02  9:35     ` Alexander Kanavin
  2026-11-17  2:46   ` [PATCH v2] " Prasanth R
  1 sibling, 1 reply; 16+ messages in thread
From: Mathieu Dubois-Briand @ 2026-10-02  8:52 UTC (permalink / raw)
  To: Jaipaul Cheernam, openembedded-core

On Fri Oct 2, 2026 at 9:15 AM CEST, Jaipaul Cheernam wrote:
> Source: CHANGES.md
>
> 3.7.0
>  * Add secure memory implementation for Linux and {Net,Open,Free}BSD, MacOS and Windows
>  * Update supported CMake version to 3.10
>  * doc: use Doxygen-style comments
>  * NTG.1 compliance: Modify startup such that the memory access and SHA-3 loop are treated as independent noise sources which are sampled to collect at least 240 bits each before first block of random numbers is released
>  * Remove all code when JENT_CONF_DISABLE_LOOP_SHUFFLE is unset. This code is already discouraged for a long time. Now it is taken out for good.
>  * If cache size cannot be detected from base system (e.g. virtualization), use the requested memory size.
>  * Change the stuck test to always calculate the absolute values of the 2nd and 3rd discrete derivation of time.
>  * Replace SHA3-256 output generation with XDRBG-256
>  * Prune the jitterentropy.h header file of internal definitions and delcarations which are moved to src/jitterentropy-internal.h. With that, jitterentropy.h only contains the API. This modification does not alter the Jitter RNG behavior at all.
>  * Update secure storage memory implementation for libgcrypt and OpenSSL
>  * Add API jent_status
>
> License-Update: copyright years updated.
>
> Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
> ---

Hi Jaipaul,

Thanks for the upgrade.

It looks like this is breaking rng-tools:

ERROR: lib32-rng-tools-6.17-r0 do_compile: oe_runmake failed
...
| ../sources/rng-tools-6.17/rngd_jitter.c: In function 'rngd_notime_start':
| ../sources/rng-tools-6.17/rngd_jitter.c:56:45: error: invalid use of undefined type 'struct jent_notime_ctx'
|    56 |         ret = -pthread_attr_init(&thread_ctx->notime_pthread_attr);

https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/4614
https://autobuilder.yoctoproject.org/valkyrie/#/builders/3/builds/4816

Can you have a look at the issue?

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [OE-core] [PATCH 1/4] libjitterentropy: upgrade 3.6.3 -> 3.7.0
  2026-10-02  8:52   ` [OE-core] " Mathieu Dubois-Briand
@ 2026-10-02  9:35     ` Alexander Kanavin
  2026-10-05  6:51       ` Jaipaul Cheernam
  0 siblings, 1 reply; 16+ messages in thread
From: Alexander Kanavin @ 2026-10-02  9:35 UTC (permalink / raw)
  To: mathieu.dubois-briand; +Cc: Jaipaul Cheernam, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 2344 bytes --]

On Fri, 2 Oct 2026 at 10:52, Mathieu Dubois-Briand via
lists.openembedded.org <mathieu.dubois-briand=
bootlin.com@lists.openembedded.org> wrote:

> On Fri Oct 2, 2026 at 9:15 AM CEST, Jaipaul Cheernam wrote:
> > Source: CHANGES.md
> >
> > 3.7.0
> >  * Add secure memory implementation for Linux and {Net,Open,Free}BSD,
> MacOS and Windows
> >  * Update supported CMake version to 3.10
> >  * doc: use Doxygen-style comments
> >  * NTG.1 compliance: Modify startup such that the memory access and
> SHA-3 loop are treated as independent noise sources which are sampled to
> collect at least 240 bits each before first block of random numbers is
> released
> >  * Remove all code when JENT_CONF_DISABLE_LOOP_SHUFFLE is unset. This
> code is already discouraged for a long time. Now it is taken out for good.
> >  * If cache size cannot be detected from base system (e.g.
> virtualization), use the requested memory size.
> >  * Change the stuck test to always calculate the absolute values of the
> 2nd and 3rd discrete derivation of time.
> >  * Replace SHA3-256 output generation with XDRBG-256
> >  * Prune the jitterentropy.h header file of internal definitions and
> delcarations which are moved to src/jitterentropy-internal.h. With that,
> jitterentropy.h only contains the API. This modification does not alter the
> Jitter RNG behavior at all.
> >  * Update secure storage memory implementation for libgcrypt and OpenSSL
> >  * Add API jent_status
> >
> > License-Update: copyright years updated.
> >
> > Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
> > ---
>
> Hi Jaipaul,
>
> Thanks for the upgrade.
>
> It looks like this is breaking rng-tools:
>
> ERROR: lib32-rng-tools-6.17-r0 do_compile: oe_runmake failed
> ...
> | ../sources/rng-tools-6.17/rngd_jitter.c: In function 'rngd_notime_start':
> | ../sources/rng-tools-6.17/rngd_jitter.c:56:45: error: invalid use of
> undefined type 'struct jent_notime_ctx'
> |    56 |         ret =
> -pthread_attr_init(&thread_ctx->notime_pthread_attr);
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/4614
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/3/builds/4816
>
> Can you have a look at the issue?
>

I think
https://github.com/smuellerDD/jitterentropy-library/commit/a038d0c372f83aba10f3850c5b122dc5ff8cdc8c
needs to be backported.

Alex

[-- Attachment #2: Type: text/html, Size: 3296 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [OE-core] [PATCH 3/4] shadow: upgrade 4.20.2 -> 4.20.3
  2026-10-02  8:25   ` [OE-core] " Mathieu Dubois-Briand
@ 2026-10-02 10:49     ` Jaipaul Cheernam
  0 siblings, 0 replies; 16+ messages in thread
From: Jaipaul Cheernam @ 2026-10-02 10:49 UTC (permalink / raw)
  To: Mathieu Dubois-Briand, openembedded-core


On 2026-10-02 10:25, Mathieu Dubois-Briand wrote:
> Does it build on your side? Here I get this error:
>
> | ../../sources/shadow-4.20.3/lib/commonio.c: In function ‘dec_lock_count’:
> | ../../sources/shadow-4.20.3/lib/commonio.c:425:51: error: passing argument 1 of ‘nscd_flush_cache’ makes integer from pointer without a cast [-Wint-conversion]
> |   425 |                                 nscd_flush_cache ("passwd");
> |       |                                                   ^~~~~~~~
> |       |                                                   |
> |       |                                                   char *
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/19/builds/4753


Hi Mathieu,

This is my favorite musl build failure :(

Based on AUH logs, poky-tiny builds against musl 
(arm-poky-linux-musleabi in the log), and the shadow recipe only turns 
on NSCD for glibc (NSCDOPT:libc-glibc = "--with-nscd").

So on musl it builds without NSCD and compiles the broken nscd.h 
fallback stub, which fails on GCC 14.

My local build was glibc, so NSCD was enabled and the broken stub was 
never compiled.


I will send V2 with upstream fix which was merged yesterday .

https://github.com/shadow-maint/shadow/commit/b8d3549a49acfe967f45aebaf06d474c82c46d2 



Regards,

Jaipaul



^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH v2] shadow: upgrade 4.20.2 -> 4.20.3
  2026-10-02  7:15 ` [PATCH 3/4] shadow: upgrade 4.20.2 -> 4.20.3 Jaipaul Cheernam
  2026-10-02  8:25   ` [OE-core] " Mathieu Dubois-Briand
@ 2026-10-02 11:57   ` Jaipaul Cheernam
  1 sibling, 0 replies; 16+ messages in thread
From: Jaipaul Cheernam @ 2026-10-02 11:57 UTC (permalink / raw)
  To: openembedded-core

ChangeLog:
https://github.com/shadow-maint/shadow/releases/tag/4.20.3

Compare log: https://github.com/shadow-maint/shadow/compare/4.20.2...4.20.3

- Backport patch for lib/nscd.h: nscd_flush_cache(): Fix type of parameter

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---

Changes Since V1:
  - Add backport patch for issue seen in AUH

 ...cd_flush_cache-Fix-type-of-parameter.patch | 30 +++++++++++++++++++
 .../shadow/files/notallylog.patch             |  2 +-
 .../{shadow_4.20.2.bb => shadow_4.20.3.bb}    |  3 +-
 3 files changed, 33 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-extended/shadow/files/0001-lib-nscd.h-nscd_flush_cache-Fix-type-of-parameter.patch
 rename meta/recipes-extended/shadow/{shadow_4.20.2.bb => shadow_4.20.3.bb} (97%)

diff --git a/meta/recipes-extended/shadow/files/0001-lib-nscd.h-nscd_flush_cache-Fix-type-of-parameter.patch b/meta/recipes-extended/shadow/files/0001-lib-nscd.h-nscd_flush_cache-Fix-type-of-parameter.patch
new file mode 100644
index 0000000000..e873cdaffd
--- /dev/null
+++ b/meta/recipes-extended/shadow/files/0001-lib-nscd.h-nscd_flush_cache-Fix-type-of-parameter.patch
@@ -0,0 +1,30 @@
+From b8d3549a49acfe967f45aebaf06d474c82c46d22 Mon Sep 17 00:00:00 2001
+From: Alejandro Colomar <alx@kernel.org>
+Date: Wed, 30 Sep 2026 19:12:01 +0200
+Subject: [PATCH] lib/nscd.h: nscd_flush_cache(): Fix type of parameter
+
+Fixes: deef7d84c3e4 (2026-09-09; "lib/nscd.h: nscd_flush_cache(): Define as static inline function")
+Closes: <https://github.com/shadow-maint/shadow/issues/1763>
+Reported-by: <https://github.com/Bonnietwin>
+Tested-by: <https://github.com/Bonnietwin>
+Signed-off-by: Alejandro Colomar <alx@kernel.org>
+
+Upstream-Status: Backport [https://github.com/shadow-maint/shadow/commit/b8d3549a49acfe967f45aebaf06d474c82c46d22]
+Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
+---
+ lib/nscd.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/nscd.h b/lib/nscd.h
+index fda3b1cb..30b56720 100644
+--- a/lib/nscd.h
++++ b/lib/nscd.h
+@@ -8,7 +8,7 @@
+ extern int nscd_flush_cache (const char *service);
+ #else
+ static inline int
+-nscd_flush_cache(MAYBE_UNUSED int _1)
++nscd_flush_cache(MAYBE_UNUSED const char *_1)
+ {
+ 	return 0;
+ }
diff --git a/meta/recipes-extended/shadow/files/notallylog.patch b/meta/recipes-extended/shadow/files/notallylog.patch
index 6d6957bbf8..b3b30026ce 100644
--- a/meta/recipes-extended/shadow/files/notallylog.patch
+++ b/meta/recipes-extended/shadow/files/notallylog.patch
@@ -1,4 +1,4 @@
-From 20dc49519cc177d4c829f4dd5cc277ada24376d7 Mon Sep 17 00:00:00 2001
+From a7d45933186754a1190509b46c51c56d48089004 Mon Sep 17 00:00:00 2001
 From: Richard Purdie <richard.purdie@linuxfoundation.org>
 Date: Tue, 21 Apr 2026 11:30:52 +0100
 Subject: [PATCH] shadow: Disable tallylog execution
diff --git a/meta/recipes-extended/shadow/shadow_4.20.2.bb b/meta/recipes-extended/shadow/shadow_4.20.3.bb
similarity index 97%
rename from meta/recipes-extended/shadow/shadow_4.20.2.bb
rename to meta/recipes-extended/shadow/shadow_4.20.3.bb
index cf7d253a7f..683a284aad 100644
--- a/meta/recipes-extended/shadow/shadow_4.20.2.bb
+++ b/meta/recipes-extended/shadow/shadow_4.20.3.bb
@@ -14,6 +14,7 @@ GITHUB_BASE_URI = "https://github.com/shadow-maint/shadow/releases"
 SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz \
            ${@bb.utils.contains('PACKAGECONFIG', 'pam', '${PAM_SRC_URI}', '', d)} \
            file://useradd \
+           file://0001-lib-nscd.h-nscd_flush_cache-Fix-type-of-parameter.patch \
            "
 
 SRC_URI:append:class-target = " \
@@ -23,7 +24,7 @@ SRC_URI:append:class-target = " \
 SRC_URI:append:class-native = " \
            file://notallylog.patch \
            "
-SRC_URI[sha256sum] = "e5016b40541ee6fa02ea3d409547cef6e7eea9b31f0e3482e4874f87c1d0c7c5"
+SRC_URI[sha256sum] = "39006c9daf9228ddda9156605201fc9f59c43f9fdecc83c78bbe0e72d9ffd58c"
 UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$"
 
 # Additional Policy files for PAM


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [OE-core] [PATCH 1/4] libjitterentropy: upgrade 3.6.3 -> 3.7.0
  2026-10-02  9:35     ` Alexander Kanavin
@ 2026-10-05  6:51       ` Jaipaul Cheernam
  0 siblings, 0 replies; 16+ messages in thread
From: Jaipaul Cheernam @ 2026-10-05  6:51 UTC (permalink / raw)
  To: Alexander Kanavin, mathieu.dubois-briand; +Cc: openembedded-core


On 2026-10-02 11:35, Alexander Kanavin wrote:
> I think
> https://github.com/smuellerDD/jitterentropy-library/commit/a038d0c372f83aba10f3850c5b122dc5ff8cdc8c
> needs to be backported.

Hi Alex,

Thanks for pointer and I will do backport but backport needs more work 
as code differ a lot.

Regards,

Jaipaul



^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH v2] libjitterentropy: upgrade 3.6.3 -> 3.7.0
  2026-10-02  7:15 ` [PATCH 1/4] libjitterentropy: upgrade 3.6.3 -> 3.7.0 Jaipaul Cheernam
  2026-10-02  8:52   ` [OE-core] " Mathieu Dubois-Briand
@ 2026-11-17  2:46   ` Prasanth R
  2026-11-17  3:01     ` Patchtest results for " patchtest
                       ` (2 more replies)
  1 sibling, 3 replies; 16+ messages in thread
From: Prasanth R @ 2026-11-17  2:46 UTC (permalink / raw)
  To: openembedded-core; +Cc: jaipaul.cheernam, ross.burton, Prasanth R

3.7.0 locks the collector memory with mlock(), changes the startup to
meet NTG.1, replaces the SHA3-256 output with XDRBG-256 and adds
jent_status(). LICENSE only changes the copyright year.

Two fixes are needed:

- 3.7.0 uses C11 threads on Linux and makes struct jent_notime_ctx
  private, so rng-tools fails to build. Backport the Linux part of the
  upstream fix.
- The Makefile now uses -std=c11, which hides clock_gettime() on arm,
  mips and riscv. Build with -D_DEFAULT_SOURCE.

This picks up Jaipaul Cheernam's earlier upgrade patch [1].

[1] https://patchwork.yoctoproject.org/project/oe-core/patch/20261002071557.74249-2-jaipaul.cheernam@est.tech/

AI-Generated: Uses Claude
Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
---
v2:
- Picked up Jaipaul's upgrade; backport the rng-tools fix and build
  with -D_DEFAULT_SOURCE for arm, mips and riscv.

Tested:
- qemux86-64 and qemuarm: libjitterentropy with rng-tools.

 ...Linux-and-make-struct-jent_notime_ct.patch | 75 +++++++++++++++++++
 ...opy_3.6.3.bb => libjitterentropy_3.7.0.bb} | 13 +++-
 2 files changed, 85 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-support/libjitterentropy/libjitterentropy/0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch
 rename meta/recipes-support/libjitterentropy/{libjitterentropy_3.6.3.bb => libjitterentropy_3.7.0.bb} (67%)

diff --git a/meta/recipes-support/libjitterentropy/libjitterentropy/0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch b/meta/recipes-support/libjitterentropy/libjitterentropy/0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch
new file mode 100644
index 0000000000..6fd654fc37
--- /dev/null
+++ b/meta/recipes-support/libjitterentropy/libjitterentropy/0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch
@@ -0,0 +1,75 @@
+From 1bc2ca956d4c64b765c2f19751614949ebe3734d Mon Sep 17 00:00:00 2001
+From: Prasanth R <ragaprasanth@gmail.com>
+Date: Tue, 17 Nov 2026 10:12:23 +0900
+Subject: [PATCH] Use pthreads on Linux and make struct jent_notime_ctx public
+
+3.7.0 switched Linux to C11 <threads.h> and moved struct jent_notime_ctx
+out of jitterentropy.h. This breaks callers that install their own
+thread handler with jent_entropy_switch_notime_impl(), such as
+rng-tools: the start callback no longer takes a pthread start routine,
+and the context is an incomplete type.
+
+Use pthreads on Linux again and define the pthread context in the
+public header, as upstream did in commit a038d0c ("threads: always use
+pthreads on Linux, add a native Win32 backend"). Only the Linux part
+of that commit is taken.
+
+Upstream-Status: Backport [https://github.com/smuellerDD/jitterentropy-library/commit/a038d0c372f83aba10f3850c5b122dc5ff8cdc8c]
+Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
+
+---
+ jitterentropy.h           | 15 ++++++++++++++-
+ src/jitterentropy-timer.c |  8 +-------
+ 2 files changed, 15 insertions(+), 8 deletions(-)
+
+diff --git a/jitterentropy.h b/jitterentropy.h
+index f935c09..3ab1ba3 100644
+--- a/jitterentropy.h
++++ b/jitterentropy.h
+@@ -154,10 +154,23 @@ extern "C" {
+ #endif
+ #endif
+ 
+-#if defined(__MINGW32__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(__MINGW32__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__)
+ #define JENT_PTHREAD
+ #endif
+ 
++#ifdef JENT_PTHREAD
++#include <pthread.h>
++/*
++ * Context handed to the jent_notime_thread handlers. It is part of the API:
++ * a caller that installs its own handler with
++ * jent_entropy_switch_notime_impl() has to create and join the thread.
++ */
++struct jent_notime_ctx {
++	pthread_attr_t notime_pthread_attr;	/* pthreads library */
++	pthread_t notime_thread_id;		/* pthreads thread ID */
++};
++#endif
++
+ /* Forward declaration of opaque value */
+ struct rand_data;
+ 
+diff --git a/src/jitterentropy-timer.c b/src/jitterentropy-timer.c
+index 77f732e..2c974f5 100644
+--- a/src/jitterentropy-timer.c
++++ b/src/jitterentropy-timer.c
+@@ -24,13 +24,7 @@
+ /* Timer-less entropy source */
+ #ifdef JENT_CONF_ENABLE_INTERNAL_TIMER
+ 
+-#ifdef JENT_PTHREAD
+-#include <pthread.h>
+-struct jent_notime_ctx {
+-	pthread_attr_t notime_pthread_attr;     /* pthreads library */
+-	pthread_t notime_thread_id;             /* pthreads thread ID */
+-};
+-#else
++#ifndef JENT_PTHREAD
+ #include <threads.h>
+ struct jent_notime_ctx {
+ 	thrd_t notime_thread_id;                /* thread ID */
+-- 
+2.43.0
+
diff --git a/meta/recipes-support/libjitterentropy/libjitterentropy_3.6.3.bb b/meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
similarity index 67%
rename from meta/recipes-support/libjitterentropy/libjitterentropy_3.6.3.bb
rename to meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
index 27c87c1322..2186127b76 100644
--- a/meta/recipes-support/libjitterentropy/libjitterentropy_3.6.3.bb
+++ b/meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
@@ -5,15 +5,22 @@ stamp. It is a small-scale, yet fast entropy source that is viable in almost \
 all environments and on a lot of CPU architectures."
 HOMEPAGE = "https://www.chronox.de/jent"
 LICENSE = "BSD-3-Clause OR GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=e01027c4ad1fe5a4768f8488c945d491 \
+LIC_FILES_CHKSUM = "file://LICENSE;md5=fcaa2e2fa77c4ea22e45bf79e9a41093 \
                     file://LICENSE.gplv2;md5=eb723b61539feef013de476e68b5c50a \
                     file://LICENSE.bsd;md5=66a5cedaf62c4b2637025f049f9b826f \
                     "
-SRC_URI = "git://github.com/smuellerDD/jitterentropy-library.git;branch=master;protocol=https;tag=v${PV}"
-SRCREV = "c90ff465dcdb6a6949542c72a26a8ab496daa8cb"
+SRC_URI = "git://github.com/smuellerDD/jitterentropy-library.git;branch=master;protocol=https;tag=v${PV} \
+           file://0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch \
+           "
+SRCREV = "e783cf1c450bce4d72f95c9f9c84546a6094976a"
 
 do_configure[noexec] = "1"
 
+# The Makefile builds with -std=c11, which hides clock_gettime() on
+# targets without a cycle counter in jitterentropy-base-user.h (arm, mips,
+# riscv). Fixed upstream after 3.7.0.
+CFLAGS += "-D_DEFAULT_SOURCE"
+
 LDFLAGS += "-Wl,-O0"
 
 do_install () {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Patchtest results for [PATCH v2] libjitterentropy: upgrade 3.6.3 -> 3.7.0
  2026-11-17  2:46   ` [PATCH v2] " Prasanth R
@ 2026-11-17  3:01     ` patchtest
  2026-11-17 13:40     ` [OE-core] " Mathieu Dubois-Briand
  2026-11-18  0:03     ` [PATCH v3] " Prasanth R
  2 siblings, 0 replies; 16+ messages in thread
From: patchtest @ 2026-11-17  3:01 UTC (permalink / raw)
  To: Prasanth R; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 3029 bytes --]

Thank you for your submission. Patchtest identified one
or more issues with the patch. Please see the log below for
more information:

---
Testing patch /home/patchtest/share/mboxes/v2-libjitterentropy-upgrade-3.6.3---3.7.0.patch

FAIL: test lic files chksum modified not mentioned: LIC_FILES_CHKSUM changed without "License-Update:" tag and description in commit message (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)

PASS: pretest src uri left files (test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test CVE tag format (test_patch.TestPatch.test_cve_tag_format)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test Signed-off-by presence (test_patch.TestPatch.test_signed_off_by_presence)
PASS: test Upstream-Status presence (test_patch.TestPatch.test_upstream_status_presence_format)
PASS: test auh changelog truncation notice (test_mbox.TestMbox.test_auh_changelog_truncation_notice)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test commit message user tags (test_mbox.TestMbox.test_commit_message_user_tags)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files (test_metadata.TestMetadata.test_src_uri_left_files)
PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list)

SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [OE-core] [PATCH v2] libjitterentropy: upgrade 3.6.3 -> 3.7.0
  2026-11-17  2:46   ` [PATCH v2] " Prasanth R
  2026-11-17  3:01     ` Patchtest results for " patchtest
@ 2026-11-17 13:40     ` Mathieu Dubois-Briand
  2026-11-18  0:06       ` Prasanth Ramesh
  2026-11-18  0:03     ` [PATCH v3] " Prasanth R
  2 siblings, 1 reply; 16+ messages in thread
From: Mathieu Dubois-Briand @ 2026-11-17 13:40 UTC (permalink / raw)
  To: ragaprasanth, openembedded-core; +Cc: jaipaul.cheernam, ross.burton

On Tue Nov 17, 2026 at 3:46 AM CET, prasanth via openembedded-core wrote:
> 3.7.0 locks the collector memory with mlock(), changes the startup to
> meet NTG.1, replaces the SHA3-256 output with XDRBG-256 and adds
> jent_status(). LICENSE only changes the copyright year.
>
> Two fixes are needed:
>
> - 3.7.0 uses C11 threads on Linux and makes struct jent_notime_ctx
>   private, so rng-tools fails to build. Backport the Linux part of the
>   upstream fix.
> - The Makefile now uses -std=c11, which hides clock_gettime() on arm,
>   mips and riscv. Build with -D_DEFAULT_SOURCE.
>
> This picks up Jaipaul Cheernam's earlier upgrade patch [1].
>
> [1] https://patchwork.yoctoproject.org/project/oe-core/patch/20261002071557.74249-2-jaipaul.cheernam@est.tech/
>
> AI-Generated: Uses Claude
> Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
> ---

Hi Prasanth,

Thanks for the update.

The backported patch is quite different from what we have upstream. I
can understand this is probably because master evolved and I believe the
result is fine, but choices could have been described a bit more in the
commit message.

> --- /dev/null
> +++ b/meta/recipes-support/libjitterentropy/libjitterentropy/0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch
> @@ -0,0 +1,75 @@
> +From 1bc2ca956d4c64b765c2f19751614949ebe3734d Mon Sep 17 00:00:00 2001
> +From: Prasanth R <ragaprasanth@gmail.com>
> +Date: Tue, 17 Nov 2026 10:12:23 +0900
> +Subject: [PATCH] Use pthreads on Linux and make struct jent_notime_ctx public
> +
> +3.7.0 switched Linux to C11 <threads.h> and moved struct jent_notime_ctx
> +out of jitterentropy.h. This breaks callers that install their own
> +thread handler with jent_entropy_switch_notime_impl(), such as
> +rng-tools: the start callback no longer takes a pthread start routine,
> +and the context is an incomplete type.
> +
> +Use pthreads on Linux again and define the pthread context in the
> +public header, as upstream did in commit a038d0c ("threads: always use
> +pthreads on Linux, add a native Win32 backend"). Only the Linux part
> +of that commit is taken.
> +
> +Upstream-Status: Backport [https://github.com/smuellerDD/jitterentropy-library/commit/a038d0c372f83aba10f3850c5b122dc5ff8cdc8c]
> +Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
> +
> +---
> + jitterentropy.h           | 15 ++++++++++++++-
> + src/jitterentropy-timer.c |  8 +-------
> + 2 files changed, 15 insertions(+), 8 deletions(-)
> +
> +diff --git a/jitterentropy.h b/jitterentropy.h
> +index f935c09..3ab1ba3 100644
> +--- a/jitterentropy.h
> ++++ b/jitterentropy.h
> +@@ -154,10 +154,23 @@ extern "C" {
> + #endif
> + #endif
> + 
> +-#if defined(__MINGW32__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
> ++#if defined(__MINGW32__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__)
> + #define JENT_PTHREAD
> + #endif
> + 
> ++#ifdef JENT_PTHREAD
> ++#include <pthread.h>
> ++/*
> ++ * Context handed to the jent_notime_thread handlers. It is part of the API:
> ++ * a caller that installs its own handler with
> ++ * jent_entropy_switch_notime_impl() has to create and join the thread.
> ++ */

Where does this comment come from? I can't see that in the original
commit, nor anywhere in master commit?

> ++struct jent_notime_ctx {
> ++	pthread_attr_t notime_pthread_attr;	/* pthreads library */
> ++	pthread_t notime_thread_id;		/* pthreads thread ID */
> ++};
> ++#endif
> ++
> + /* Forward declaration of opaque value */
> + struct rand_data;
> + 
> +diff --git a/src/jitterentropy-timer.c b/src/jitterentropy-timer.c
> +index 77f732e..2c974f5 100644

Again, I believe the overall result is fine: we are just moving a
structure here.

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH v3] libjitterentropy: upgrade 3.6.3 -> 3.7.0
  2026-11-17  2:46   ` [PATCH v2] " Prasanth R
  2026-11-17  3:01     ` Patchtest results for " patchtest
  2026-11-17 13:40     ` [OE-core] " Mathieu Dubois-Briand
@ 2026-11-18  0:03     ` Prasanth R
  2 siblings, 0 replies; 16+ messages in thread
From: Prasanth R @ 2026-11-18  0:03 UTC (permalink / raw)
  To: openembedded-core
  Cc: mathieu.dubois-briand, jaipaul.cheernam, ross.burton, Prasanth R

3.7.0 locks the collector memory with mlock(), changes the startup to
meet NTG.1, replaces the SHA3-256 output with XDRBG-256 and adds
jent_status().

Two fixes are needed:

- 3.7.0 uses C11 threads on Linux and makes struct jent_notime_ctx
  private, so rng-tools fails to build. Upstream fixed this on top of
  a larger rework of the thread code; backport only the Linux part
  (see the patch for what is taken and why).
- The Makefile now uses -std=c11, which hides clock_gettime() on arm,
  mips and riscv. Build with -D_DEFAULT_SOURCE.

This picks up Jaipaul Cheernam's earlier upgrade patch [1].

[1] https://patchwork.yoctoproject.org/project/oe-core/patch/20261002071557.74249-2-jaipaul.cheernam@est.tech/

License-Update: copyright year changed to 2026
AI-Generated: Uses Claude
Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
---
v3:
- Drop a comment I had added above struct jent_notime_ctx; the
  struct is now moved unchanged from src/jitterentropy-timer.c.
- Describe in the backport what is taken from a038d0c and what is
  left out.
- Add License-Update tag.

Tested:
- qemux86-64 and qemuarm: libjitterentropy with rng-tools.

 ...Linux-and-make-struct-jent_notime_ct.patch | 75 +++++++++++++++++++
 ...opy_3.6.3.bb => libjitterentropy_3.7.0.bb} | 13 +++-
 2 files changed, 83 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-support/libjitterentropy/libjitterentropy/0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch
 rename meta/recipes-support/libjitterentropy/{libjitterentropy_3.6.3.bb => libjitterentropy_3.7.0.bb} (67%)

diff --git a/meta/recipes-support/libjitterentropy/libjitterentropy/0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch b/meta/recipes-support/libjitterentropy/libjitterentropy/0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch
new file mode 100644
index 0000000000..9a002ccaaf
--- /dev/null
+++ b/meta/recipes-support/libjitterentropy/libjitterentropy/0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch
@@ -0,0 +1,73 @@
+From c8c3df8da9c6beb9855e773b7320051278c2c334 Mon Sep 17 00:00:00 2001
+From: Prasanth R <ragaprasanth@gmail.com>
+Date: Tue, 17 Nov 2026 10:12:23 +0900
+Subject: [PATCH] Use pthreads on Linux and make struct jent_notime_ctx public
+
+3.7.0 switched Linux to C11 <threads.h> and moved struct jent_notime_ctx
+out of jitterentropy.h. This breaks callers that install their own
+thread handler with jent_entropy_switch_notime_impl(), such as
+rng-tools: the start callback no longer takes a pthread start routine,
+and the context is an incomplete type.
+
+Upstream fixed this in commit a038d0c ("threads: always use pthreads on
+Linux, add a native Win32 backend"), on top of a rework of the thread
+code that 3.7.0 does not have. Only the Linux part is taken here:
+define JENT_PTHREAD on Linux, and move the pthread variant of
+struct jent_notime_ctx unchanged from src/jitterentropy-timer.c to
+jitterentropy.h, where upstream also has it. The Win32 backend and the
+rest of the rework are left out.
+
+Upstream-Status: Backport [https://github.com/smuellerDD/jitterentropy-library/commit/a038d0c372f83aba10f3850c5b122dc5ff8cdc8c]
+Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
+
+---
+ jitterentropy.h           | 10 +++++++++-
+ src/jitterentropy-timer.c |  8 +-------
+ 2 files changed, 10 insertions(+), 8 deletions(-)
+
+diff --git a/jitterentropy.h b/jitterentropy.h
+index f935c09..27ad0ae 100644
+--- a/jitterentropy.h
++++ b/jitterentropy.h
+@@ -154,10 +154,18 @@ extern "C" {
+ #endif
+ #endif
+ 
+-#if defined(__MINGW32__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(__MINGW32__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__)
+ #define JENT_PTHREAD
+ #endif
+ 
++#ifdef JENT_PTHREAD
++#include <pthread.h>
++struct jent_notime_ctx {
++	pthread_attr_t notime_pthread_attr;     /* pthreads library */
++	pthread_t notime_thread_id;             /* pthreads thread ID */
++};
++#endif
++
+ /* Forward declaration of opaque value */
+ struct rand_data;
+ 
+diff --git a/src/jitterentropy-timer.c b/src/jitterentropy-timer.c
+index 77f732e..2c974f5 100644
+--- a/src/jitterentropy-timer.c
++++ b/src/jitterentropy-timer.c
+@@ -24,13 +24,7 @@
+ /* Timer-less entropy source */
+ #ifdef JENT_CONF_ENABLE_INTERNAL_TIMER
+ 
+-#ifdef JENT_PTHREAD
+-#include <pthread.h>
+-struct jent_notime_ctx {
+-	pthread_attr_t notime_pthread_attr;     /* pthreads library */
+-	pthread_t notime_thread_id;             /* pthreads thread ID */
+-};
+-#else
++#ifndef JENT_PTHREAD
+ #include <threads.h>
+ struct jent_notime_ctx {
+ 	thrd_t notime_thread_id;                /* thread ID */
+-- 
+2.43.0
+
diff --git a/meta/recipes-support/libjitterentropy/libjitterentropy_3.6.3.bb b/meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
similarity index 67%
rename from meta/recipes-support/libjitterentropy/libjitterentropy_3.6.3.bb
rename to meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
index 27c87c1322..2186127b76 100644
--- a/meta/recipes-support/libjitterentropy/libjitterentropy_3.6.3.bb
+++ b/meta/recipes-support/libjitterentropy/libjitterentropy_3.7.0.bb
@@ -5,15 +5,22 @@ stamp. It is a small-scale, yet fast entropy source that is viable in almost \
 all environments and on a lot of CPU architectures."
 HOMEPAGE = "https://www.chronox.de/jent"
 LICENSE = "BSD-3-Clause OR GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=e01027c4ad1fe5a4768f8488c945d491 \
+LIC_FILES_CHKSUM = "file://LICENSE;md5=fcaa2e2fa77c4ea22e45bf79e9a41093 \
                     file://LICENSE.gplv2;md5=eb723b61539feef013de476e68b5c50a \
                     file://LICENSE.bsd;md5=66a5cedaf62c4b2637025f049f9b826f \
                     "
-SRC_URI = "git://github.com/smuellerDD/jitterentropy-library.git;branch=master;protocol=https;tag=v${PV}"
-SRCREV = "c90ff465dcdb6a6949542c72a26a8ab496daa8cb"
+SRC_URI = "git://github.com/smuellerDD/jitterentropy-library.git;branch=master;protocol=https;tag=v${PV} \
+           file://0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch \
+           "
+SRCREV = "e783cf1c450bce4d72f95c9f9c84546a6094976a"
 
 do_configure[noexec] = "1"
 
+# The Makefile builds with -std=c11, which hides clock_gettime() on
+# targets without a cycle counter in jitterentropy-base-user.h (arm, mips,
+# riscv). Fixed upstream after 3.7.0.
+CFLAGS += "-D_DEFAULT_SOURCE"
+
 LDFLAGS += "-Wl,-O0"
 
 do_install () {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [OE-core] [PATCH v2] libjitterentropy: upgrade 3.6.3 -> 3.7.0
  2026-11-17 13:40     ` [OE-core] " Mathieu Dubois-Briand
@ 2026-11-18  0:06       ` Prasanth Ramesh
  0 siblings, 0 replies; 16+ messages in thread
From: Prasanth Ramesh @ 2026-11-18  0:06 UTC (permalink / raw)
  To: Mathieu Dubois-Briand; +Cc: openembedded-core, jaipaul.cheernam, ross.burton

[-- Attachment #1: Type: text/plain, Size: 4563 bytes --]

Hi Mathieu,

Thanks for the feedback.

That comment was my own addition to explain why the struct has to be in the
header,
I'll send a v3 that drops the comment and updates the commit message.

Thanks,
Prasanth

On Tue, Nov 17, 2026 at 10:40 PM Mathieu Dubois-Briand <
mathieu.dubois-briand@bootlin.com> wrote:

> On Tue Nov 17, 2026 at 3:46 AM CET, prasanth via openembedded-core wrote:
> > 3.7.0 locks the collector memory with mlock(), changes the startup to
> > meet NTG.1, replaces the SHA3-256 output with XDRBG-256 and adds
> > jent_status(). LICENSE only changes the copyright year.
> >
> > Two fixes are needed:
> >
> > - 3.7.0 uses C11 threads on Linux and makes struct jent_notime_ctx
> >   private, so rng-tools fails to build. Backport the Linux part of the
> >   upstream fix.
> > - The Makefile now uses -std=c11, which hides clock_gettime() on arm,
> >   mips and riscv. Build with -D_DEFAULT_SOURCE.
> >
> > This picks up Jaipaul Cheernam's earlier upgrade patch [1].
> >
> > [1]
> https://patchwork.yoctoproject.org/project/oe-core/patch/20261002071557.74249-2-jaipaul.cheernam@est.tech/
> >
> > AI-Generated: Uses Claude
> > Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
> > ---
>
> Hi Prasanth,
>
> Thanks for the update.
>
> The backported patch is quite different from what we have upstream. I
> can understand this is probably because master evolved and I believe the
> result is fine, but choices could have been described a bit more in the
> commit message.
>
> > --- /dev/null
> > +++
> b/meta/recipes-support/libjitterentropy/libjitterentropy/0001-Use-pthreads-on-Linux-and-make-struct-jent_notime_ct.patch
> > @@ -0,0 +1,75 @@
> > +From 1bc2ca956d4c64b765c2f19751614949ebe3734d Mon Sep 17 00:00:00 2001
> > +From: Prasanth R <ragaprasanth@gmail.com>
> > +Date: Tue, 17 Nov 2026 10:12:23 +0900
> > +Subject: [PATCH] Use pthreads on Linux and make struct jent_notime_ctx
> public
> > +
> > +3.7.0 switched Linux to C11 <threads.h> and moved struct jent_notime_ctx
> > +out of jitterentropy.h. This breaks callers that install their own
> > +thread handler with jent_entropy_switch_notime_impl(), such as
> > +rng-tools: the start callback no longer takes a pthread start routine,
> > +and the context is an incomplete type.
> > +
> > +Use pthreads on Linux again and define the pthread context in the
> > +public header, as upstream did in commit a038d0c ("threads: always use
> > +pthreads on Linux, add a native Win32 backend"). Only the Linux part
> > +of that commit is taken.
> > +
> > +Upstream-Status: Backport [
> https://github.com/smuellerDD/jitterentropy-library/commit/a038d0c372f83aba10f3850c5b122dc5ff8cdc8c
> ]
> > +Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
> > +
> > +---
> > + jitterentropy.h           | 15 ++++++++++++++-
> > + src/jitterentropy-timer.c |  8 +-------
> > + 2 files changed, 15 insertions(+), 8 deletions(-)
> > +
> > +diff --git a/jitterentropy.h b/jitterentropy.h
> > +index f935c09..3ab1ba3 100644
> > +--- a/jitterentropy.h
> > ++++ b/jitterentropy.h
> > +@@ -154,10 +154,23 @@ extern "C" {
> > + #endif
> > + #endif
> > +
> > +-#if defined(__MINGW32__) || defined(__APPLE__) || defined(__OpenBSD__)
> || defined(__FreeBSD__) || defined(__NetBSD__)
> > ++#if defined(__MINGW32__) || defined(__APPLE__) || defined(__OpenBSD__)
> || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__)
> > + #define JENT_PTHREAD
> > + #endif
> > +
> > ++#ifdef JENT_PTHREAD
> > ++#include <pthread.h>
> > ++/*
> > ++ * Context handed to the jent_notime_thread handlers. It is part of
> the API:
> > ++ * a caller that installs its own handler with
> > ++ * jent_entropy_switch_notime_impl() has to create and join the thread.
> > ++ */
>
> Where does this comment come from? I can't see that in the original
> commit, nor anywhere in master commit?
>
> > ++struct jent_notime_ctx {
> > ++    pthread_attr_t notime_pthread_attr;     /* pthreads library */
> > ++    pthread_t notime_thread_id;             /* pthreads thread ID */
> > ++};
> > ++#endif
> > ++
> > + /* Forward declaration of opaque value */
> > + struct rand_data;
> > +
> > +diff --git a/src/jitterentropy-timer.c b/src/jitterentropy-timer.c
> > +index 77f732e..2c974f5 100644
>
> Again, I believe the overall result is fine: we are just moving a
> structure here.
>
> Thanks,
> Mathieu
>
> --
> Mathieu Dubois-Briand, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
>

[-- Attachment #2: Type: text/html, Size: 6059 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-11-18  0:07 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02  7:15 [PATCH 0/4] Upgrades on 02-10-2026 Jaipaul Cheernam
2026-10-02  7:15 ` [PATCH 1/4] libjitterentropy: upgrade 3.6.3 -> 3.7.0 Jaipaul Cheernam
2026-10-02  8:52   ` [OE-core] " Mathieu Dubois-Briand
2026-10-02  9:35     ` Alexander Kanavin
2026-10-05  6:51       ` Jaipaul Cheernam
2026-11-17  2:46   ` [PATCH v2] " Prasanth R
2026-11-17  3:01     ` Patchtest results for " patchtest
2026-11-17 13:40     ` [OE-core] " Mathieu Dubois-Briand
2026-11-18  0:06       ` Prasanth Ramesh
2026-11-18  0:03     ` [PATCH v3] " Prasanth R
2026-10-02  7:15 ` [PATCH 2/4] libjitterentropy: Fix HOMEPAGE Jaipaul Cheernam
2026-10-02  7:15 ` [PATCH 3/4] shadow: upgrade 4.20.2 -> 4.20.3 Jaipaul Cheernam
2026-10-02  8:25   ` [OE-core] " Mathieu Dubois-Briand
2026-10-02 10:49     ` Jaipaul Cheernam
2026-10-02 11:57   ` [PATCH v2] " Jaipaul Cheernam
2026-10-02  7:15 ` [PATCH 4/4] glib-networking: upgrade 2.80.1 -> 2.90.0 Jaipaul Cheernam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.