patch 'eventdev: improve bounds checks for names in adapter create' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 13:59:58 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/0260b9947f189cc060025a8ea4a493894b4a2aca
Thanks.
Kevin
---
>From 0260b9947f189cc060025a8ea4a493894b4a2aca Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Mon, 17 Aug 2026 14:42:41 +0100
Subject: [PATCH] eventdev: improve bounds checks for names in adapter create
[ upstream commit 5dc372bcb5d6aa7c4ac47d11e0d2dfc2a5c4468b ]
The bounds checks for snprintf and then strncpy used different constant
defines, which happened to resolve to the same value (32). Make this
code more resilient by using sizeof() operator rather than the defines,
and replace use of strncpy with the better strlcpy.
Fixes: a3bbf2e09756 ("eventdev: add eth Tx adapter implementation")
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Reviewed-by: Chengwen Feng <fengchengwen at huawei.com>
---
lib/eventdev/rte_event_eth_tx_adapter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c b/lib/eventdev/rte_event_eth_tx_adapter.c
index 91c7be55c7..d531da5d69 100644
--- a/lib/eventdev/rte_event_eth_tx_adapter.c
+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
@@ -749,5 +749,5 @@ txa_service_adapter_create_ext(uint8_t id, struct rte_eventdev *dev,
socket_id = dev->data->socket_id;
- snprintf(mem_name, TXA_MEM_NAME_LEN,
+ snprintf(mem_name, sizeof(mem_name),
"rte_event_eth_txa_%d",
id);
@@ -768,5 +768,5 @@ txa_service_adapter_create_ext(uint8_t id, struct rte_eventdev *dev,
txa->eventdev_id = dev->data->dev_id;
txa->socket_id = socket_id;
- strncpy(txa->mem_name, mem_name, TXA_SERVICE_NAME_LEN);
+ strlcpy(txa->mem_name, mem_name, sizeof(txa->mem_name));
txa->conf_cb = conf_cb;
txa->conf_arg = conf_arg;
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:41.345643088 +0000
+++ 0072-eventdev-improve-bounds-checks-for-names-in-adapter-.patch 2026-12-03 12:52:39.068665527 +0000
@@ -1 +1 @@
-From 5dc372bcb5d6aa7c4ac47d11e0d2dfc2a5c4468b Mon Sep 17 00:00:00 2001
+From 0260b9947f189cc060025a8ea4a493894b4a2aca Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 5dc372bcb5d6aa7c4ac47d11e0d2dfc2a5c4468b ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 03f1871157..b3edd9f6fb 100644
+index 91c7be55c7..d531da5d69 100644
More information about the stable
mailing list