patch 'net/nfp: replace strncpy with strlcpy' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:00:12 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/5ef75ff5ab89ccf1e805213112ab16603ce4648b

Thanks.

Kevin

---
>From 5ef75ff5ab89ccf1e805213112ab16603ce4648b Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Wed, 24 Jun 2026 11:36:52 +0100
Subject: [PATCH] net/nfp: replace strncpy with strlcpy

[ upstream commit 00fe28c3080b9d7ce732ed867633d3d109787a3d ]

Replace strncpy() with safer strlcpy() which always null-terminates.

Fixes: c7e9729da6b5 ("net/nfp: support CPP")

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/nfp/nfpcore/nfp_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/nfp/nfpcore/nfp_resource.c b/drivers/net/nfp/nfpcore/nfp_resource.c
index 6437a78852..781350c46f 100644
--- a/drivers/net/nfp/nfpcore/nfp_resource.c
+++ b/drivers/net/nfp/nfpcore/nfp_resource.c
@@ -169,5 +169,5 @@ nfp_resource_acquire(struct nfp_cpp *cpp,
 	memset(res, 0, sizeof(*res));
 
-	strncpy(res->name, name, NFP_RESOURCE_ENTRY_NAME_SZ);
+	strlcpy(res->name, name, sizeof(res->name));
 
 	dev_mutex = nfp_cpp_mutex_alloc(cpp, NFP_RESOURCE_TBL_TARGET,
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:41.722731246 +0000
+++ 0086-net-nfp-replace-strncpy-with-strlcpy.patch	2026-12-03 12:52:39.078276234 +0000
@@ -1 +1 @@
-From 00fe28c3080b9d7ce732ed867633d3d109787a3d Mon Sep 17 00:00:00 2001
+From 5ef75ff5ab89ccf1e805213112ab16603ce4648b Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 00fe28c3080b9d7ce732ed867633d3d109787a3d ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list