patch 'net/bnxt: fix context DMA array allocation size' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Tue Oct 27 12:49:51 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/c53d6a82e210b02556ac2c6b25d5b054e7f448e0
Thanks.
Luca Boccassi
---
>From c53d6a82e210b02556ac2c6b25d5b054e7f448e0 Mon Sep 17 00:00:00 2001
From: Evgeny Sokolov <evgeny.sokolov at infotecs.ru>
Date: Tue, 15 Sep 2026 08:56:06 +0000
Subject: [PATCH] net/bnxt: fix context DMA array allocation size
[ upstream commit 4416758ae996f04b9ab950f5c8b8f3eec21c4df6 ]
ctx_dma_arr stores rte_iova_t entries, but the allocation size was
calculated using sizeof(rte_iova_t *) instead of sizeof(rte_iova_t).
Use the correct element size when allocating the array to match the
actual data type stored in ctx_dma_arr.
Fixes: 4371b402c7bd ("net/bnxt: fix array overflow")
Signed-off-by: Evgeny Sokolov <evgeny.sokolov at infotecs.ru>
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
---
drivers/net/bnxt/bnxt_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 5603cff823d..9547c5cd548 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -4994,7 +4994,7 @@ static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp,
snprintf(name, RTE_MEMZONE_NAMESIZE, "bnxt_ctx_dma_arr%s_%x_%d",
suffix, idx, bp->eth_dev->data->port_id);
- ctx_pg->ctx_dma_arr = rte_zmalloc(name, sizeof(rte_iova_t *) * rmem->nr_pages, 0);
+ ctx_pg->ctx_dma_arr = rte_zmalloc(name, sizeof(rte_iova_t) * rmem->nr_pages, 0);
if (ctx_pg->ctx_dma_arr == NULL)
return -ENOMEM;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-10-27 11:43:57.467805507 +0000
+++ 0097-net-bnxt-fix-context-DMA-array-allocation-size.patch 2026-10-27 11:43:53.618062667 +0000
@@ -1 +1 @@
-From 4416758ae996f04b9ab950f5c8b8f3eec21c4df6 Mon Sep 17 00:00:00 2001
+From c53d6a82e210b02556ac2c6b25d5b054e7f448e0 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 4416758ae996f04b9ab950f5c8b8f3eec21c4df6 ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index 51dbb50b8b..4d4349457c 100644
+index 5603cff823d..9547c5cd548 100644
@@ -25 +26 @@
-@@ -5068,7 +5068,7 @@ static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp,
+@@ -4994,7 +4994,7 @@ static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp,
More information about the stable
mailing list