Eric Dumazet 70741861fc tcp: avoid integer overflows in tcp_rcv_space_adjust()
commit 607065bad9931e72207b0cac365d7d4abc06bd99 upstream.

When using large tcp_rmem[2] values (I did tests with 500 MB),
I noticed overflows while computing rcvwin.

Lets fix this before the following patch.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Wei Wang <weiwan@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[Backport: sysctl_tcp_rmem is not Namespace-ify'd in older kernels]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-06 16:46:21 +02:00
..
2018-05-16 10:06:51 +02:00
2018-05-26 08:48:46 +02:00
2017-11-15 17:13:11 +01:00
2015-11-23 14:56:15 -05:00
2018-05-30 07:49:02 +02:00
2015-10-07 04:27:43 -07:00
2015-10-21 00:49:24 +02:00
2018-05-30 07:48:59 +02:00
2018-05-30 07:48:56 +02:00
2018-04-24 09:32:11 +02:00
2018-02-25 11:03:37 +01:00