patch 'common/mlx5: replace strncpy with strlcpy' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:00:01 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
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/08/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/3ccd2a4ecb19f4af91b65e9fb246aadd73d010ad
Thanks.
Kevin
---
>From 3ccd2a4ecb19f4af91b65e9fb246aadd73d010ad Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Wed, 24 Jun 2026 11:36:41 +0100
Subject: [PATCH] common/mlx5: replace strncpy with strlcpy
[ upstream commit 056b4e10e36d74edd6df080dc0c7c41570c793a0 ]
Replace strncpy() with safer strlcpy() which always null-terminates.
Fixes: aec086c9f1c8 ("common/mlx5: share kernel interface name getter")
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
drivers/common/mlx5/linux/mlx5_common_os.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/common/mlx5/linux/mlx5_common_os.c b/drivers/common/mlx5/linux/mlx5_common_os.c
index 0fe4deb749..c64a4ecae2 100644
--- a/drivers/common/mlx5/linux/mlx5_common_os.c
+++ b/drivers/common/mlx5/linux/mlx5_common_os.c
@@ -232,5 +232,5 @@ try_dev_id:
return -rte_errno;
}
- strncpy(ifname, match, IF_NAMESIZE);
+ strlcpy(ifname, match, IF_NAMESIZE);
return 0;
}
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:41.426125110 +0000
+++ 0075-common-mlx5-replace-strncpy-with-strlcpy.patch 2026-12-03 12:52:39.070368722 +0000
@@ -1 +1 @@
-From 056b4e10e36d74edd6df080dc0c7c41570c793a0 Mon Sep 17 00:00:00 2001
+From 3ccd2a4ecb19f4af91b65e9fb246aadd73d010ad Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 056b4e10e36d74edd6df080dc0c7c41570c793a0 ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
-index 3e9cd86062..11a4eb8eee 100644
+index 0fe4deb749..c64a4ecae2 100644
More information about the stable
mailing list