patch 'net/dpaa: 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:18 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/c60f0017675ea29bb897e4abca817c584a947a71
Thanks.
Luca Boccassi
---
>From c60f0017675ea29bb897e4abca817c584a947a71 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 d88a6d3af60..d7832644b4f 100644
--- a/drivers/net/dpaa/dpaa_ethdev.c
+++ b/drivers/net/dpaa/dpaa_ethdev.c
@@ -256,7 +256,7 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev)
DPAA_PMD_ERR("Cannot open IF socket");
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) {
DPAA_PMD_ERR("Cannot get interface mtu");
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-10-27 11:43:56.177843165 +0000
+++ 0064-net-dpaa-replace-strncpy-with-strlcpy.patch 2026-10-27 11:43:53.574061306 +0000
@@ -1 +1 @@
-From b3fbe2ba3a2d0f68b9969507806e8a0ba34b4650 Mon Sep 17 00:00:00 2001
+From c60f0017675ea29bb897e4abca817c584a947a71 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 d88a6d3af60..d7832644b4f 100644
@@ -20 +21 @@
-@@ -247,7 +247,7 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev)
+@@ -256,7 +256,7 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev)
More information about the stable
mailing list