Eric Dumazet
c7c5e6ff53
fq_codel: reject silly quantum parameters
...
syzbot found that forcing a big quantum attribute would crash hosts fast,
essentially using this:
tc qd replace dev eth0 root fq_codel quantum 4294967295
This is because fq_codel_dequeue() would have to loop
~2^31 times in :
if (flow->deficit <= 0) {
flow->deficit += q->quantum;
list_move_tail(&flow->flowchain, &q->old_flows);
goto begin;
}
SFQ max quantum is 2^19 (half a megabyte)
Lets adopt a max quantum of one megabyte for FQ_CODEL.
Fixes: 4b549a2ef4be ("fq_codel: Fair Queue Codel AQM")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-09-04 10:49:46 +01:00
..
2021-08-02 10:24:38 +01:00
2021-08-17 00:45:07 +02:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-08-13 06:41:22 -07:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-19 13:19:30 +01:00
2021-08-02 10:24:38 +01:00
2021-08-17 00:45:07 +02:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2020-07-13 17:20:40 -07:00
2020-11-10 17:00:28 -08:00
2020-07-03 14:34:53 -07:00
2020-07-03 14:34:53 -07:00
2020-07-03 14:34:53 -07:00
2021-02-06 11:15:28 -08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-05-31 22:44:56 -07:00
2020-12-09 15:49:29 -08:00
2020-11-27 14:36:02 -08:00
2021-07-16 10:46:35 -07:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2021-08-19 18:09:18 -07:00
2021-08-30 20:29:03 -07:00
2020-11-23 17:27:04 -08:00
2021-03-10 15:47:52 -08:00
2020-07-16 16:48:34 -07:00
2021-07-29 22:17:37 +01:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2021-08-26 17:57:57 -07:00
2020-07-16 16:48:34 -07:00
2021-09-04 10:49:46 +01:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2021-04-29 15:31:53 -07:00
2021-08-04 09:59:24 +01:00
2021-05-31 22:44:56 -07:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2021-08-30 16:33:59 -07:00
2020-02-19 17:49:48 -08:00
2019-12-03 11:53:55 -08:00
2019-12-06 11:58:45 -08:00
2021-07-29 22:17:37 +01:00
2020-10-29 11:45:47 -07:00
2020-11-10 17:00:28 -08:00
2020-07-16 16:48:34 -07:00
2021-07-29 22:17:37 +01:00
2021-07-29 22:17:37 +01:00
2021-03-10 15:47:52 -08:00
2021-07-29 22:17:37 +01:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2021-08-30 12:24:40 +01:00
2020-07-16 16:48:34 -07:00
2021-04-08 14:14:42 -07:00