diff options
author | Xiang Mei <xmei5@asu.edu> | 2025-07-10 03:09:42 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2025-07-13 00:09:33 +0100 |
commit | 5e28d5a3f774f118896aec17a3a20a9c5c9dfc64 (patch) | |
tree | 137b0ace254ef7f879a31e9f4e2694b1dcc06f05 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 7727ec1523d7973defa1dff8f9c0aad288d04008 (diff) |
net/sched: sch_qfq: Fix race condition on qfq_aggregate
A race condition can occur when 'agg' is modified in qfq_change_agg
(called during qfq_enqueue) while other threads access it
concurrently. For example, qfq_dump_class may trigger a NULL
dereference, and qfq_delete_class may cause a use-after-free.
This patch addresses the issue by:
1. Moved qfq_destroy_class into the critical section.
2. Added sch_tree_lock protection to qfq_dump_class and
qfq_dump_class_stats.
Fixes: 462dbc9101ac ("pkt_sched: QFQ Plus: fair-queueing service at DRR cost")
Signed-off-by: Xiang Mei <xmei5@asu.edu>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions