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

Kevin Traynor ktraynor at redhat.com
Fri Nov 21 12:21:14 CET 2025


Hi,

FYI, your patch has been queued to stable release 24.11.4

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/26/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/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/4a531c127f89720480afb3daf869e09028376d9e

Thanks.

Kevin

---
>From 4a531c127f89720480afb3daf869e09028376d9e 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 a5dda1e5f1..5235066e35 100644
--- a/drivers/net/mlx5/linux/mlx5_ethdev_os.c
+++ b/drivers/net/mlx5/linux/mlx5_ethdev_os.c
@@ -512,5 +512,5 @@ 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;
@@ -1966,3 +1966,2 @@ int mlx5_txpp_map_hca_bar(struct rte_eth_dev *dev)
 	return 0;
 }
-
-- 
2.51.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-11-21 11:05:12.347261206 +0000
+++ 0090-net-mlx5-fix-uninitialized-variable.patch	2025-11-21 11:05:09.594201728 +0000
@@ -1 +1 @@
-From 7429374afba9827a43cf2efabce14e27ccc4bdef Mon Sep 17 00:00:00 2001
+From 4a531c127f89720480afb3daf869e09028376d9e 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 a5dda1e5f1..5235066e35 100644
@@ -25 +26 @@
-@@ -513,5 +513,5 @@ mlx5_link_update(struct rte_eth_dev *dev, int wait_to_complete)
+@@ -512,5 +512,5 @@ mlx5_link_update(struct rte_eth_dev *dev, int wait_to_complete)
@@ -32 +33 @@
-@@ -2074,3 +2074,2 @@ int mlx5_txpp_map_hca_bar(struct rte_eth_dev *dev)
+@@ -1966,3 +1966,2 @@ int mlx5_txpp_map_hca_bar(struct rte_eth_dev *dev)



More information about the stable mailing list