From patchwork Thu Dec 3 11:12:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Tyagi X-Patchwork-Id: 107105 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.11785.1796296480692272543 for ; Thu, 03 Dec 2026 03:14:40 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=kFMnWAgy; spf=pass (domain: gmail.com, ip: 209.85.215.181, mailfrom: ankur.tyagi85@gmail.com) Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-cdb2dfcca94so6135466a12.1 for ; Thu, 03 Dec 2026 03:14:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796296480; x=1796901280; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=VFuFvsWtlYiAXwbfclrEykDd4ukcjNTvzKtMnDKJhmY=; b=kFMnWAgyjJyIj3FZnezalBC0vqEBFckx3uDKpn6qufZPuaOFm9BTpvajanX28yi45K ityQeWJPxoC4y47ARRaReGo0v8GmUeUzvXhyQzZLYA9gQyt67BFaP/TsmLSkg1sUDotR RmNoy6sEnj8bULL8RsMdYO8+5Cyu1+I4SpADr1ubYsxldSmfFnDaQLZATt8DWzX9NH3P 0A4iaQQN6Z/omvTU1c/ag57mpJgriLwVecadlVkYXZALHYqnFKBK1iNdtnNtlaBkXRSh dyZh59/Q6Evh6/QcR1aWYzTzxBeGsHv804o/Mz4lAMCrmy3MCbIBWRmzZ56jUQ4+eqaT krLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796296480; x=1796901280; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x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X495ZgliO0gQeiq8iguE+yuR7f0R4p4ugEq0H SEiJNQYGyloWfcNba1bI6KST1i0IJ+ymDZuq8ZdwG4Vtd4m4dZ8ffoM7zZsVf/1dy2qZhM49JAh B1HFzhXY5b8PLcodPdCss0QPJvMVIavPY821u8nMBJaalC06MO+jgpuA/NuaDpJ4NOTNVYMHDfr DlOrEMk7PCjqGIH+WR4gd0A== X-Received: by 2002:a17:90b:1802:b0:3b1:64d3:f308 with SMTP id 98e67ed59e1d1-3b41c955a0bmr43272450a91.43.1796296480075; Thu, 03 Dec 2026 03:14:40 -0800 (PST) Return-Path: Received: from NVAPF55DW0D-IPD.. ([147.161.219.8]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7d65b94sm3890436a91.12.2026.12.03.03.14.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 03:14:39 -0800 (PST) From: ankur.tyagi85@gmail.com To: openembedded-devel@lists.openembedded.org Cc: Markus Volk , Khem Raj , Ankur Tyagi Subject: [oe][meta-gnome][blacksail][PATCH 7/95] gnome-keyring: upgrade 51.0 -> 51.1 Date: Fri, 4 Dec 2026 00:12:38 +1300 Message-ID: <20261203111406.4182597-7-ankur.tyagi85@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261203111406.4182597-1-ankur.tyagi85@gmail.com> References: <20261203111406.4182597-1-ankur.tyagi85@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Thu, 03 Dec 2026 11:14:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133897 From: Markus Volk 0004-gkd-secret-session-drop-the-duplicate-session-unref.patch is removed, the fix is included upstream (!114). AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Markus Volk Signed-off-by: Khem Raj (cherry picked from commit 65cc5b89117949e0b4c40c633d5839ad006a2076) Signed-off-by: Ankur Tyagi --- ...ion-drop-the-duplicate-session-unref.patch | 58 ------------------- ...-keyring_51.0.bb => gnome-keyring_51.1.bb} | 3 +- 2 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 meta-gnome/recipes-gnome/gnome-keyring/gnome-keyring/0004-gkd-secret-session-drop-the-duplicate-session-unref.patch rename meta-gnome/recipes-gnome/gnome-keyring/{gnome-keyring_51.0.bb => gnome-keyring_51.1.bb} (91%) diff --git a/meta-gnome/recipes-gnome/gnome-keyring/gnome-keyring/0004-gkd-secret-session-drop-the-duplicate-session-unref.patch b/meta-gnome/recipes-gnome/gnome-keyring/gnome-keyring/0004-gkd-secret-session-drop-the-duplicate-session-unref.patch deleted file mode 100644 index 707a8b1a1c..0000000000 --- a/meta-gnome/recipes-gnome/gnome-keyring/gnome-keyring/0004-gkd-secret-session-drop-the-duplicate-session-unref.patch +++ /dev/null @@ -1,58 +0,0 @@ -From 011d89df54d0f441d17c449513ae0ef8aa21c4cd Mon Sep 17 00:00:00 2001 -From: Markus Volk -Date: Tue, 15 Sep 2026 19:22:41 +0200 -Subject: [PATCH] gkd-secret-session: drop the duplicate session unref - -gkd_secret_session_get_item_secret() unrefs the session returned by -gck_object_get_session() twice: once right after -gck_session_wrap_key_full(), and once more below with a comment claiming -the reference would otherwise leak. gck_object_get_session() hands out a -single new reference, so the second unref drops one reference too many -on every GetSecret call. - -The GckSession is freed while client->pkcs11_session and the GckObject -of the session key still point at it. The daemon dies when the client -leaves the bus and its dispatch table is torn down: - - service_name_owner_changed daemon/dbus/gkd-secret-service.c:944 - free_client daemon/dbus/gkd-secret-service.c:264 - dispose_and_unref daemon/dbus/gkd-secret-service.c:245 - gkd_secret_session_dispose daemon/dbus/gkd-secret-session.c:357 - gck_object_finalize gck/gck-object.c:135 - g_object_unref -> SIGSEGV, rax = 0xaaaaaaaaaaaaaaaa - -Reproduced on a running system with a single "secret-tool lookup", -symbolized against /usr/src/debug. The older crashes reported as -"segfault at f00dface in libgck-1.so" are the same use after free caught -at an earlier point. - -gkd-secret-lock.c:49 and gkd-secret-unlock.c:726 do it correctly, with -exactly one unref per gck_object_get_session(). - -Upstream-Status: Pending - -Still present in gnome-keyring main as of 2026-09-15. - -AI-Generated: Uses Claude Code (Claude Opus 5) ---- - daemon/dbus/gkd-secret-session.c | 7 ------- - 1 file changed, 7 deletions(-) - -diff --git a/daemon/dbus/gkd-secret-session.c b/daemon/dbus/gkd-secret-session.c -index 16bb368..6799b4c 100644 ---- a/daemon/dbus/gkd-secret-session.c -+++ b/daemon/dbus/gkd-secret-session.c -@@ -609,13 +609,6 @@ gkd_secret_session_get_item_secret (GkdSecretSession *self, GckObject *item, - NULL, &error); - g_object_unref (session); - -- /* -- * gck_object_get_session() returns a new reference, so drop it again. -- * Not doing so leaks a GckSession on every GetSecret call, which in turn -- * keeps the client's PKCS#11 session alive after the client is gone. -- */ -- g_object_unref (session); -- - if (error != NULL) { - if (g_error_matches (error, GCK_ERROR, CKR_USER_NOT_LOGGED_IN)) { - g_set_error_literal (error_out, GKD_SECRET_ERROR, diff --git a/meta-gnome/recipes-gnome/gnome-keyring/gnome-keyring_51.0.bb b/meta-gnome/recipes-gnome/gnome-keyring/gnome-keyring_51.1.bb similarity index 91% rename from meta-gnome/recipes-gnome/gnome-keyring/gnome-keyring_51.0.bb rename to meta-gnome/recipes-gnome/gnome-keyring/gnome-keyring_51.1.bb index 12576f2eb4..c1349a2986 100644 --- a/meta-gnome/recipes-gnome/gnome-keyring/gnome-keyring_51.0.bb +++ b/meta-gnome/recipes-gnome/gnome-keyring/gnome-keyring_51.1.bb @@ -20,11 +20,10 @@ DEPENDS = " \ inherit gnomebase gsettings gettext -SRC_URI[archive.sha256sum] = "2aebaa2d474cc31507c87a7bbbdb3e16dbe26b1cfef9f206457f3f9df43558b0" +SRC_URI[archive.sha256sum] = "dfe7adc5876ef0670e7eba2907799bdbb8875ce58bb4208e1a52169bd16a47ca" SRC_URI += "file://0001-meson-allow-setting-the-paths-to-ssh-agent-and-ssh-add-by-option.patch \ file://0002-gkd-secret-service-destroy-the-dispatch-table-before.patch \ file://0003-gkd-secret-unlock-do-not-use-the-service-after-dispo.patch \ - file://0004-gkd-secret-session-drop-the-duplicate-session-unref.patch \ " PACKAGECONFIG ??= " \