patch 'event/cnxk: replace strncpy with strlcpy' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:00:04 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/15e3a9da3510f20a42427c389bd0ac4e7037e199

Thanks.

Kevin

---
>From 15e3a9da3510f20a42427c389bd0ac4e7037e199 Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Wed, 24 Jun 2026 11:36:44 +0100
Subject: [PATCH] event/cnxk: replace strncpy with strlcpy

[ upstream commit 465aaf5213efbe19548e539fd5b555775d8c503f ]

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

Fixes: b5a52c9d97e2 ("event/cnxk: add event port and queue xstats")

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

diff --git a/drivers/event/cnxk/cnxk_eventdev_stats.c b/drivers/event/cnxk/cnxk_eventdev_stats.c
index d88e6130b9..49b187896e 100644
--- a/drivers/event/cnxk/cnxk_eventdev_stats.c
+++ b/drivers/event/cnxk/cnxk_eventdev_stats.c
@@ -310,5 +310,5 @@ cnxk_sso_xstats_get_names(const struct rte_eventdev *event_dev,
 	for (i = 0; i < xstats_mode_count; i++) {
 		xidx = i + start_offset;
-		strncpy(xstats_names[i].name, xstats_names_copy[xidx].name,
+		strlcpy(xstats_names[i].name, xstats_names_copy[xidx].name,
 			sizeof(xstats_names[i].name));
 		ids[i] = xidx;
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:41.503755844 +0000
+++ 0078-event-cnxk-replace-strncpy-with-strlcpy.patch	2026-12-03 12:52:39.071106784 +0000
@@ -1 +1 @@
-From 465aaf5213efbe19548e539fd5b555775d8c503f Mon Sep 17 00:00:00 2001
+From 15e3a9da3510f20a42427c389bd0ac4e7037e199 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 465aaf5213efbe19548e539fd5b555775d8c503f ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list