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

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jul 6 12:20:35 CEST 2026


Hi,

FYI, your patch has been queued to stable release 24.11.7

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

Thanks.

Luca Boccassi

---
>From 45a15bdcf63cb25296dfdcbf8a34c68956b12ff7 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 fb7220dd2c..32bac37b7f 100644
--- a/lib/eal/common/eal_common_proc.c
+++ b/lib/eal/common/eal_common_proc.c
@@ -1186,6 +1186,8 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,
 		/* if we couldn't send anything, clean up */
 		if (ret != 0)
 			goto fail;
+		if (!dummy_used)
+			free(dummy);
 		return 0;
 	}
 
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-03 12:55:48.326318906 +0100
+++ 0043-ipc-fix-memory-leak-in-async-secondary-path.patch	2026-07-03 12:55:46.674574086 +0100
@@ -1 +1 @@
-From 41ee2c1033dbccdb3dfc515e36f15a23a85acbb2 Mon Sep 17 00:00:00 2001
+From 45a15bdcf63cb25296dfdcbf8a34c68956b12ff7 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 fb7220dd2c..32bac37b7f 100644
@@ -26 +27 @@
-@@ -1211,6 +1211,8 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,
+@@ -1186,6 +1186,8 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,


More information about the stable mailing list