patch 'examples/qos_sched: fix build with LTO' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:06:14 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/0f6fc910d2ac09084ae7fa7d1035648f512b6eff
Thanks.
Kevin
---
>From 0f6fc910d2ac09084ae7fa7d1035648f512b6eff 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
@@ -439,4 +439,7 @@ 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];
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:51.846723112 +0000
+++ 0448-examples-qos_sched-fix-build-with-LTO.patch 2026-12-03 12:52:39.338569134 +0000
@@ -1 +1 @@
-From 42268513a431e96bcd9b00e2fb37ed62a0c262a1 Mon Sep 17 00:00:00 2001
+From 0f6fc910d2ac09084ae7fa7d1035648f512b6eff 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 3ca06c2ff9..e73d9f7cdd 100644
+index c75cf9db2e..501b1d5b96 100644
@@ -25 +26 @@
-@@ -439,4 +439,7 @@ cfg_load_subport(struct rte_cfgfile *cfg)
+@@ -439,4 +439,7 @@ cfg_load_subport(struct rte_cfgfile *cfg, struct rte_sched_subport_params *subpo
More information about the stable
mailing list