]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/sched: qfq: Use cl_is_active to determine whether class is active in qfq_rm_from_ag
authorJamal Hadi Salim <jhs@mojatatu.com>
Wed, 14 Jan 2026 16:02:42 +0000 (11:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:33 +0000 (10:27 +0100)
commit93b8635974fb050c43d07e35e5edfe6e685ca28a
treec611248c61d87f8adade71eb86febd4de01ed985
parent0686bedfed34155520f3f735cbf3210cb9044380
net/sched: qfq: Use cl_is_active to determine whether class is active in qfq_rm_from_ag

[ Upstream commit d837fbee92453fbb829f950c8e7cf76207d73f33 ]

This is more of a preventive patch to make the code more consistent and
to prevent possible exploits that employ child qlen manipulations on qfq.
use cl_is_active instead of relying on the child qdisc's qlen to determine
class activation.

Fixes: 462dbc9101acd ("pkt_sched: QFQ Plus: fair-queueing service at DRR cost")
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://patch.msgid.link/20260114160243.913069-3-jhs@mojatatu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sched/sch_qfq.c