patch 'net/bnxt: validate index in pool manager API' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Tue Oct 27 12:51:13 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 10/29/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/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/1913e1affe1f84b995fc9fc39b0de05a95e83ecc
Thanks.
Luca Boccassi
---
>From 1913e1affe1f84b995fc9fc39b0de05a95e83ecc 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 790b6c7e420..b143d045e15 100644
--- a/drivers/net/bnxt/hcapi/cfa_v3/tpm/cfa_tpm.c
+++ b/drivers/net/bnxt/hcapi/cfa_v3/tpm/cfa_tpm.c
@@ -119,6 +119,12 @@ int cfa_tpm_free(void *tpm, uint16_t pool_id)
return -EINVAL;
}
+ 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",
ctx->fid_tbl[pool_id], pool_id);
@@ -137,6 +143,12 @@ int cfa_tpm_fid_add(void *tpm, uint16_t pool_id, uint16_t fid)
return -EINVAL;
}
+ 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);
return -EINVAL;
@@ -163,6 +175,12 @@ int cfa_tpm_fid_rem(void *tpm, uint16_t pool_id, uint16_t fid)
return -EINVAL;
}
+ 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);
return -EINVAL;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-10-27 11:44:00.579240309 +0000
+++ 0179-net-bnxt-validate-index-in-pool-manager-API.patch 2026-10-27 11:43:53.762067125 +0000
@@ -1 +1 @@
-From 39bfd56ba625cf83c0f4483f3e8ceb8ce94a25d3 Mon Sep 17 00:00:00 2001
+From 1913e1affe1f84b995fc9fc39b0de05a95e83ecc Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 39bfd56ba625cf83c0f4483f3e8ceb8ce94a25d3 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 790b6c7e42..b143d045e1 100644
+index 790b6c7e420..b143d045e15 100644
More information about the stable
mailing list