public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] curl-v8.21.0-9: Fix crash with Unexpected error 9 on netlink descriptor 10 (rhbz#2332350)
@ 2026-11-02 14:32 Paul Howarth
  0 siblings, 0 replies; only message in thread
From: Paul Howarth @ 2026-11-02 14:32 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/curl
            Branch : curl-v8.21.0-9
            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.21.0-9

            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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-02 14:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02 14:32 [rpms/curl] curl-v8.21.0-9: Fix crash with Unexpected error 9 on netlink descriptor 10 (rhbz#2332350) Paul Howarth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox