patch 'net/dpaa2: add SG table walk upper bound in Rx' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Wed Apr 1 13:56:54 CEST 2026
Hi,
FYI, your patch has been queued to stable release 25.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/03/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/da88b40f70af61c696b48ff3ccc032f65603cf1f
Thanks.
Kevin
---
>From da88b40f70af61c696b48ff3ccc032f65603cf1f Mon Sep 17 00:00:00 2001
From: Maxime Leroy <maxime at leroys.fr>
Date: Wed, 25 Mar 2026 21:45:40 +0100
Subject: [PATCH] net/dpaa2: add SG table walk upper bound in Rx
[ upstream commit e8c04ef2182ec61fbcb639f1089e2ab63144d3ab ]
If hardware or corrupt DMA data fails to set the FINAL bit in the
scatter-gather table, the while loop in eth_sg_fd_to_mbuf() walks
past the end of the SGT buffer. Add DPAA2_MAX_SGS as an upper bound.
Not tested, found by code review.
Fixes: 774e9ea91992 ("net/dpaa2: add support for multi seg buffers")
Reported-by: Stephen Hemminger <stephen at networkplumber.org>
Signed-off-by: Maxime Leroy <maxime at leroys.fr>
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
drivers/net/dpaa2/dpaa2_rxtx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c
index 8275ba9780..b316e23e87 100644
--- a/drivers/net/dpaa2/dpaa2_rxtx.c
+++ b/drivers/net/dpaa2/dpaa2_rxtx.c
@@ -336,5 +336,5 @@ eth_sg_fd_to_mbuf(const struct qbman_fd *fd,
#endif
cur_seg = first_seg;
- while (!DPAA2_SG_IS_FINAL(sge)) {
+ while (!DPAA2_SG_IS_FINAL(sge) && i < DPAA2_MAX_SGS) {
sge = &sgt[i++];
sg_addr = (size_t)DPAA2_IOVA_TO_VADDR(
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-04-01 12:56:52.465452137 +0100
+++ 0016-net-dpaa2-add-SG-table-walk-upper-bound-in-Rx.patch 2026-04-01 12:56:52.018524076 +0100
@@ -1 +1 @@
-From e8c04ef2182ec61fbcb639f1089e2ab63144d3ab Mon Sep 17 00:00:00 2001
+From da88b40f70af61c696b48ff3ccc032f65603cf1f Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e8c04ef2182ec61fbcb639f1089e2ab63144d3ab ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list