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

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jul 20 19:03:58 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/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/0880b002cea0e6f8c036caed1b31be8532962f28

Thanks.

Luca Boccassi

---
>From 0880b002cea0e6f8c036caed1b31be8532962f28 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 06ac0be3ff..812230177e 100644
--- a/drivers/net/dpaa/dpaa_rxtx.c
+++ b/drivers/net/dpaa/dpaa_rxtx.c
@@ -997,6 +997,7 @@ dpaa_eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf,
 	if (temp->buf_len < ((mbuf->nb_segs * sizeof(struct qm_sg_entry))
 				+ temp->data_off)) {
 		DPAA_PMD_ERR("Insufficient space in mbuf for SG entries");
+		rte_pktmbuf_free(temp);
 		return -1;
 	}
 
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-20 18:03:26.031339997 +0100
+++ 0014-net-dpaa-fix-mbuf-leak-in-SG-FD-creation.patch	2026-07-20 18:03:25.508443296 +0100
@@ -1 +1 @@
-From be693764649787aef0055559c42aa2b22bc4d0d5 Mon Sep 17 00:00:00 2001
+From 0880b002cea0e6f8c036caed1b31be8532962f28 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit be693764649787aef0055559c42aa2b22bc4d0d5 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 3734496d6f..272960b6e3 100644
+index 06ac0be3ff..812230177e 100644
@@ -23 +24 @@
-@@ -992,6 +992,7 @@ dpaa_eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf,
+@@ -997,6 +997,7 @@ dpaa_eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf,


More information about the stable mailing list