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

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

Thanks.

Kevin

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

[ upstream commit 1de6a73cff856e57fa089035751db63f082d130b ]

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

Fixes: 5ef518098ec6 ("net/ionic: register and initialize adapter")

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

diff --git a/drivers/net/ionic/ionic_main.c b/drivers/net/ionic/ionic_main.c
index 814bb3b8f4..d5545b1ecb 100644
--- a/drivers/net/ionic/ionic_main.c
+++ b/drivers/net/ionic/ionic_main.c
@@ -394,6 +394,6 @@ ionic_identify(struct ionic_adapter *adapter)
 	snprintf(ident->drv.kernel_ver_str,
 		sizeof(ident->drv.kernel_ver_str), "DPDK");
-	strncpy(ident->drv.driver_ver_str, IONIC_DRV_VERSION,
-		sizeof(ident->drv.driver_ver_str) - 1);
+	strlcpy(ident->drv.driver_ver_str, IONIC_DRV_VERSION,
+		sizeof(ident->drv.driver_ver_str));
 
 	nwords = RTE_MIN(drv_size, cmd_size);
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:41.642374501 +0000
+++ 0083-net-ionic-replace-strncpy-with-strlcpy.patch	2026-12-03 12:52:39.076340635 +0000
@@ -1 +1 @@
-From 1de6a73cff856e57fa089035751db63f082d130b Mon Sep 17 00:00:00 2001
+From 1357a0dba97535ff20e7d3a7f648d25a3ad446d9 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 1de6a73cff856e57fa089035751db63f082d130b ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list