Files
android_kernel_fxtec_sm6115/include/uapi/linux
Eric Dumazet 7c11350616 fq_codel: reject silly quantum parameters
[ Upstream commit c7c5e6ff533fe1f9afef7d2fa46678987a1335a7 ]

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
..
2020-06-07 13:17:54 +02:00
2018-08-06 10:24:33 +02:00
2018-08-22 10:52:49 -07:00
2021-06-10 13:24:08 +02:00
2020-01-27 14:51:14 +01:00
2018-11-13 11:08:46 -08:00
2018-08-03 10:03:57 -07:00
2018-08-15 14:59:06 -05:00
2020-10-30 10:38:26 +01:00
2018-10-08 15:45:18 +01:00
2020-06-03 08:19:46 +02:00