<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:12 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/8c4bb747302415f3cb2a6f9eb4a219a7c04a0aa3" rel="noreferrer" target="_blank">https://github.com/kevintraynor/dpdk-stable/commit/8c4bb747302415f3cb2a6f9eb4a219a7c04a0aa3</a><br>
<br>
Thanks.<br>
<br>
Kevin<br>
<br>
---<br>
>From 8c4bb747302415f3cb2a6f9eb4a219a7c04a0aa3 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: Wed, 29 Apr 2026 17:42:45 -0400<br>
Subject: [PATCH] net/bnxt: validate direction index in TPM table<br>
<br>
[ upstream commit b046a64156c2139bca071bf6a29da03050385078 ]<br>
<br>
Validate the direction in cfa_tim_tpm_inst_set() and<br>
cfa_tim_tpm_inst_get() so that a direction taken from a VF2PF<br>
message cannot index past the table scope instance manager's TPM<br>
table. The tsid and region inputs were already range checked.<br>
<br>
Fixes: 80317ff6adfd ("net/bnxt/tf_core: support Thor2")<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: Mohammad Shuab Siddique <<a href="mailto:mohammad-shuab.siddique@broadcom.com" target="_blank">mohammad-shuab.siddique@broadcom.com</a>><br>
---<br>
drivers/net/bnxt/hcapi/cfa_v3/tim/cfa_tim.c | 10 ++++++++++<br>
1 file changed, 10 insertions(+)<br>
<br>
diff --git a/drivers/net/bnxt/hcapi/cfa_v3/tim/cfa_tim.c b/drivers/net/bnxt/hcapi/cfa_v3/tim/cfa_tim.c<br>
index 72302ac73b..6abed2ed2c 100644<br>
--- a/drivers/net/bnxt/hcapi/cfa_v3/tim/cfa_tim.c<br>
+++ b/drivers/net/bnxt/hcapi/cfa_v3/tim/cfa_tim.c<br>
@@ -84,4 +84,9 @@ int cfa_tim_tpm_inst_set(void *tim, uint8_t tsid, uint8_t region_id,<br>
}<br>
<br>
+ if (dir < 0 || dir >= CFA_DIR_MAX) {<br>
+ CFA_LOG_ERR("dir = %d\n", dir);<br>
+ return -EINVAL;<br>
+ }<br>
+<br>
if (!(CFA_CHECK_UPPER_BOUNDS(tsid, ctx->max_tsid - 1) &&<br>
CFA_CHECK_UPPER_BOUNDS(region_id, ctx->max_regions - 1))) {<br>
@@ -106,4 +111,9 @@ int cfa_tim_tpm_inst_get(void *tim, uint8_t tsid, uint8_t region_id,<br>
}<br>
<br>
+ if (dir < 0 || dir >= CFA_DIR_MAX) {<br>
+ CFA_LOG_ERR("dir = %d\n", dir);<br>
+ return -EINVAL;<br>
+ }<br>
+<br>
if (!(CFA_CHECK_UPPER_BOUNDS(tsid, ctx->max_tsid - 1) &&<br>
CFA_CHECK_UPPER_BOUNDS(region_id, ctx->max_regions - 1))) {<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:45.427738908 +0000<br>
+++ 0217-net-bnxt-validate-direction-index-in-TPM-table.patch 2026-12-03 12:52:39.188949230 +0000<br>
@@ -1 +1 @@<br>
-From b046a64156c2139bca071bf6a29da03050385078 Mon Sep 17 00:00:00 2001<br>
+From 8c4bb747302415f3cb2a6f9eb4a219a7c04a0aa3 Mon Sep 17 00:00:00 2001<br>
@@ -5,0 +6,2 @@<br>
+[ upstream commit b046a64156c2139bca071bf6a29da03050385078 ]<br>
+<br>
@@ -12 +13,0 @@<br>
-Cc: <a href="mailto:stable@dpdk.org" target="_blank">stable@dpdk.org</a><br>
<br>
</blockquote></div>