Eric Dumazet
ec51500553
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 12:39:31 +02:00
..
2021-06-17 11:36:18 -07:00
2021-06-24 19:43:11 +02:00
2020-09-24 19:46:21 -07:00
2020-09-24 19:46:21 -07:00
2021-07-02 13:36:35 -07:00
2020-10-05 18:40:01 -07:00
2020-09-24 19:46:21 -07:00
2020-10-05 18:40:01 -07:00
2020-09-24 19:46:21 -07:00
2020-11-16 08:08:54 -08: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-09 10:58:47 +01:00
2020-12-03 11:13:37 -08:00
2020-09-24 19:46:21 -07:00
2020-09-24 19:46:21 -07:00
2021-03-13 14:18:09 -08:00
2021-03-14 15:00:43 -07:00
2020-11-16 08:08:54 -08:00
2020-09-24 19:46:21 -07:00
2021-07-20 07:13:51 -07:00
2020-10-20 21:10:41 -07:00
2021-06-01 16:54:42 -07:00
2021-09-18 13:43:53 +02:00
2020-01-27 10:51:43 +01:00
2021-06-24 19:43:11 +02:00
2019-05-30 11:26:32 -07:00
2020-08-04 13:49:43 -07:00
2021-06-21 14:46:36 -07:00
2020-01-27 10:51:43 +01:00
2020-06-19 12:53:30 -07:00
2020-03-16 01:59:32 -07: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
2021-07-18 09:45:46 -07:00
2020-12-08 16:22:53 -08: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-03-04 14:27:47 -08:00
2021-01-22 20:41:29 -08:00
2020-07-16 16:48:34 -07:00
2021-08-18 10:14:00 +01:00
2021-09-15 10:02:31 +02: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-01-22 20:41:29 -08:00
2021-05-24 13:11:44 -07:00
2020-07-16 16:48:34 -07:00
2021-08-25 11:15:30 +01:00
2020-07-16 16:48:34 -07:00
2021-09-22 12:39:31 +02:00
2021-05-23 17:16:09 -07: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-01-22 20:41:29 -08:00
2020-07-16 16:48:34 -07:00
2021-09-15 10:02:31 +02: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
2020-07-16 16:48:34 -07: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
2020-07-16 16:48:34 -07:00
2021-06-21 14:50:19 -07:00
2021-03-10 15:47:52 -08:00
2021-01-22 20:41:29 -08:00
2021-03-10 15:47:52 -08:00
2020-07-16 16:48:34 -07:00
2021-09-18 13:44:00 +02:00
2020-07-16 16:48:34 -07:00
2021-04-08 14:14:42 -07:00