patch 'net/vhost: replace strncpy with strlcpy' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:00:15 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/bf24009f57c59ec99dd351b7cbe56c7b28054c97
Thanks.
Kevin
---
>From bf24009f57c59ec99dd351b7cbe56c7b28054c97 Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Wed, 24 Jun 2026 11:36:55 +0100
Subject: [PATCH] net/vhost: replace strncpy with strlcpy
[ upstream commit ed302a6204d5bbd9f7de3236a22c25fd97a468dc ]
Replace strncpy() with safer strlcpy() which always null-terminates.
Fixes: 2e16597c4bda ("net/vhost: move to vhost library statistics API")
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/net/vhost/rte_eth_vhost.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c
index 05940f2461..82e9fc929a 100644
--- a/drivers/net/vhost/rte_eth_vhost.c
+++ b/drivers/net/vhost/rte_eth_vhost.c
@@ -210,5 +210,5 @@ vhost_dev_xstats_get_names(struct rte_eth_dev *dev,
for (i = 0; i < count; i++)
- strncpy(xstats_names[i].name, name[i].name, RTE_ETH_XSTATS_NAME_SIZE);
+ strlcpy(xstats_names[i].name, name[i].name, RTE_ETH_XSTATS_NAME_SIZE);
free(name);
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:41.806278872 +0000
+++ 0089-net-vhost-replace-strncpy-with-strlcpy.patch 2026-12-03 12:52:39.079577257 +0000
@@ -1 +1 @@
-From ed302a6204d5bbd9f7de3236a22c25fd97a468dc Mon Sep 17 00:00:00 2001
+From bf24009f57c59ec99dd351b7cbe56c7b28054c97 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit ed302a6204d5bbd9f7de3236a22c25fd97a468dc ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -17 +18 @@
-index f2dfae7175..56c7a973e9 100644
+index 05940f2461..82e9fc929a 100644
More information about the stable
mailing list