patch 'net/qede: 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:23 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/d005145057b3ee117c1ea0b6f0256d2ec320d7e2
Thanks.
Luca Boccassi
---
>From d005145057b3ee117c1ea0b6f0256d2ec320d7e2 Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Wed, 24 Jun 2026 11:36:53 +0100
Subject: [PATCH] net/qede: replace strncpy with strlcpy
[ upstream commit 9377d46e11e84be5b3a52247068a2d9b5dacc638 ]
Replace strncpy() with safer strlcpy() which always null-terminates.
Fixes: 2ea6f76aff40 ("qede: add core driver")
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/net/qede/qede_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c
index bee9fa4f60a..7c380ae0696 100644
--- a/drivers/net/qede/qede_ethdev.c
+++ b/drivers/net/qede/qede_ethdev.c
@@ -2587,7 +2587,7 @@ static int qede_common_dev_init(struct rte_eth_dev *eth_dev, bool is_vf)
params.drv_minor = QEDE_PMD_VERSION_MINOR;
params.drv_rev = QEDE_PMD_VERSION_REVISION;
params.drv_eng = QEDE_PMD_VERSION_PATCH;
- strncpy((char *)params.name, QEDE_PMD_VER_PREFIX,
+ strlcpy((char *)params.name, QEDE_PMD_VER_PREFIX,
QEDE_PMD_DRV_VER_STR_SIZE);
qede_assign_rxtx_handlers(eth_dev, true);
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-10-27 11:43:56.366300590 +0000
+++ 0069-net-qede-replace-strncpy-with-strlcpy.patch 2026-10-27 11:43:53.578061429 +0000
@@ -1 +1 @@
-From 9377d46e11e84be5b3a52247068a2d9b5dacc638 Mon Sep 17 00:00:00 2001
+From d005145057b3ee117c1ea0b6f0256d2ec320d7e2 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 9377d46e11e84be5b3a52247068a2d9b5dacc638 ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -17 +18 @@
-index b5bbcd6625..c41177b86a 100644
+index bee9fa4f60a..7c380ae0696 100644
@@ -20 +21 @@
-@@ -2574,7 +2574,7 @@ static int qede_common_dev_init(struct rte_eth_dev *eth_dev, bool is_vf)
+@@ -2587,7 +2587,7 @@ static int qede_common_dev_init(struct rte_eth_dev *eth_dev, bool is_vf)
More information about the stable
mailing list