patch 'net/bnxt: validate index in pool manager API' has been queued to stable release 25.11.5

Kishore Padmanabha kishore.padmanabha at broadcom.com
Thu Dec 3 15:51:24 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/5021152ab85761cccaefc98bbad11d3ac5e440a2
>
> Thanks.
>
> Kevin
>
> ---
> From 5021152ab85761cccaefc98bbad11d3ac5e440a2 Mon Sep 17 00:00:00 2001
> From: Kishore Padmanabha <kishore.padmanabha at broadcom.com>
> Date: Wed, 29 Apr 2026 17:55:34 -0400
> Subject: [PATCH] net/bnxt: validate index in pool manager API
>
> [ upstream commit 39bfd56ba625cf83c0f4483f3e8ceb8ce94a25d3 ]
>
> Validate the pool index in the pool manager APIs so that it cannot go
> out of bounds when setting or getting data from the table-scope pool
> manager.
>
> 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/tpm/cfa_tpm.c | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>
> diff --git a/drivers/net/bnxt/hcapi/cfa_v3/tpm/cfa_tpm.c
> b/drivers/net/bnxt/hcapi/cfa_v3/tpm/cfa_tpm.c
> index 790b6c7e42..b143d045e1 100644
> --- a/drivers/net/bnxt/hcapi/cfa_v3/tpm/cfa_tpm.c
> +++ b/drivers/net/bnxt/hcapi/cfa_v3/tpm/cfa_tpm.c
> @@ -120,4 +120,10 @@ int cfa_tpm_free(void *tpm, uint16_t pool_id)
>         }
>
> +       if (pool_id >= ctx->max_pools) {
> +               CFA_LOG_ERR("pool_id (%u) out of range (max %u)\n",
> +                           pool_id, ctx->max_pools);
> +               return -EINVAL;
> +       }
> +
>         if (ctx->fid_tbl[pool_id] != CFA_INVALID_FID) {
>                 CFA_LOG_ERR("A function (%d) is still using the pool
> (%d)\n",
> @@ -138,4 +144,10 @@ int cfa_tpm_fid_add(void *tpm, uint16_t pool_id,
> uint16_t fid)
>         }
>
> +       if (pool_id >= ctx->max_pools) {
> +               CFA_LOG_ERR("pool_id (%u) out of range (max %u)\n",
> +                           pool_id, ctx->max_pools);
> +               return -EINVAL;
> +       }
> +
>         if (!ba_inuse(ctx->pool_ba, pool_id)) {
>                 CFA_LOG_ERR("Pool id (%d) was not allocated\n", pool_id);
> @@ -164,4 +176,10 @@ int cfa_tpm_fid_rem(void *tpm, uint16_t pool_id,
> uint16_t fid)
>         }
>
> +       if (pool_id >= ctx->max_pools) {
> +               CFA_LOG_ERR("pool_id (%u) out of range (max %u)\n",
> +                           pool_id, ctx->max_pools);
> +               return -EINVAL;
> +       }
> +
>         if (!ba_inuse(ctx->pool_ba, pool_id)) {
>                 CFA_LOG_ERR("Pool id (%d) was not allocated\n", pool_id);
> --
> 2.56.1
>
> ---
>   Diff of the applied patch vs upstream commit (please double-check if
> non-empty:
> ---
> --- -   2026-12-03 12:52:45.401420550 +0000
> +++ 0216-net-bnxt-validate-index-in-pool-manager-API.patch      2026-12-03
> 12:52:39.188835219 +0000
> @@ -1 +1 @@
> -From 39bfd56ba625cf83c0f4483f3e8ceb8ce94a25d3 Mon Sep 17 00:00:00 2001
> +From 5021152ab85761cccaefc98bbad11d3ac5e440a2 Mon Sep 17 00:00:00 2001
> @@ -5,0 +6,2 @@
> +[ upstream commit 39bfd56ba625cf83c0f4483f3e8ceb8ce94a25d3 ]
> +
> @@ -11 +12,0 @@
> -Cc: stable at dpdk.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/stable/attachments/20261203/2cc4e405/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/2cc4e405/attachment.bin>


More information about the stable mailing list