patch 'net/mlx5: fix null dereference in Tx queue start' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Thu Mar 19 11:02:26 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/23/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/ae7dcc486fdbf09a9f9657d75e096abc2217a470
Thanks.
Kevin
---
>From ae7dcc486fdbf09a9f9657d75e096abc2217a470 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Tue, 17 Feb 2026 07:04:59 -0800
Subject: [PATCH] net/mlx5: fix null dereference in Tx queue start
[ upstream commit c3a666ff87cb5c6f121118191d6bff9e0d3777c3 ]
mlx5_txq_get() can return NULL for an unconfigured queue index,
but the result is dereferenced to initialise txq_data before the
NULL check on the following line. Move the txq_data assignment
after the NULL guard.
Fixes: 6f356d3840e6 ("net/mlx5: pass DevX object info in Tx queue start")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
drivers/net/mlx5/mlx5_trigger.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index b38ba9022e..1a2efb804e 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -60,8 +60,9 @@ mlx5_txq_start(struct rte_eth_dev *dev)
for (i = 0; i != priv->txqs_n; ++i) {
struct mlx5_txq_ctrl *txq_ctrl = mlx5_txq_get(dev, i);
- struct mlx5_txq_data *txq_data = &txq_ctrl->txq;
+ struct mlx5_txq_data *txq_data;
if (!txq_ctrl)
continue;
+ txq_data = &txq_ctrl->txq;
if (txq_data->elts_n != cnt) {
mlx5_txq_release(dev, i);
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-19 10:01:07.957564834 +0000
+++ 0028-net-mlx5-fix-null-dereference-in-Tx-queue-start.patch 2026-03-19 10:01:07.093331262 +0000
@@ -1 +1 @@
-From c3a666ff87cb5c6f121118191d6bff9e0d3777c3 Mon Sep 17 00:00:00 2001
+From ae7dcc486fdbf09a9f9657d75e096abc2217a470 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit c3a666ff87cb5c6f121118191d6bff9e0d3777c3 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index f155b1a7a0..a070aaecfd 100644
+index b38ba9022e..1a2efb804e 100644
More information about the stable
mailing list