diff options
author | 2025-02-03 16:58:40 -0800 | |
---|---|---|
committer | 2025-02-05 18:14:46 -0800 | |
commit | 638ba5089324796c2ee49af10427459c2de35f71 (patch) | |
tree | 1a044609bfa587a2a36d1010a0fe41eb0aa91d26 /scripts/lib/kdoc/kdoc_files.py | |
parent | selftests/tc-testing: Add a test case for pfifo_head_drop qdisc when limit==0 (diff) | |
download | wireguard-linux-638ba5089324796c2ee49af10427459c2de35f71.tar.xz wireguard-linux-638ba5089324796c2ee49af10427459c2de35f71.zip |
netem: Update sch->q.qlen before qdisc_tree_reduce_backlog()
qdisc_tree_reduce_backlog() notifies parent qdisc only if child
qdisc becomes empty, therefore we need to reduce the backlog of the
child qdisc before calling it. Otherwise it would miss the opportunity
to call cops->qlen_notify(), in the case of DRR, it resulted in UAF
since DRR uses ->qlen_notify() to maintain its active list.
Fixes: f8d4bc455047 ("net/sched: netem: account for backlog updates from child qdisc")
Cc: Martin Ottens <martin.ottens@fau.de>
Reported-by: Mingi Cho <mincho@theori.io>
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Link: https://patch.msgid.link/20250204005841.223511-4-xiyou.wangcong@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions