patch 'common/cnxk: check Rx queue before configuring flow control' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:05:19 CET 2026
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/ed51df6c9d60d9485e3edabffef9ebe084d43cdf
Thanks.
Kevin
---
>From ed51df6c9d60d9485e3edabffef9ebe084d43cdf 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 ddabd15a5d..0b2873b2b5 100644
--- a/drivers/common/cnxk/roc_nix_fc.c
+++ b/drivers/common/cnxk/roc_nix_fc.c
@@ -357,5 +357,10 @@ nix_fc_rq_config_set(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)
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) {
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:50.304241384 +0000
+++ 0393-common-cnxk-check-Rx-queue-before-configuring-flow-c.patch 2026-12-03 12:52:39.300892911 +0000
@@ -1 +1 @@
-From 9e927e99e7e58fa8d961c1e83a8d194e3e037782 Mon Sep 17 00:00:00 2001
+From ed51df6c9d60d9485e3edabffef9ebe084d43cdf 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 ddabd15a5d..0b2873b2b5 100644
@@ -27 +28 @@
-@@ -359,5 +359,10 @@ nix_fc_rq_config_set(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)
+@@ -357,5 +357,10 @@ nix_fc_rq_config_set(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)
More information about the stable
mailing list