patch 'net/bnxt/tf_ulp: fix tunnel list memory corruption' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Tue Oct 27 12:51:15 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 10/29/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/35eb0fbaa1a9162038d4d111419a5207d4078c10
Thanks.
Luca Boccassi
---
>From 35eb0fbaa1a9162038d4d111419a5207d4078c10 Mon Sep 17 00:00:00 2001
From: Kishore Padmanabha <kishore.padmanabha at broadcom.com>
Date: Fri, 15 May 2026 12:13:03 -0400
Subject: [PATCH] net/bnxt/tf_ulp: fix tunnel list memory corruption
[ upstream commit 57c816b0841241de463eb43480ddbc4033c6f352 ]
In ulp_app_tun_search_entry(), when a matching tunnel entry is found
at index i, the reference count was incremented on
tun_ent_list[free_entry] instead of tun_ent_list[i]. free_entry is -1
when no unused slot precedes the match (always the case when the table
is full), so this wrote before the start of the array; otherwise it
bumped the count of an unused slot and left the matched entry's count
unchanged. Use the matching index.
Fixes: bdf4a3c6316b ("net/bnxt: support tunnel offload")
Signed-off-by: Kishore Padmanabha <kishore.padmanabha at broadcom.com>
Signed-off-by: Manish Kurup <manish.kurup at broadcom.com>
Signed-off-by: Mohammad Shuab Siddique <mohammad-shuab.siddique at broadcom.com>
---
drivers/net/bnxt/tf_ulp/ulp_tun.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/tf_ulp/ulp_tun.c b/drivers/net/bnxt/tf_ulp/ulp_tun.c
index 7ebe81c4eaa..1cc821eb84b 100644
--- a/drivers/net/bnxt/tf_ulp/ulp_tun.c
+++ b/drivers/net/bnxt/tf_ulp/ulp_tun.c
@@ -33,7 +33,7 @@ ulp_app_tun_search_entry(struct bnxt_ulp_context *ulp_ctx,
app_tunnel,
sizeof(struct rte_flow_tunnel))) {
*tun_entry = &tun_ent_list[i];
- tun_ent_list[free_entry].ref_cnt++;
+ tun_ent_list[i].ref_cnt++;
return rc;
}
}
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-10-27 11:44:00.648520260 +0000
+++ 0181-net-bnxt-tf_ulp-fix-tunnel-list-memory-corruption.patch 2026-10-27 11:43:53.766067248 +0000
@@ -1 +1 @@
-From 57c816b0841241de463eb43480ddbc4033c6f352 Mon Sep 17 00:00:00 2001
+From 35eb0fbaa1a9162038d4d111419a5207d4078c10 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 57c816b0841241de463eb43480ddbc4033c6f352 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index b90b4bf252..8ecdac0dcc 100644
+index 7ebe81c4eaa..1cc821eb84b 100644
More information about the stable
mailing list