patch 'crypto/mvsam: replace strncpy with strlcpy' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue Oct 27 12:49:12 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 10/29/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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/14f5458717e2c146bbb3b1b735beee2c2d89ea37

Thanks.

Luca Boccassi

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

[ upstream commit 8e340eb3de097cbb40f4655a68ea2c77187a4f96 ]

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

Fixes: 25b05a1c806b ("crypto/mvsam: parse max number of sessions")

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

diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte_mrvl_pmd.c
index a824719fb09..65a63c9d628 100644
--- a/drivers/crypto/mvsam/rte_mrvl_pmd.c
+++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c
@@ -1146,7 +1146,7 @@ parse_name_arg(const char *key __rte_unused,
 		return -EINVAL;
 	}
 
-	strncpy(params->name, value, RTE_CRYPTODEV_NAME_MAX_LEN);
+	strlcpy(params->name, value, RTE_CRYPTODEV_NAME_MAX_LEN);
 
 	return 0;
 }
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-10-27 11:43:55.962420202 +0000
+++ 0058-crypto-mvsam-replace-strncpy-with-strlcpy.patch	2026-10-27 11:43:53.566061058 +0000
@@ -1 +1 @@
-From 8e340eb3de097cbb40f4655a68ea2c77187a4f96 Mon Sep 17 00:00:00 2001
+From 14f5458717e2c146bbb3b1b735beee2c2d89ea37 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8e340eb3de097cbb40f4655a68ea2c77187a4f96 ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -17 +18 @@
-index a824719fb0..65a63c9d62 100644
+index a824719fb09..65a63c9d628 100644


More information about the stable mailing list