patch 'net/mlx4: replace strncpy with strlcpy' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Tue Oct 27 12:49:20 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 10/29/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/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/4decf7296f14b10e39b1a0521fd9a449cde1f4cd
Thanks.
Luca Boccassi
---
>From 4decf7296f14b10e39b1a0521fd9a449cde1f4cd Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Wed, 24 Jun 2026 11:36:50 +0100
Subject: [PATCH] net/mlx4: replace strncpy with strlcpy
[ upstream commit b87317f6d58103820d448d165f6a3d0333a593a3 ]
Replace strncpy() with safer strlcpy() which always null-terminates.
Fixes: 61cbdd419478 ("net/mlx4: separate device control functions")
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
drivers/net/mlx4/mlx4_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/mlx4/mlx4_ethdev.c b/drivers/net/mlx4/mlx4_ethdev.c
index f11c6b4373b..83dbfe8c90b 100644
--- a/drivers/net/mlx4/mlx4_ethdev.c
+++ b/drivers/net/mlx4/mlx4_ethdev.c
@@ -127,7 +127,7 @@ try_dev_id:
rte_errno = ENODEV;
return -rte_errno;
}
- strncpy(*ifname, match, sizeof(*ifname));
+ strlcpy(*ifname, match, sizeof(*ifname));
return 0;
}
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-10-27 11:43:56.250714274 +0000
+++ 0066-net-mlx4-replace-strncpy-with-strlcpy.patch 2026-10-27 11:43:53.574061306 +0000
@@ -1 +1 @@
-From b87317f6d58103820d448d165f6a3d0333a593a3 Mon Sep 17 00:00:00 2001
+From 4decf7296f14b10e39b1a0521fd9a449cde1f4cd Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b87317f6d58103820d448d165f6a3d0333a593a3 ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
-index 4ea79bf1eb..5109b299e7 100644
+index f11c6b4373b..83dbfe8c90b 100644
More information about the stable
mailing list