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

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

Thanks.

Kevin

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

[ upstream commit 0647aa3fa0c73c3a310eac70313d37152d4a0c11 ]

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

Fixes: 7709a63bf178 ("net/softnic: add connection agent")

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/softnic/conn.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/softnic/conn.c b/drivers/net/softnic/conn.c
index 5b031358d5..398f864d16 100644
--- a/drivers/net/softnic/conn.c
+++ b/drivers/net/softnic/conn.c
@@ -16,4 +16,6 @@
 #include <errno.h>
 
+#include <rte_string_fns.h>
+
 #include "conn.h"
 
@@ -117,6 +119,6 @@ softnic_conn_init(struct softnic_conn_params *p)
 
 	/* Fill in */
-	strncpy(conn->welcome, p->welcome, CONN_WELCOME_LEN_MAX);
-	strncpy(conn->prompt, p->prompt, CONN_PROMPT_LEN_MAX);
+	strlcpy(conn->welcome, p->welcome, CONN_WELCOME_LEN_MAX + 1);
+	strlcpy(conn->prompt, p->prompt, CONN_PROMPT_LEN_MAX + 1);
 	conn->buf_size = p->buf_size;
 	conn->msg_in_len_max = p->msg_in_len_max;
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:41.779552622 +0000
+++ 0088-net-softnic-replace-strncpy-with-strlcpy.patch	2026-12-03 12:52:39.079176011 +0000
@@ -1 +1 @@
-From 0647aa3fa0c73c3a310eac70313d37152d4a0c11 Mon Sep 17 00:00:00 2001
+From a9ffd121ad42ad34d12f01b2ca3f8cd3bbf89171 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 0647aa3fa0c73c3a310eac70313d37152d4a0c11 ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list