Cong Wang
2d3cbfd6d5
net_sched: Flush gso_skb list too during ->change()
...
Previously, when reducing a qdisc's limit via the ->change() operation, only
the main skb queue was trimmed, potentially leaving packets in the gso_skb
list. This could result in NULL pointer dereference when we only check
sch->limit against sch->q.qlen.
This patch introduces a new helper, qdisc_dequeue_internal(), which ensures
both the gso_skb list and the main queue are properly flushed when trimming
excess packets. All relevant qdiscs (codel, fq, fq_codel, fq_pie, hhf, pie)
are updated to use this helper in their ->change() routines.
Fixes: 76e3cc126b ("codel: Controlled Delay AQM")
Fixes: 4b549a2ef4 ("fq_codel: Fair Queue Codel AQM")
Fixes: afe4fd0624 ("pkt_sched: fq: Fair Queue packet scheduler")
Fixes: ec97ecf1eb ("net: sched: add Flow Queue PIE packet scheduler")
Fixes: 10239edf86 ("net-qdisc-hhf: Heavy-Hitter Filter (HHF) qdisc")
Fixes: d4b36210c2 ("net: pkt_sched: PIE AQM scheme")
Reported-by: Will <willsroot@protonmail.com >
Reported-by: Savy <savy@syst3mfailure.io >
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2025-05-09 12:34:38 +01:00
..
2025-05-08 10:24:15 -04:00
2024-10-08 15:33:49 -07:00
2024-12-09 14:44:59 -08:00
2025-02-14 10:58:08 -08:00
2025-03-29 11:12:28 -07:00
2025-03-25 08:29:13 -07:00
2025-03-25 09:15:07 -07:00
2024-11-07 10:21:58 +01:00
2025-04-04 07:35:38 -07:00
2024-10-24 16:03:40 +02:00
2025-04-10 08:52:18 -07:00
2024-10-23 11:43:47 +02:00
2025-01-20 12:16:04 -08:00
2025-03-10 09:47:15 +00:00
2025-03-26 09:31:18 -07:00
2024-08-15 17:18:52 -07:00
2025-03-24 10:26:53 +00:00
2024-08-26 09:37:22 -07:00
2024-08-26 09:37:22 -07:00
2024-11-14 11:16:28 +01:00
2025-03-25 08:00:09 -07:00
2025-02-27 14:03:14 +01:00
2024-10-02 17:23:23 -04:00
2025-03-12 09:50:24 +01:00
2024-10-30 15:29:59 +01:00
2024-10-02 17:23:23 -04:00
2025-01-16 13:04:58 -08:00
2025-03-03 15:44:19 -08:00
2025-02-11 11:58:17 +01:00
2025-01-17 20:01:09 -08:00
2024-08-26 09:37:23 -07:00
2025-02-20 13:17:16 -08:00
2024-05-29 17:34:49 -07:00
2024-12-09 14:44:59 -08:00
2024-11-13 18:49:50 -08:00
2024-08-26 09:37:23 -07:00
2024-10-11 15:35:05 -07:00
2025-04-15 17:54:56 -07:00
2024-07-15 09:14:39 -07:00
2024-10-30 17:33:53 -07:00
2025-04-15 17:54:56 -07:00
2024-12-09 14:44:59 -08:00
2025-02-27 14:03:14 +01:00
2025-03-24 13:58:22 -07:00
2024-08-26 09:37:23 -07:00
2024-10-25 10:44:41 +01:00
2025-03-24 12:10:13 -07:00
2025-03-03 15:44:19 -08:00
2025-03-25 10:34:33 -07:00
2025-03-18 13:18:36 +01:00
2025-03-06 15:26:02 -08:00
2025-01-06 13:49:38 -08:00
2024-12-11 20:17:33 -08:00
2024-12-17 19:37:00 -08:00
2024-10-11 15:35:05 -07:00
2024-07-14 07:34:16 -07:00
2025-03-03 15:04:09 -08:00
2025-02-21 15:28:02 -08:00
2025-04-03 15:32:08 -07:00
2025-03-21 17:36:49 +08:00
2025-03-18 13:18:36 +01:00
2024-08-05 16:27:26 -07:00
2025-03-25 07:31:24 -07:00
2024-10-09 08:53:01 +02:00
2024-08-19 18:36:12 -07:00
2025-04-15 17:54:56 -07:00
2024-12-06 17:43:08 -08:00
2024-07-15 08:51:01 -07:00
2024-08-26 09:37:23 -07:00
2024-07-15 08:51:19 -07:00
2025-03-05 19:16:56 -08:00
2025-02-26 15:48:47 +01:00
2024-10-02 17:23:23 -04:00
2025-01-20 12:20:42 +00:00
2025-03-21 18:18:12 +01:00
2024-11-09 09:04:54 -08:00
2025-03-20 10:14:49 +01:00
2024-08-12 17:23:57 -07:00
2024-11-09 13:22:57 -08:00
2024-11-09 13:22:57 -08:00
2024-11-30 13:41:50 -08:00
2025-03-24 13:58:22 -07:00
2024-10-10 08:30:22 -07:00
2025-04-03 15:32:08 -07:00
2025-03-12 13:32:35 -07:00
2025-05-08 11:56:12 +02:00
2025-03-25 10:06:49 -07:00
2024-11-21 08:28:08 -08:00
2025-02-17 16:46:03 -08:00
2025-02-06 16:27:30 -08:00
2024-08-12 17:50:34 -07:00
2024-08-30 22:30:55 +02:00
2025-01-20 09:21:27 +00:00
2024-07-11 18:11:31 -07:00
2024-08-26 09:37:23 -07:00
2024-08-26 09:37:23 -07:00
2024-06-06 15:18:04 +02:00
2025-02-06 16:14:14 -08:00
2025-03-25 08:24:13 -07:00
2024-08-07 10:24:46 +01:00
2025-02-21 15:28:03 -08:00
2025-05-09 12:34:38 +01:00
2024-12-04 14:42:31 -05:00
2024-05-30 18:29:38 -07:00
2024-06-24 16:41:23 -07:00
2024-05-30 18:29:38 -07:00
2025-03-16 22:05:53 -07:00
2024-08-02 17:16:59 -07:00
2025-04-09 19:11:55 -07:00
2025-01-29 13:32:08 -08:00
2024-11-03 12:10:11 -08:00
2025-03-31 16:53:54 -07:00
2024-07-08 14:07:31 -07:00
2024-12-16 12:47:29 +00:00
2025-03-25 09:15:07 -07:00
2025-03-25 09:15:07 -07:00
2024-12-09 14:47:04 -08:00
2024-08-26 09:37:23 -07:00
2025-02-20 15:13:45 -08:00
2025-04-24 17:11:33 -07:00
2025-02-27 14:03:52 +01:00
2025-02-21 08:08:15 +01:00
2025-04-24 17:11:52 -07:00