Eric Dumazet
7c11350616
fq_codel: reject silly quantum parameters
...
[ Upstream commit c7c5e6ff53 ]
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: 4b549a2ef4 ("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 >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2021-09-22 11:48:14 +02:00
..
2021-04-14 08:22:36 +02:00
2019-09-10 10:33:39 +01:00
2020-07-22 09:32:00 +02:00
2020-07-22 09:32:00 +02:00
2019-09-10 10:33:39 +01:00
2019-09-10 10:33:39 +01:00
2019-09-10 10:33:39 +01:00
2017-12-13 13:18:46 -05:00
2017-10-12 22:13:20 -07:00
2017-12-13 13:18:46 -05:00
2020-01-27 14:51:18 +01:00
2019-09-10 10:33:39 +01:00
2019-12-01 09:16:06 +01:00
2019-09-10 10:33:39 +01:00
2019-10-05 13:09:28 +02:00
2019-09-10 10:33:39 +01:00
2020-07-22 09:32:00 +02:00
2021-07-28 11:13:48 +02:00
2020-10-29 09:54:58 +01:00
2019-09-10 10:33:39 +01:00
2021-07-28 11:13:49 +02:00
2020-02-01 09:37:06 +00:00
2020-02-01 09:37:06 +00:00
2018-05-24 22:56:15 -04:00
2020-07-22 09:32:00 +02:00
2020-07-22 09:32:00 +02:00
2020-02-01 09:37:06 +00:00
2020-02-24 08:34:34 +01:00
2020-04-02 15:28:11 +02:00
2007-07-10 22:16:41 -07:00
2007-07-10 22:16:41 -07:00
2020-02-11 04:33:52 -08:00
2021-07-20 16:15:53 +02:00
2020-02-01 09:37:06 +00:00
2014-10-06 18:02:32 -04:00
2011-01-19 23:31:12 -08:00
2020-07-22 09:32:00 +02:00
2018-02-21 13:15:33 -05:00
2020-07-22 09:32:00 +02:00
2018-01-24 14:52:40 -05:00
2015-02-22 15:59:54 -05:00
2011-01-19 23:31:12 -08:00
2020-02-01 09:37:05 +00:00
2018-07-24 14:44:00 -07:00
2018-07-24 14:44:00 -07:00
2021-03-17 16:43:43 +01:00
2020-07-22 09:31:59 +02:00
2018-06-17 08:42:33 +09:00
2021-06-30 08:48:17 -04:00
2021-09-22 11:47:55 +02:00
2020-04-02 15:28:11 +02:00
2021-03-30 14:37:03 +02:00
2019-08-09 17:52:32 +02:00
2017-12-21 12:32:51 -05:00
2021-06-03 08:38:12 +02:00
2020-04-29 16:31:21 +02:00
2017-12-21 12:32:51 -05:00
2021-09-22 11:48:14 +02:00
2020-03-18 07:14:16 +01:00
2020-11-18 19:18:53 +01:00
2021-03-30 14:37:03 +02:00
2018-06-23 10:58:46 +09:00
2019-11-10 11:27:54 +01:00
2018-06-24 16:42:46 +09:00
2018-01-17 14:53:57 -05:00
2019-12-21 10:57:12 +01:00
2019-12-21 10:57:12 +01:00
2019-12-05 09:21:32 +01:00
2020-11-05 11:08:33 +01:00
2017-12-21 12:32:50 -05:00
2017-12-21 12:32:50 -05:00
2020-01-12 12:17:29 +01:00
2021-07-20 16:15:51 +02:00
2021-03-30 14:37:03 +02:00
2019-11-10 11:27:54 +01:00
2021-03-30 14:37:03 +02:00
2020-05-14 07:57:17 +02:00
2018-05-18 13:52:32 -04:00
2021-04-14 08:22:33 +02:00