
hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IC5D94 CVE: CVE-2025-38000 -------------------------------- cbq_qlen_notify() always calls cbq_deactivate_class() when the whole list becomes empty. Let's make it idempotent to add qlen check to qlen_notify Fixes: 103406b38c60 ("net/sched: Always pass notifications when child class becomes empty") Signed-off-by: Dong Chenchen <dongchenchen2@huawei.com> --- net/sched/sch_cbq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c index dd8e83aac042..10e8577194cf 100644 --- a/net/sched/sch_cbq.c +++ b/net/sched/sch_cbq.c @@ -1422,7 +1422,8 @@ static void cbq_qlen_notify(struct Qdisc *sch, unsigned long arg) { struct cbq_class *cl = (struct cbq_class *)arg; - cbq_deactivate_class(cl); + if (cl->next_alive) + cbq_deactivate_class(cl); } static unsigned long cbq_find(struct Qdisc *sch, u32 classid) -- 2.25.1