linux/include
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: 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>
2021-09-04 10:49:46 +01:00
..
acpi Merge branches 'acpi-osl', 'acpi-power' and 'acpi-misc' 2021-08-30 20:03:28 +02:00
asm-generic Core: 2021-08-31 16:43:06 -07:00
clocksource
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2021-08-30 12:57:10 -07:00
drm drm: Return -ENOTTY for non-drm ioctls 2021-07-20 15:57:43 +02:00
dt-bindings Updates for timekeeping, timers and related drivers: 2021-08-30 15:31:33 -07:00
keys
kunit
kvm
linux Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf 2021-09-03 16:20:37 -07:00
math-emu math-emu: Fix fall-through warning 2021-07-13 13:57:44 -05:00
media
memory
misc
net flow: fix object-size-mismatch warning in flowi{4,6}_to_flowi_common() 2021-09-02 11:44:19 +01:00
pcmcia
ras
rdma
scsi
soc net: mscc: ocelot: transmit the VLAN filtering restrictions via extack 2021-08-20 14:39:52 +01:00
sound ASoC: Fixes for v5.14 2021-07-21 19:48:09 +02:00
target
trace Core: 2021-08-31 16:43:06 -07:00
uapi fq_codel: reject silly quantum parameters 2021-09-04 10:49:46 +01:00
vdso
video
xen