summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2020-01-06 06:10:39 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-12 11:22:51 +0100
commit65cae7ecbed74f43d540e0f87242c2fd26d3833a (patch)
tree51365f0bcd4d885bb4a046e798c17a49578fabeb /drivers/base
parent0321ff04c7cdab31fc8a43adb28828b175180a9a (diff)
pkt_sched: fq: do not accept silly TCA_FQ_QUANTUM
[ Upstream commit d9e15a2733067c9328fb56d98fe8e574fa19ec31 ] As diagnosed by Florian : If TCA_FQ_QUANTUM is set to 0x80000000, fq_deueue() can loop forever in : if (f->credit <= 0) { f->credit += q->quantum; goto begin; } ... because f->credit is either 0 or -2147483648. Let's limit TCA_FQ_QUANTUM to no more than 1 << 20 : This max value should limit risks of breaking user setups while fixing this bug. Fixes: afe4fd062416 ("pkt_sched: fq: Fair Queue packet scheduler") Signed-off-by: Eric Dumazet <edumazet@google.com> Diagnosed-by: Florian Westphal <fw@strlen.de> Reported-by: syzbot+dc9071cc5a85950bdfce@syzkaller.appspotmail.com Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions