<div dir="ltr"><div>Please go ahead with the merge.</div><div><br></div><div>Thanks,</div><div>Kishore</div><div></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Dec 3, 2026 at 8:16 AM Kevin Traynor <<a href="mailto:ktraynor@redhat.com">ktraynor@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
FYI, your patch has been queued to stable release 25.11.5<br>
<br>
Note it hasn't been pushed to <a href="http://dpdk.org/browse/dpdk-stable" rel="noreferrer" target="_blank">http://dpdk.org/browse/dpdk-stable</a> yet.<br>
It will be pushed if I get no objections before 12/08/26. So please<br>
shout if anyone has objections.<br>
<br>
Also note that after the patch there's a diff of the upstream commit vs the<br>
patch applied to the branch. This will indicate if there was any rebasing<br>
needed to apply to the stable branch. If there were code changes for rebasing<br>
(ie: not only metadata diffs), please double check that the rebase was<br>
correctly done.<br>
<br>
Queued patches are on a temporary branch at:<br>
<a href="https://github.com/kevintraynor/dpdk-stable" rel="noreferrer" target="_blank">https://github.com/kevintraynor/dpdk-stable</a><br>
<br>
This queued commit can be viewed at:<br>
<a href="https://github.com/kevintraynor/dpdk-stable/commit/6531905ed3893a1e2d19f112c06f9d6fd96c8770" rel="noreferrer" target="_blank">https://github.com/kevintraynor/dpdk-stable/commit/6531905ed3893a1e2d19f112c06f9d6fd96c8770</a><br>
<br>
Thanks.<br>
<br>
Kevin<br>
<br>
---<br>
>From 6531905ed3893a1e2d19f112c06f9d6fd96c8770 Mon Sep 17 00:00:00 2001<br>
From: Kishore Padmanabha <<a href="mailto:kishore.padmanabha@broadcom.com" target="_blank">kishore.padmanabha@broadcom.com</a>><br>
Date: Mon, 5 Oct 2026 15:25:19 -0500<br>
Subject: [PATCH] net/bnxt: fix hot upgrade lock handling<br>
<br>
[ upstream commit e942f59d72a886556cae60013a5d4cfdcaf276d4 ]<br>
<br>
Track whether the ULP context lock was actually acquired<br>
during hot-upgrade failover cleanup, and only release it if so,<br>
instead of releasing unconditionally on every cleanup path. Releasing<br>
a lock that was never acquired corrupts the lock state and can lead<br>
to a use-after-free on a later acquire.<br>
<br>
Fixes: eeefaecba000 ("net/bnxt/tf_ulp: support hot upgrade")<br>
<br>
Signed-off-by: Kishore Padmanabha <<a href="mailto:kishore.padmanabha@broadcom.com" target="_blank">kishore.padmanabha@broadcom.com</a>><br>
Signed-off-by: Manish Kurup <<a href="mailto:manish.kurup@broadcom.com" target="_blank">manish.kurup@broadcom.com</a>><br>
---<br>
 drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c | 5 ++++-<br>
 1 file changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c b/drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c<br>
index be14b65804..694de307de 100644<br>
--- a/drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c<br>
+++ b/drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c<br>
@@ -61,4 +61,5 @@ ulp_tfc_hot_upgrade_mgr_timer_cb(void *arg)<br>
        uint16_t fw_fid = 0;<br>
        int32_t rc = 0;<br>
+       bool ctx_locked = false;<br>
<br>
        ulp_ctx = bnxt_ulp_cntxt_entry_acquire(arg);<br>
@@ -68,4 +69,5 @@ ulp_tfc_hot_upgrade_mgr_timer_cb(void *arg)<br>
                return;<br>
        }<br>
+       ctx_locked = true;<br>
<br>
        tfcp = bnxt_ulp_cntxt_tfcp_get(ulp_ctx);<br>
@@ -121,5 +123,6 @@ ulp_tfc_hot_upgrade_mgr_timer_cb(void *arg)<br>
<br>
 cleanup:<br>
-       bnxt_ulp_cntxt_entry_release();<br>
+       if (ctx_locked)<br>
+               bnxt_ulp_cntxt_entry_release();<br>
        if (restart_timer)<br>
                rte_eal_alarm_set(US_PER_S * ULP_HOT_UPGRADE_TIMER_SEC,<br>
-- <br>
2.56.1<br>
<br>
---<br>
  Diff of the applied patch vs upstream commit (please double-check if non-empty:<br>
---<br>
--- -   2026-12-03 12:52:50.111282333 +0000<br>
+++ 0386-net-bnxt-fix-hot-upgrade-lock-handling.patch   2026-12-03 12:52:39.297553427 +0000<br>
@@ -1 +1 @@<br>
-From e942f59d72a886556cae60013a5d4cfdcaf276d4 Mon Sep 17 00:00:00 2001<br>
+From 6531905ed3893a1e2d19f112c06f9d6fd96c8770 Mon Sep 17 00:00:00 2001<br>
@@ -5,0 +6,2 @@<br>
+[ upstream commit e942f59d72a886556cae60013a5d4cfdcaf276d4 ]<br>
+<br>
@@ -13 +14,0 @@<br>
-Cc: <a href="mailto:stable@dpdk.org" target="_blank">stable@dpdk.org</a><br>
<br>
</blockquote></div>