|SUCCESS| pw159224 [PATCH v5 13/17] eal: check tailq length
0-day Robot
robot at bytheb.org
Tue Dec 16 17:12:26 CET 2025
Test-Label: 0day Robot - Claude SONNET
Test-Status: SUCCESS
http://dpdk.org/patch/159224
_AI Review Comments Available_
Git SHA: Not provided in patch
Author: Stephen Hemminger <stephen at networkplumber.org>
Subject: [PATCH v5 13/17] eal: check tailq length
This commit adds a length check for tailq names to prevent buffer
overflow when storing the name in the tailq head structure.
> diff --git a/lib/eal/common/eal_common_tailqs.c b/lib/eal/common/eal_common_tailqs.c
> index 47080d75ac..7502836c6d 100644
> --- a/lib/eal/common/eal_common_tailqs.c
> +++ b/lib/eal/common/eal_common_tailqs.c
> @@ -67,6 +67,11 @@ rte_eal_tailq_create(const char *name)
> {
> struct rte_tailq_head *head = NULL;
>
> + if (strlen(name) >= sizeof(head->name)) {
> + EAL_LOG(ERR, "tailq name '%s' is too long", name);
> + return NULL;
> + }
> +
[ ... ]
> if (!rte_eal_tailq_lookup(name) &&
> (rte_tailqs_count + 1 < RTE_MAX_TAILQ)) {
> struct rte_mem_config *mcfg;
More information about the test-report
mailing list