patch 'tailq: fix name truncation' has been queued to stable release 25.11.3

Kevin Traynor ktraynor at redhat.com
Tue Jul 28 17:56:01 CEST 2026


Hi,

FYI, your patch has been queued to stable release 25.11.3

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

Thanks.

Kevin

---
>From 083ec611824e262cb27889a7e5b5151a0e29a714 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Tue, 9 Jun 2026 08:53:30 -0700
Subject: [PATCH] tailq: fix name truncation

[ upstream commit 1c963e5976a812771a4f3329e340ff9f9bef4406 ]

The tailq name is defined as 32 bytes, but name would be
silently truncated at 31 bytes. The function strlcpy() size
already accounts for the NUL character at the end.

Bugzilla ID: 1954
Fixes: f9acaf84e923 ("replace snprintf with strlcpy without adding extra include")

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
---
 lib/eal/common/eal_common_tailqs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/eal/common/eal_common_tailqs.c b/lib/eal/common/eal_common_tailqs.c
index 47080d75ac..658c5714ed 100644
--- a/lib/eal/common/eal_common_tailqs.c
+++ b/lib/eal/common/eal_common_tailqs.c
@@ -74,5 +74,5 @@ rte_eal_tailq_create(const char *name)
 		mcfg = rte_eal_get_configuration()->mem_config;
 		head = &mcfg->tailq_head[rte_tailqs_count];
-		strlcpy(head->name, name, sizeof(head->name) - 1);
+		strlcpy(head->name, name, sizeof(head->name));
 		TAILQ_INIT(&head->tailq_head);
 		rte_tailqs_count++;
-- 
2.55.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-28 16:54:51.725996373 +0100
+++ 0031-tailq-fix-name-truncation.patch	2026-07-28 16:54:50.771378317 +0100
@@ -1 +1 @@
-From 1c963e5976a812771a4f3329e340ff9f9bef4406 Mon Sep 17 00:00:00 2001
+From 083ec611824e262cb27889a7e5b5151a0e29a714 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 1c963e5976a812771a4f3329e340ff9f9bef4406 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index c581f43b6f..fe3ced21c7 100644
+index 47080d75ac..658c5714ed 100644
@@ -24 +25 @@
-@@ -84,5 +84,5 @@ rte_eal_tailq_create(const char *name)
+@@ -74,5 +74,5 @@ rte_eal_tailq_create(const char *name)



More information about the stable mailing list