patch 'ipc: fix memory leak in async secondary path' has been queued to stable release 25.11.3

Kevin Traynor ktraynor at redhat.com
Tue Jul 28 17:56:48 CEST 2026


Hi,

FYI, your patch has been queued to stable release 25.11.3

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

Thanks.

Kevin

---
>From 26b3fa8d264b17b40fc87c3d80fd3e5b5a943ca2 Mon Sep 17 00:00:00 2001
From: Anatoly Burakov <anatoly.burakov at intel.com>
Date: Fri, 26 Jun 2026 11:34:00 +0100
Subject: [PATCH] ipc: fix memory leak in async secondary path

[ upstream commit 41ee2c1033dbccdb3dfc515e36f15a23a85acbb2 ]

When rte_mp_request_async() succeeds on the secondary process path, the
dummy request is freed only if it was inserted into the queue. However,
when the actual request was sent successfully (nb_sent > 0), the dummy is
not used and the function returns without freeing it.

Free dummy before returning on the success path when it was not inserted
into the queue.

Fixes: f05e26051c15 ("eal: add IPC asynchronous request")

Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
 lib/eal/common/eal_common_proc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/eal/common/eal_common_proc.c b/lib/eal/common/eal_common_proc.c
index ce18dbc558..3575f35889 100644
--- a/lib/eal/common/eal_common_proc.c
+++ b/lib/eal/common/eal_common_proc.c
@@ -1192,4 +1192,6 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,
 		if (ret != 0)
 			goto fail;
+		if (!dummy_used)
+			free(dummy);
 		return 0;
 	}
-- 
2.55.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-28 16:54:53.066631804 +0100
+++ 0078-ipc-fix-memory-leak-in-async-secondary-path.patch	2026-07-28 16:54:50.834760820 +0100
@@ -1 +1 @@
-From 41ee2c1033dbccdb3dfc515e36f15a23a85acbb2 Mon Sep 17 00:00:00 2001
+From 26b3fa8d264b17b40fc87c3d80fd3e5b5a943ca2 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 41ee2c1033dbccdb3dfc515e36f15a23a85acbb2 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index 5c981f9da3..63cfacc8d5 100644
+index ce18dbc558..3575f35889 100644
@@ -26 +27 @@
-@@ -1212,4 +1212,6 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,
+@@ -1192,4 +1192,6 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,



More information about the stable mailing list