patch 'net/mlx5: fix handling of FCQ allocation failure' has been queued to stable release 25.11.3
Kevin Traynor
ktraynor at redhat.com
Thu Jul 23 19:15:43 CEST 2026
Hi,
FYI, your patch has been queued to stable release 25.11.3
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/27/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/72c41d36932fab5364ff6596dfacac2b89d97744
Thanks.
Kevin
---
>From 72c41d36932fab5364ff6596dfacac2b89d97744 Mon Sep 17 00:00:00 2001
From: Yunjian Wang <wangyunjian at huawei.com>
Date: Fri, 24 Apr 2026 18:48:33 +0800
Subject: [PATCH] net/mlx5: fix handling of FCQ allocation failure
[ upstream commit 8b15fcaefa89e0a238420bac033612b56b027595 ]
A crash is triggered when memory malloc for FCQS fails. Currently,
the abnormal branch releases the txq, and it removes the 'txq_ctrl->obj'
from the linked list, but the 'txq_ctrl->obj' has not actually been
added to the linked list yet. This triggers a null pointer reference
issue.
The call stack is as follows:
Program terminated with signal 11, Segmentation fault.
1210 LIST_REMOVE(txq_ctrl->obj, next);
(gdb) bt
#0 mlx5_txq_release
#1 mlx5_txq_start
#2 mlx5_dev_start
#3 rte_eth_dev_start
#4 member_start
#5 bond_ethdev_start
Fixes: f49f44839df3 ("net/mlx5: share Tx control code")
Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
drivers/net/mlx5/mlx5_trigger.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index 1a2efb804e..2dc566b039 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -98,4 +98,7 @@ mlx5_txq_start(struct rte_eth_dev *dev)
"allocate memory (FCQ).",
dev->data->port_id, i);
+ priv->obj_ops.txq_obj_release(txq_ctrl->obj);
+ mlx5_free(txq_ctrl->obj);
+ txq_ctrl->obj = NULL;
rte_errno = ENOMEM;
goto error;
--
2.55.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-07-23 17:58:00.938279737 +0100
+++ 0080-net-mlx5-fix-handling-of-FCQ-allocation-failure.patch 2026-07-23 17:57:58.690890142 +0100
@@ -1 +1 @@
-From 8b15fcaefa89e0a238420bac033612b56b027595 Mon Sep 17 00:00:00 2001
+From 72c41d36932fab5364ff6596dfacac2b89d97744 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8b15fcaefa89e0a238420bac033612b56b027595 ]
+
@@ -24 +25,0 @@
-Cc: stable at dpdk.org
@@ -33 +34 @@
-index ac966c51b4..f8222387fa 100644
+index 1a2efb804e..2dc566b039 100644
More information about the stable
mailing list