patch 'net/dpaa: fix mbuf leak in SG FD creation' has been queued to stable release 25.11.3

Kevin Traynor ktraynor at redhat.com
Thu Jul 30 11:17:05 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/04/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/3dcccb0f15d78b82168ba0a50713af53bf55a62a

Thanks.

Kevin

---
>From 3dcccb0f15d78b82168ba0a50713af53bf55a62a Mon Sep 17 00:00:00 2001
From: Hemant Agrawal <hemant.agrawal at nxp.com>
Date: Mon, 13 Jul 2026 15:47:46 +0530
Subject: [PATCH] net/dpaa: fix mbuf leak in SG FD creation

[ upstream commit be693764649787aef0055559c42aa2b22bc4d0d5 ]

In dpaa_eth_mbuf_to_sg_fd(), when the allocated temp mbuf does not
have sufficient space for the SG entries, the function returned -1
without freeing 'temp', causing a memory leak. Free 'temp' before
returning the error.

Fixes: 8cffdcbe85aa ("net/dpaa: support scattered Rx")

Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
 drivers/net/dpaa/dpaa_rxtx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c
index 3734496d6f..272960b6e3 100644
--- a/drivers/net/dpaa/dpaa_rxtx.c
+++ b/drivers/net/dpaa/dpaa_rxtx.c
@@ -993,4 +993,5 @@ dpaa_eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf,
 				+ temp->data_off)) {
 		DPAA_PMD_ERR("Insufficient space in mbuf for SG entries");
+		rte_pktmbuf_free(temp);
 		return -1;
 	}
-- 
2.55.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-30 10:16:03.909889480 +0100
+++ 0086-net-dpaa-fix-mbuf-leak-in-SG-FD-creation.patch	2026-07-30 10:16:01.508627881 +0100
@@ -1 +1 @@
-From be693764649787aef0055559c42aa2b22bc4d0d5 Mon Sep 17 00:00:00 2001
+From 3dcccb0f15d78b82168ba0a50713af53bf55a62a Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit be693764649787aef0055559c42aa2b22bc4d0d5 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list