patch 'lpm: fix SVE bulk lookup loop bound for small bursts' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:04:45 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

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

Thanks.

Kevin

---
>From 9f849fc3b9e65486ba180d2f073ef13e8f9936dc Mon Sep 17 00:00:00 2001
From: Rupesh Chiluka <rchiluka at marvell.com>
Date: Tue, 27 Oct 2026 21:44:36 +0530
Subject: [PATCH] lpm: fix SVE bulk lookup loop bound for small bursts

[ upstream commit 5ede9cf98c61940b5030526a69bd4ff2ff293c0e ]

In __rte_lpm_lookup_vec() (SVE), the main loop condition was

    for (i = 0; i < n - vl; i += vl)

where n is uint32_t and vl is uint64_t. When n < vl the subtraction
is done in 64-bit unsigned arithmetic and wraps to a very large
value, so the loop does not terminate at the end of the input array.
It reads past the end of ips[] resulting in a segmentation fault.

Rewrite the condition as "i + vl < n" so no unsigned wrap occurs. The
existing tail handling with svwhilelt_b32() covers the remaining
elements, including n == 0.

Fixes: b29ccbea24ae ("lpm: use SVE for bulk lookup")

Signed-off-by: Rupesh Chiluka <rchiluka at marvell.com>
---
 lib/lpm/rte_lpm_sve.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/lpm/rte_lpm_sve.h b/lib/lpm/rte_lpm_sve.h
index 52b8bd4940..6113269120 100644
--- a/lib/lpm/rte_lpm_sve.h
+++ b/lib/lpm/rte_lpm_sve.h
@@ -27,5 +27,5 @@ __rte_lpm_lookup_vec(const struct rte_lpm *lpm, const uint32_t *ips,
 		next_hops[i] = 0;
 
-	for (i = 0; i < n - vl; i += vl) {
+	for (i = 0; i + vl < n; i += vl) {
 		v_ip = svld1(pg, &ips[i]);
 		/* Get indices for tbl24[] */
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:49.354257995 +0000
+++ 0359-lpm-fix-SVE-bulk-lookup-loop-bound-for-small-bursts.patch	2026-12-03 12:52:39.276444095 +0000
@@ -1 +1 @@
-From 5ede9cf98c61940b5030526a69bd4ff2ff293c0e Mon Sep 17 00:00:00 2001
+From 9f849fc3b9e65486ba180d2f073ef13e8f9936dc Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 5ede9cf98c61940b5030526a69bd4ff2ff293c0e ]
+
@@ -20 +21,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list