patch 'examples/qos_sched: fix build with LTO' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Nov 16 23:52:37 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 11/18/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/8dfc1af10bd9c161304f30aa723ee34c64ee2dcb

Thanks.

Luca Boccassi

---
>From 8dfc1af10bd9c161304f30aa723ee34c64ee2dcb Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Mon, 9 Nov 2026 18:04:03 -0800
Subject: [PATCH] examples/qos_sched: fix build with LTO

[ upstream commit 42268513a431e96bcd9b00e2fb37ed62a0c262a1 ]

rte_cfgfile_section_num_entries() returns -1 on error, which is used
unchecked as a VLA size. With LTO gcc inlines the library call, sees
the -1 path and fails with -Wvla-larger-than.

Return error if the entry count is negative.

Fixes: db935d0171dd ("examples/qos_sched: use librte_cfgfile")

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 examples/qos_sched/cfg_file.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/examples/qos_sched/cfg_file.c b/examples/qos_sched/cfg_file.c
index c75cf9db2e..501b1d5b96 100644
--- a/examples/qos_sched/cfg_file.c
+++ b/examples/qos_sched/cfg_file.c
@@ -438,6 +438,9 @@ cfg_load_subport(struct rte_cfgfile *cfg, struct rte_sched_subport_params *subpo
 			}
 
 			int n_entries = rte_cfgfile_section_num_entries(cfg, sec_name);
+			if (n_entries < 0)
+				return -1;
+
 			struct rte_cfgfile_entry entries[n_entries];
 
 			rte_cfgfile_section_entries(cfg, sec_name, entries, n_entries);
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:19.751138406 +0000
+++ 0083-examples-qos_sched-fix-build-with-LTO.patch	2026-11-16 22:52:16.544234968 +0000
@@ -1 +1 @@
-From 42268513a431e96bcd9b00e2fb37ed62a0c262a1 Mon Sep 17 00:00:00 2001
+From 8dfc1af10bd9c161304f30aa723ee34c64ee2dcb Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 42268513a431e96bcd9b00e2fb37ed62a0c262a1 ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index 3ca06c2ff9a..e73d9f7cdd2 100644
+index c75cf9db2e..501b1d5b96 100644
@@ -25 +26 @@
-@@ -438,6 +438,9 @@ cfg_load_subport(struct rte_cfgfile *cfg)
+@@ -438,6 +438,9 @@ cfg_load_subport(struct rte_cfgfile *cfg, struct rte_sched_subport_params *subpo


More information about the stable mailing list