patch 'common/cnxk: check Rx queue before configuring flow control' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Nov 16 23:51:42 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 11/18/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/d82587b2394bd45050c43c728033e201fe2635f3
Thanks.
Luca Boccassi
---
>From d82587b2394bd45050c43c728033e201fe2635f3 Mon Sep 17 00:00:00 2001
From: Aarnav JP <ajp at marvell.com>
Date: Mon, 2 Nov 2026 17:51:52 +0530
Subject: [PATCH] common/cnxk: check Rx queue before configuring flow control
[ upstream commit 9e927e99e7e58fa8d961c1e83a8d194e3e037782 ]
nix_fc_rq_config_set() indexes nix->rqs[] with the caller-supplied
fc_cfg->rq_cfg.rq without any bound or NULL check, unlike
roc_nix_rq_init(). An out-of-range rq reads a pointer past the
nb_rx_queues-sized array and then dereferences and writes through it
(rq->tc), and an in-range but uninitialised rq is a NULL deref.
Reject rq >= nb_rx_queues with NIX_ERR_QUEUE_INVALID_RANGE and a NULL
rq with NIX_ERR_PARAM before use, matching the sibling ROC helpers.
Fixes: 78fb5efed869 ("common/cnxk: remove flow control config at queue setup")
Signed-off-by: Aarnav JP <ajp at marvell.com>
---
drivers/common/cnxk/roc_nix_fc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/common/cnxk/roc_nix_fc.c b/drivers/common/cnxk/roc_nix_fc.c
index 0676363c58..845874038a 100644
--- a/drivers/common/cnxk/roc_nix_fc.c
+++ b/drivers/common/cnxk/roc_nix_fc.c
@@ -355,7 +355,12 @@ nix_fc_rq_config_set(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)
struct roc_nix_rq *rq;
int rc;
+ if (fc_cfg->rq_cfg.rq >= nix->nb_rx_queues)
+ return NIX_ERR_QUEUE_INVALID_RANGE;
+
rq = nix->rqs[fc_cfg->rq_cfg.rq];
+ if (rq == NULL)
+ return NIX_ERR_PARAM;
if (rq->sso_ena) {
pool_drop_pct = fc_cfg->rq_cfg.pool_drop_pct;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-16 22:52:17.635958243 +0000
+++ 0028-common-cnxk-check-Rx-queue-before-configuring-flow-c.patch 2026-11-16 22:52:16.456232636 +0000
@@ -1 +1 @@
-From 9e927e99e7e58fa8d961c1e83a8d194e3e037782 Mon Sep 17 00:00:00 2001
+From d82587b2394bd45050c43c728033e201fe2635f3 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 9e927e99e7e58fa8d961c1e83a8d194e3e037782 ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index abf923b722..8164a2ba0e 100644
+index 0676363c58..845874038a 100644
@@ -27 +28 @@
-@@ -358,7 +358,12 @@ nix_fc_rq_config_set(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)
+@@ -355,7 +355,12 @@ nix_fc_rq_config_set(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)
More information about the stable
mailing list