public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Howarth <paul@city-fan.org>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: Fix crash with Unexpected error 9 on netlink descriptor 10 (rhbz#2332350)
Date: Tue, 03 Nov 2026 12:39:22 GMT	[thread overview]
Message-ID: <179370956224.1.11965053656928659374.rpms-curl-348d650b12c9@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/curl
            Branch : curl-v8.23.0-3
            Commit : 348d650b12c9787af9669f6a985f57cf3ccdc18c
            Author : Paul Howarth <paul@city-fan.org>
            Date   : 2024-12-15T12:06:23+00:00
            Stats  : +44/-2 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/curl/c/348d650b12c9787af9669f6a985f57cf3ccdc18c?branch=curl-v8.23.0-3

            Log:
            Fix crash with Unexpected error 9 on netlink descriptor 10 (rhbz#2332350)

- https://github.com/curl/curl/issues/15725
- https://github.com/curl/curl/pull/15727

---
diff --git a/0001-curl-8.11.1-eventfd.patch b/0001-curl-8.11.1-eventfd.patch
new file mode 100644
index 0000000..3960452
--- /dev/null
+++ b/0001-curl-8.11.1-eventfd.patch
@@ -0,0 +1,31 @@
+From 17c06b1ed19147d9e641ad5bcd672e8bce451b46 Mon Sep 17 00:00:00 2001
+From: Andy Pan <i@andypan.me>
+Date: Thu, 12 Dec 2024 12:48:56 +0000
+Subject: [PATCH] async-thread: avoid closing eventfd twice
+
+When employing eventfd for socketpair, there is only one file
+descriptor. Closing that fd twice might result in fd corruption.
+Thus, we should avoid closing the eventfd twice, following the
+pattern in lib/multi.c.
+
+Fixes #15725
+---
+ lib/asyn-thread.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c
+index a58e4b790494ab..32d496b107cb0a 100644
+--- a/lib/asyn-thread.c
++++ b/lib/asyn-thread.c
+@@ -195,9 +195,11 @@ void destroy_thread_sync_data(struct thread_sync_data *tsd)
+    * close one end of the socket pair (may be done in resolver thread);
+    * the other end (for reading) is always closed in the parent thread.
+    */
++#ifndef USE_EVENTFD
+   if(tsd->sock_pair[1] != CURL_SOCKET_BAD) {
+     wakeup_close(tsd->sock_pair[1]);
+   }
++#endif
+ #endif
+   memset(tsd, 0, sizeof(*tsd));
+ }

diff --git a/curl.spec b/curl.spec
index 9b1c4c8..beca484 100644
--- a/curl.spec
+++ b/curl.spec
@@ -7,7 +7,7 @@
 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
 Name: curl
 Version: 8.11.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: curl
 Source0: https://curl.se/download/%{name}-%{version}.tar.xz
 Source1: https://curl.se/download/%{name}-%{version}.tar.xz.asc
@@ -16,6 +16,12 @@ Source1: https://curl.se/download/%{name}-%{version}.tar.xz.asc
 # which points to the GPG key as of April 7th 2016 of https://daniel.haxx.se/mykey.asc
 Source2: mykey.asc
 
+# Fix crash with Unexpected error 9 on netlink descriptor 10
+# https://bugzilla.redhat.com/show_bug.cgi?id=2332350
+# https://github.com/curl/curl/issues/15725
+# https://github.com/curl/curl/pull/15727
+Patch1: 0001-curl-8.11.1-eventfd.patch
+
 # patch making libcurl multilib ready
 Patch101: 0101-curl-7.32.0-multilib.patch
 
@@ -410,6 +416,11 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
 %{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
 
 %changelog
+* Sun Dec 15 2024 Paul Howarth <paul@city-fan.org> - 8.11.1-2
+- Fix crash with Unexpected error 9 on netlink descriptor 10 (rhbz#2332350)
+  - https://github.com/curl/curl/issues/15725
+  - https://github.com/curl/curl/pull/15727
+
 * Wed Dec 11 2024 Jan Macku <jamacku@redhat.com> - 8.11.1-1
 - new upstream release, which fixes the following vulnerabilities
     CVE-2024-11053 - netrc and redirect credential leak
@@ -431,7 +442,7 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
 - new upstream release
 
 * Wed Aug 21 2024 Jacek Migacz <jmigacz@redhat.com> - 8.9.1-3
-- Retire depricated ntlm-wb configure option
+- Retire deprecated ntlm-wb configure option
 
 * Mon Aug 5 2024 voidanix <voidanix@keyedlimepie.org> - 8.9.1-2
 - Apply SIGPIPE-related patch due to upstream regression

                 reply	other threads:[~2026-11-03 12:39 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=179370956224.1.11965053656928659374.rpms-curl-348d650b12c9@fedoraproject.org \
    --to=paul@city-fan.org \
    --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