patch 'net/dpaa: replace strncpy with strlcpy' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:00:08 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/50f6681fca83adec316a0a6547c5c7c3005eb377
Thanks.
Kevin
---
>From 50f6681fca83adec316a0a6547c5c7c3005eb377 Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Wed, 24 Jun 2026 11:36:48 +0100
Subject: [PATCH] net/dpaa: replace strncpy with strlcpy
[ upstream commit b3fbe2ba3a2d0f68b9969507806e8a0ba34b4650 ]
Replace strncpy() with safer strlcpy() which always null-terminates.
Fixes: ee0fa7552a0a ("net/dpaa: forbid MTU configuration for shared interface")
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/net/dpaa/dpaa_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c
index 1ff371271b..2eb81c45b1 100644
--- a/drivers/net/dpaa/dpaa_ethdev.c
+++ b/drivers/net/dpaa/dpaa_ethdev.c
@@ -249,5 +249,5 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev)
return -errno;
}
- strncpy(ifr.ifr_name, dpaa_intf->name, IFNAMSIZ - 1);
+ strlcpy(ifr.ifr_name, dpaa_intf->name, IFNAMSIZ);
if (ioctl(socket_fd, SIOCGIFMTU, &ifr) < 0) {
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:41.615359209 +0000
+++ 0082-net-dpaa-replace-strncpy-with-strlcpy.patch 2026-12-03 12:52:39.076106205 +0000
@@ -1 +1 @@
-From b3fbe2ba3a2d0f68b9969507806e8a0ba34b4650 Mon Sep 17 00:00:00 2001
+From 50f6681fca83adec316a0a6547c5c7c3005eb377 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b3fbe2ba3a2d0f68b9969507806e8a0ba34b4650 ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -17 +18 @@
-index 4463c56601..1aaf97f175 100644
+index 1ff371271b..2eb81c45b1 100644
@@ -20 +21 @@
-@@ -248,5 +248,5 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev)
+@@ -249,5 +249,5 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev)
More information about the stable
mailing list