patch 'net/bnxt: fix hot upgrade lock handling' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:05:12 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/6531905ed3893a1e2d19f112c06f9d6fd96c8770

Thanks.

Kevin

---
>From 6531905ed3893a1e2d19f112c06f9d6fd96c8770 Mon Sep 17 00:00:00 2001
From: Kishore Padmanabha <kishore.padmanabha at broadcom.com>
Date: Mon, 5 Oct 2026 15:25:19 -0500
Subject: [PATCH] net/bnxt: fix hot upgrade lock handling

[ upstream commit e942f59d72a886556cae60013a5d4cfdcaf276d4 ]

Track whether the ULP context lock was actually acquired
during hot-upgrade failover cleanup, and only release it if so,
instead of releasing unconditionally on every cleanup path. Releasing
a lock that was never acquired corrupts the lock state and can lead
to a use-after-free on a later acquire.

Fixes: eeefaecba000 ("net/bnxt/tf_ulp: support hot upgrade")

Signed-off-by: Kishore Padmanabha <kishore.padmanabha at broadcom.com>
Signed-off-by: Manish Kurup <manish.kurup at broadcom.com>
---
 drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c b/drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c
index be14b65804..694de307de 100644
--- a/drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c
+++ b/drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c
@@ -61,4 +61,5 @@ ulp_tfc_hot_upgrade_mgr_timer_cb(void *arg)
 	uint16_t fw_fid = 0;
 	int32_t rc = 0;
+	bool ctx_locked = false;
 
 	ulp_ctx = bnxt_ulp_cntxt_entry_acquire(arg);
@@ -68,4 +69,5 @@ ulp_tfc_hot_upgrade_mgr_timer_cb(void *arg)
 		return;
 	}
+	ctx_locked = true;
 
 	tfcp = bnxt_ulp_cntxt_tfcp_get(ulp_ctx);
@@ -121,5 +123,6 @@ ulp_tfc_hot_upgrade_mgr_timer_cb(void *arg)
 
 cleanup:
-	bnxt_ulp_cntxt_entry_release();
+	if (ctx_locked)
+		bnxt_ulp_cntxt_entry_release();
 	if (restart_timer)
 		rte_eal_alarm_set(US_PER_S * ULP_HOT_UPGRADE_TIMER_SEC,
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:50.111282333 +0000
+++ 0386-net-bnxt-fix-hot-upgrade-lock-handling.patch	2026-12-03 12:52:39.297553427 +0000
@@ -1 +1 @@
-From e942f59d72a886556cae60013a5d4cfdcaf276d4 Mon Sep 17 00:00:00 2001
+From 6531905ed3893a1e2d19f112c06f9d6fd96c8770 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e942f59d72a886556cae60013a5d4cfdcaf276d4 ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list