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

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jul 6 12:19:54 CEST 2026


Hi,

FYI, your patch has been queued to stable release 24.11.7

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

Thanks.

Luca Boccassi

---
>From dc732637b3e300ed31f09ae89418dead763dd608 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 56bb2bd91c..083dba7c7c 100644
--- a/lib/eal/common/eal_common_tailqs.c
+++ b/lib/eal/common/eal_common_tailqs.c
@@ -70,7 +70,7 @@ 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.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-03 12:55:46.804706953 +0100
+++ 0002-tailq-fix-name-truncation.patch	2026-07-03 12:55:46.574571466 +0100
@@ -1 +1 @@
-From 1c963e5976a812771a4f3329e340ff9f9bef4406 Mon Sep 17 00:00:00 2001
+From dc732637b3e300ed31f09ae89418dead763dd608 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 56bb2bd91c..083dba7c7c 100644
@@ -24 +25 @@
-@@ -83,7 +83,7 @@ rte_eal_tailq_create(const char *name)
+@@ -70,7 +70,7 @@ rte_eal_tailq_create(const char *name)


More information about the stable mailing list