Files
twx-linux/net/ipv4
Eric Dumazet f3ece3b384 tcp: fix 0 divide in __tcp_select_window()
[ Upstream commit 06425c308b ]

syszkaller fuzzer was able to trigger a divide by zero, when
TCP window scaling is not enabled.

SO_RCVBUF can be used not only to increase sk_rcvbuf, also
to decrease it below current receive buffers utilization.

If mss is negative or 0, just return a zero TCP window.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Dmitry Vyukov  <dvyukov@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-02-18 16:39:26 +01:00
..
2016-11-15 07:46:38 +01:00
…
2016-11-15 07:46:38 +01:00
2016-11-15 07:46:38 +01:00
2015-11-02 22:47:14 -05:00
2016-11-15 07:46:39 +01:00
…
…
2015-10-21 07:00:48 -07:00
…
…
…
…
2015-10-21 07:00:53 -07:00
2016-11-21 10:06:39 +01:00
…
2016-11-15 07:46:38 +01:00
2016-11-15 07:46:39 +01:00
…