patch 'net/mlx5: fix uninitialized variable' has been queued to stable release 23.11.6

Shani Peretz shperetz at nvidia.com
Thu Dec 25 10:18:54 CET 2025


Hi,

FYI, your patch has been queued to stable release 23.11.6

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/30/25. 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/shanipr/dpdk-stable

This queued commit can be viewed at:
https://github.com/shanipr/dpdk-stable/commit/3ed57372077169c1bfe959ffc4200f8a01f42106

Thanks.

Shani

---
>From 3ed57372077169c1bfe959ffc4200f8a01f42106 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Fri, 14 Nov 2025 09:49:12 -0800
Subject: [PATCH] net/mlx5: fix uninitialized variable

[ upstream commit 7429374afba9827a43cf2efabce14e27ccc4bdef ]

Gcc-16 detects use of uninitialized variable.
If the retry loop exits the code would do memcmp against uninitialized
stack value. Resolve by initializing to zero.

Bugzilla ID: 1823
Fixes: 1256805dd54d ("net/mlx5: move Linux-specific functions")
Fixes: cfee94752b8f ("net/mlx5: fix link status to use wait to complete")

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Raslan Darawsheh <rasland at nvidia.com>
---
 drivers/net/mlx5/linux/mlx5_ethdev_os.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/mlx5/linux/mlx5_ethdev_os.c b/drivers/net/mlx5/linux/mlx5_ethdev_os.c
index ea89ce8e05..a9a12c87dc 100644
--- a/drivers/net/mlx5/linux/mlx5_ethdev_os.c
+++ b/drivers/net/mlx5/linux/mlx5_ethdev_os.c
@@ -647,7 +647,7 @@ int
 mlx5_link_update(struct rte_eth_dev *dev, int wait_to_complete)
 {
 	int ret;
-	struct rte_eth_link dev_link;
+	struct rte_eth_link dev_link = { 0 };
 	time_t start_time = time(NULL);
 	int retry = MLX5_GET_LINK_STATUS_RETRY_COUNT;
 
@@ -2010,4 +2010,3 @@ int mlx5_txpp_map_hca_bar(struct rte_eth_dev *dev)
 		rte_mem_unmap(base, MLX5_ST_SZ_BYTES(initial_seg));
 	return 0;
 }
-
-- 
2.43.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-12-25 11:16:40.926024185 +0200
+++ 0093-net-mlx5-fix-uninitialized-variable.patch	2025-12-25 11:16:36.269797000 +0200
@@ -1 +1 @@
-From 7429374afba9827a43cf2efabce14e27ccc4bdef Mon Sep 17 00:00:00 2001
+From 3ed57372077169c1bfe959ffc4200f8a01f42106 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 7429374afba9827a43cf2efabce14e27ccc4bdef ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index 4d8fbed188..50997c187c 100644
+index ea89ce8e05..a9a12c87dc 100644
@@ -25 +26 @@
-@@ -512,7 +512,7 @@ int
+@@ -647,7 +647,7 @@ int
@@ -34 +35 @@
-@@ -2073,4 +2073,3 @@ int mlx5_txpp_map_hca_bar(struct rte_eth_dev *dev)
+@@ -2010,4 +2010,3 @@ int mlx5_txpp_map_hca_bar(struct rte_eth_dev *dev)


More information about the stable mailing list