patch 'net/bnxt: validate direction index in TPM table' has been queued to stable release 25.11.5
Kishore Padmanabha
kishore.padmanabha at broadcom.com
Thu Dec 3 15:51:06 CET 2026
Please go ahead with the merge.
Thanks,
Kishore
On Thu, Dec 3, 2026 at 8:12 AM Kevin Traynor <ktraynor at redhat.com> wrote:
> 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/8c4bb747302415f3cb2a6f9eb4a219a7c04a0aa3
>
> Thanks.
>
> Kevin
>
> ---
> From 8c4bb747302415f3cb2a6f9eb4a219a7c04a0aa3 Mon Sep 17 00:00:00 2001
> From: Kishore Padmanabha <kishore.padmanabha at broadcom.com>
> Date: Wed, 29 Apr 2026 17:42:45 -0400
> Subject: [PATCH] net/bnxt: validate direction index in TPM table
>
> [ upstream commit b046a64156c2139bca071bf6a29da03050385078 ]
>
> Validate the direction in cfa_tim_tpm_inst_set() and
> cfa_tim_tpm_inst_get() so that a direction taken from a VF2PF
> message cannot index past the table scope instance manager's TPM
> table. The tsid and region inputs were already range checked.
>
> Fixes: 80317ff6adfd ("net/bnxt/tf_core: support Thor2")
>
> Signed-off-by: Kishore Padmanabha <kishore.padmanabha at broadcom.com>
> Signed-off-by: Mohammad Shuab Siddique <
> mohammad-shuab.siddique at broadcom.com>
> ---
> drivers/net/bnxt/hcapi/cfa_v3/tim/cfa_tim.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/net/bnxt/hcapi/cfa_v3/tim/cfa_tim.c
> b/drivers/net/bnxt/hcapi/cfa_v3/tim/cfa_tim.c
> index 72302ac73b..6abed2ed2c 100644
> --- a/drivers/net/bnxt/hcapi/cfa_v3/tim/cfa_tim.c
> +++ b/drivers/net/bnxt/hcapi/cfa_v3/tim/cfa_tim.c
> @@ -84,4 +84,9 @@ int cfa_tim_tpm_inst_set(void *tim, uint8_t tsid,
> uint8_t region_id,
> }
>
> + if (dir < 0 || dir >= CFA_DIR_MAX) {
> + CFA_LOG_ERR("dir = %d\n", dir);
> + return -EINVAL;
> + }
> +
> if (!(CFA_CHECK_UPPER_BOUNDS(tsid, ctx->max_tsid - 1) &&
> CFA_CHECK_UPPER_BOUNDS(region_id, ctx->max_regions - 1))) {
> @@ -106,4 +111,9 @@ int cfa_tim_tpm_inst_get(void *tim, uint8_t tsid,
> uint8_t region_id,
> }
>
> + if (dir < 0 || dir >= CFA_DIR_MAX) {
> + CFA_LOG_ERR("dir = %d\n", dir);
> + return -EINVAL;
> + }
> +
> if (!(CFA_CHECK_UPPER_BOUNDS(tsid, ctx->max_tsid - 1) &&
> CFA_CHECK_UPPER_BOUNDS(region_id, ctx->max_regions - 1))) {
> --
> 2.56.1
>
> ---
> Diff of the applied patch vs upstream commit (please double-check if
> non-empty:
> ---
> --- - 2026-12-03 12:52:45.427738908 +0000
> +++ 0217-net-bnxt-validate-direction-index-in-TPM-table.patch 2026-12-03
> 12:52:39.188949230 +0000
> @@ -1 +1 @@
> -From b046a64156c2139bca071bf6a29da03050385078 Mon Sep 17 00:00:00 2001
> +From 8c4bb747302415f3cb2a6f9eb4a219a7c04a0aa3 Mon Sep 17 00:00:00 2001
> @@ -5,0 +6,2 @@
> +[ upstream commit b046a64156c2139bca071bf6a29da03050385078 ]
> +
> @@ -12 +13,0 @@
> -Cc: stable at dpdk.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/stable/attachments/20261203/011cb8b1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5493 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mails.dpdk.org/archives/stable/attachments/20261203/011cb8b1/attachment.bin>
More information about the stable
mailing list