Xiang Mei
5e28d5a3f7
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: 462dbc9101 ("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 >
2025-07-13 00:09:33 +01:00
..
2025-04-15 17:13:11 -07:00
2024-05-23 14:14:23 -07:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-11-11 10:32:06 -08:00
2024-11-11 10:32:06 -08:00
2024-02-02 10:57:55 -08:00
2025-02-18 10:35:44 +01:00
2024-02-02 10:57:55 -08:00
2025-05-15 15:23:31 +02:00
2024-11-11 10:32:06 -08:00
2024-02-02 10:57:55 -08:00
2024-02-19 10:58:24 +00:00
2024-11-11 10:32:06 -08:00
2024-07-05 17:45:47 -07:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-07-11 17:12:15 -07:00
2025-04-03 15:47:35 -07:00
2024-08-27 11:37:42 +02:00
2025-05-02 15:35:37 -07:00
2025-04-08 13:57:49 +02:00
2024-02-02 10:57:55 -08:00
2025-01-20 09:21:27 +00:00
2024-02-02 10:57:55 -08:00
2025-06-08 09:07:37 +02:00
2025-04-03 15:47:35 -07:00
2024-02-02 10:57:55 -08:00
2025-01-20 09:21:27 +00:00
2024-02-02 10:57:55 -08:00
2025-01-20 09:21:27 +00:00
2024-02-09 14:12:02 -08:00
2024-10-02 17:23:23 -04:00
2025-02-19 19:05:28 -08:00
2024-02-09 14:12:02 -08:00
2024-02-09 14:12:02 -08:00
2024-02-09 14:12:02 -08:00
2025-05-21 15:40:16 -07:00
2025-04-17 10:54:33 -07:00
2025-07-10 11:08:35 +02:00
2025-01-09 16:11:47 -08:00
2024-10-15 18:25:47 -07:00
2024-12-04 12:54:22 +00:00
2025-05-09 12:34:38 +01:00
2025-04-28 15:55:06 -07:00
2024-04-19 11:34:07 +01:00
2025-06-12 08:05:50 -07:00
2025-02-05 18:13:58 -08:00
2025-05-09 12:34:38 +01:00
2025-06-08 09:07:37 +02:00
2025-05-09 12:34:38 +01:00
2025-05-15 15:23:31 +02:00
2025-06-08 09:07:37 +02:00
2025-03-06 16:35:14 -08:00
2025-07-10 11:08:35 +02:00
2025-05-09 12:34:38 +01:00
2025-05-05 13:51:32 -07:00
2024-07-08 14:07:31 -07:00
2024-03-29 15:06:02 -07:00
2024-06-05 10:50:19 +01:00
2025-02-05 18:14:46 -08:00
2025-06-08 09:07:37 +02:00
2024-02-02 10:57:55 -08:00
2025-06-12 08:05:49 -07:00
2025-07-13 00:09:33 +01:00
2025-06-12 09:50:36 -07:00
2024-12-17 13:27:29 +01:00
2025-06-12 09:50:36 -07:00
2025-04-02 16:03:32 -07:00
2025-06-17 16:14:04 -07:00
2025-06-12 08:05:50 -07:00
2024-05-07 16:19:14 -07:00