patch 'interrupts: fix event array copy in duplicated instance' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:02:40 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/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/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/c505470a90f2c2d84f0b08f02f29903ec6066e2c

Thanks.

Kevin

---
>From c505470a90f2c2d84f0b08f02f29903ec6066e2c Mon Sep 17 00:00:00 2001
From: Anatoly Burakov <anatoly.burakov at intel.com>
Date: Fri, 23 Oct 2026 14:51:31 +0100
Subject: [PATCH] interrupts: fix event array copy in duplicated instance

[ upstream commit 2941c9819b6da261c6a402d401818da0c396f56d ]

A duplicated interrupt handle is allocated with the default event array
size, but the source may have been grown with rte_intr_event_list_update()
when the device has more vectors than the default. The duplicate then
reports the default nb_intr and its arrays are too small for the source
contents.

Grow the duplicate to the size of the source before copying.

Besides, the event FD and epoll event arrays are copied using the number
of entries as a byte count, so only a fraction of the entries make it
into the duplicate.

Copy the arrays by element size.

Fixes: b7c984291611 ("interrupts: add allocator and accessors")

Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
Acked-by: David Marchand <david.marchand at redhat.com>
---
 lib/eal/common/eal_common_interrupts.c | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/lib/eal/common/eal_common_interrupts.c b/lib/eal/common/eal_common_interrupts.c
index b42fa862f3..e32faadfab 100644
--- a/lib/eal/common/eal_common_interrupts.c
+++ b/lib/eal/common/eal_common_interrupts.c
@@ -111,15 +111,23 @@ struct rte_intr_handle *rte_intr_instance_dup(const struct rte_intr_handle *src)
 
 	intr_handle = rte_intr_instance_alloc(src->alloc_flags);
-	if (intr_handle != NULL) {
-		intr_handle->fd = src->fd;
-		intr_handle->dev_fd = src->dev_fd;
-		intr_handle->type = src->type;
-		intr_handle->max_intr = src->max_intr;
-		intr_handle->nb_efd = src->nb_efd;
-		intr_handle->efd_counter_size = src->efd_counter_size;
-		memcpy(intr_handle->efds, src->efds, src->nb_intr);
-		memcpy(intr_handle->elist, src->elist, src->nb_intr);
+	if (intr_handle == NULL)
+		return NULL;
+
+	/* The source may have been grown beyond the default array size. */
+	if (src->nb_intr > intr_handle->nb_intr &&
+			rte_intr_event_list_update(intr_handle, src->nb_intr) != 0) {
+		rte_intr_instance_free(intr_handle);
+		return NULL;
 	}
 
+	intr_handle->fd = src->fd;
+	intr_handle->dev_fd = src->dev_fd;
+	intr_handle->type = src->type;
+	intr_handle->max_intr = src->max_intr;
+	intr_handle->nb_efd = src->nb_efd;
+	intr_handle->efd_counter_size = src->efd_counter_size;
+	memcpy(intr_handle->efds, src->efds, src->nb_intr * sizeof(*src->efds));
+	memcpy(intr_handle->elist, src->elist, src->nb_intr * sizeof(*src->elist));
+
 	return intr_handle;
 }
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:45.888745509 +0000
+++ 0234-interrupts-fix-event-array-copy-in-duplicated-instan.patch	2026-12-03 12:52:39.194540260 +0000
@@ -1 +1 @@
-From 2941c9819b6da261c6a402d401818da0c396f56d Mon Sep 17 00:00:00 2001
+From c505470a90f2c2d84f0b08f02f29903ec6066e2c Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 2941c9819b6da261c6a402d401818da0c396f56d ]
+
@@ -21 +22,0 @@
-Cc: stable at dpdk.org
@@ -30 +31 @@
-index 6368ef1771..cf56f96721 100644
+index b42fa862f3..e32faadfab 100644
@@ -33 +34 @@
-@@ -116,15 +116,23 @@ struct rte_intr_handle *rte_intr_instance_dup(const struct rte_intr_handle *src)
+@@ -111,15 +111,23 @@ struct rte_intr_handle *rte_intr_instance_dup(const struct rte_intr_handle *src)



More information about the stable mailing list