public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Adam Williamson <awilliam@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/glib2] cve-2026-58016-f44: Revert an upstream change that makes anaconda crash
Date: Tue, 11 Aug 2026 10:37:57 GMT [thread overview]
Message-ID: <178644467758.1.14380403540881056323.rpms-glib2-cceebb32c75c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/glib2
Branch : cve-2026-58016-f44
Commit : cceebb32c75c7b4b5374db9b3aa523559c88a48d
Author : Adam Williamson <awilliam@redhat.com>
Date : 2023-07-17T18:01:34-07:00
Stats : +48/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/glib2/c/cceebb32c75c7b4b5374db9b3aa523559c88a48d?branch=cve-2026-58016-f44
Log:
Revert an upstream change that makes anaconda crash
See https://gitlab.gnome.org/GNOME/glib/-/issues/3054 and
https://bodhi.fedoraproject.org/updates/FEDORA-2023-b0f2753db9
for details.
---
diff --git a/0001-Revert-gmain-Add-precondition-assertions-to-g_main_c.patch b/0001-Revert-gmain-Add-precondition-assertions-to-g_main_c.patch
new file mode 100644
index 0000000..9723289
--- /dev/null
+++ b/0001-Revert-gmain-Add-precondition-assertions-to-g_main_c.patch
@@ -0,0 +1,45 @@
+From c7519c709f67f1a77bcbcfdaac96bd0a5c46538f Mon Sep 17 00:00:00 2001
+From: Adam Williamson <awilliam@redhat.com>
+Date: Mon, 17 Jul 2023 17:43:47 -0700
+Subject: [PATCH] Revert "gmain: Add precondition assertions to
+ g_main_context_release()"
+
+This reverts commit 3926af723a7469a2ea492307f421820361d617b3.
+It causes anaconda (the Fedora installer) to crash early, see
+https://gitlab.gnome.org/GNOME/glib/-/issues/3054 .
+---
+ glib/gmain.c | 16 +---------------
+ 1 file changed, 1 insertion(+), 15 deletions(-)
+
+diff --git a/glib/gmain.c b/glib/gmain.c
+index fac14224a..73084134d 100644
+--- a/glib/gmain.c
++++ b/glib/gmain.c
+@@ -3594,23 +3594,9 @@ g_main_context_release (GMainContext *context)
+ {
+ if (context == NULL)
+ context = g_main_context_default ();
+-
++
+ LOCK_CONTEXT (context);
+
+-#ifndef G_DISABLE_CHECKS
+- if (G_UNLIKELY (context->owner != G_THREAD_SELF || context->owner_count == 0))
+- {
+- GThread *context_owner = context->owner;
+- guint context_owner_count = context->owner_count;
+-
+- UNLOCK_CONTEXT (context);
+-
+- g_critical ("g_main_context_release() called on a context (%p, owner %p, "
+- "owner count %u) which is not acquired by the current thread",
+- context, context_owner, context_owner_count);
+- }
+-#endif /* !G_DISABLE_CHECKS */
+-
+ g_main_context_release_unlocked (context);
+
+ UNLOCK_CONTEXT (context);
+--
+2.41.0
+
diff --git a/glib2.spec b/glib2.spec
index 0ac8879..39c4da1 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -11,6 +11,9 @@ Source0: https://download.gnome.org/sources/glib/2.77/glib-%{version}.tar.xz
# https://bugzilla.redhat.com/show_bug.cgi?id=1630260
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/903
Patch0: gnutls-hmac.patch
+# Avoid making anaconda crash
+# https://gitlab.gnome.org/GNOME/glib/-/issues/3054
+Patch1: 0001-Revert-gmain-Add-precondition-assertions-to-g_main_c.patch
BuildRequires: gcc
BuildRequires: gcc-c++
reply other threads:[~2026-08-11 10:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178644467758.1.14380403540881056323.rpms-glib2-cceebb32c75c@fedoraproject.org \
--to=awilliam@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox