patch 'eal/linux: revert eventfd leak fix for MSI-X' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Fri Nov 20 21:29:41 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/22/26. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/4a6674eca1a40b56bdd35b4c1538996d56e712ae

Thanks.

Luca Boccassi

---
>From 4a6674eca1a40b56bdd35b4c1538996d56e712ae Mon Sep 17 00:00:00 2001
From: David Marchand <david.marchand at redhat.com>
Date: Wed, 18 Nov 2026 16:29:45 +0100
Subject: [PATCH] eal/linux: revert eventfd leak fix for MSI-X

[ upstream commit a465d6810a4ad7a5dc55d1f3fa174b1a0f55bcd9 ]

The event FDs leak fix looks correct on the principle but it seems it
was too soon to take it, as it broke net/virtio and may have broken
other drivers.

Revert this fix until we get a proper fix and acknowledgement that
other drivers are fine with the change.

Fixes: 3ba6b689893f ("eal/linux: fix eventfd leaks when enabling interrupts")

Signed-off-by: David Marchand <david.marchand at redhat.com>
Acked-by: Maxime Coquelin <maxime.coquelin at redhat.com>
---
 lib/eal/linux/eal_interrupts.c | 46 +++++++++-------------------------
 1 file changed, 12 insertions(+), 34 deletions(-)

diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c
index 828680e24a..abb717257c 100644
--- a/lib/eal/linux/eal_interrupts.c
+++ b/lib/eal/linux/eal_interrupts.c
@@ -1556,44 +1556,31 @@ rte_intr_free_epoll_fd(struct rte_intr_handle *intr_handle)
 int
 rte_intr_efd_enable(struct rte_intr_handle *intr_handle, uint32_t nb_efd)
 {
+	uint32_t i;
+	int fd;
 	uint32_t n = RTE_MIN(nb_efd, (uint32_t)RTE_MAX_RXTX_INTR_VEC_ID);
-	int ret;
 
 	assert(nb_efd != 0);
 
 	if (rte_intr_type_get(intr_handle) == RTE_INTR_HANDLE_VFIO_MSIX) {
-		if (rte_intr_nb_efd_get(intr_handle) != 0) {
-			EAL_LOG(ERR, "Interrupt eventfds are already enabled");
-			return -EBUSY;
-		}
-
-		for (uint32_t i = 0; i < n; i++) {
-			int fd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);
-
+		for (i = 0; i < n; i++) {
+			fd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);
 			if (fd < 0) {
-				ret = -errno;
 				EAL_LOG(ERR,
 					"can't setup eventfd, error %i (%s)",
 					errno, strerror(errno));
-				goto error;
+				return -errno;
 			}
 
-			/* Record each eventfd as it is created so that the
-			 * error path can close exactly those that exist.
-			 */
-			if (rte_intr_efds_index_set(intr_handle, i, fd) ||
-					rte_intr_nb_efd_set(intr_handle, i + 1)) {
-				ret = -rte_errno;
-				close(fd);
-				rte_intr_efds_index_set(intr_handle, i, -1);
-				goto error;
-			}
+			if (rte_intr_efds_index_set(intr_handle, i, fd))
+				return -rte_errno;
 		}
 
-		if (rte_intr_max_intr_set(intr_handle, NB_OTHER_INTR + n)) {
-			ret = -rte_errno;
-			goto error;
-		}
+		if (rte_intr_nb_efd_set(intr_handle, n))
+			return -rte_errno;
+
+		if (rte_intr_max_intr_set(intr_handle, NB_OTHER_INTR + n))
+			return -rte_errno;
 	} else if (rte_intr_type_get(intr_handle) == RTE_INTR_HANDLE_VDEV) {
 		/* only check, initialization would be done in vdev driver.*/
 		if ((uint64_t)rte_intr_efd_counter_size_get(intr_handle) >
@@ -1611,15 +1598,6 @@ rte_intr_efd_enable(struct rte_intr_handle *intr_handle, uint32_t nb_efd)
 	}
 
 	return 0;
-
-error:
-	for (int i = 0; i < rte_intr_nb_efd_get(intr_handle); i++) {
-		close(rte_intr_efds_index_get(intr_handle, i));
-		rte_intr_efds_index_set(intr_handle, i, -1);
-	}
-	rte_intr_nb_efd_set(intr_handle, 0);
-
-	return ret;
 }
 
 void
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-20 20:29:05.662472598 +0000
+++ 0012-eal-linux-revert-eventfd-leak-fix-for-MSI-X.patch	2026-11-20 20:29:05.208110200 +0000
@@ -1 +1 @@
-From a465d6810a4ad7a5dc55d1f3fa174b1a0f55bcd9 Mon Sep 17 00:00:00 2001
+From 4a6674eca1a40b56bdd35b4c1538996d56e712ae Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit a465d6810a4ad7a5dc55d1f3fa174b1a0f55bcd9 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index dfe1660dd0..c63956cde5 100644
+index 828680e24a..abb717257c 100644
@@ -26 +27 @@
-@@ -1556,44 +1556,31 @@ RTE_EXPORT_INTERNAL_SYMBOL(rte_intr_efd_enable)
+@@ -1556,44 +1556,31 @@ rte_intr_free_epoll_fd(struct rte_intr_handle *intr_handle)
@@ -98 +99 @@
- RTE_EXPORT_INTERNAL_SYMBOL(rte_intr_efd_disable)
+ void


More information about the stable mailing list