Re: [PATCH net-next 2/3] tcp: avoid integer overflows in tcp_rcv_space_adjust()

2017-12-11 Thread Neal Cardwell
On Sun, Dec 10, 2017 at 8:55 PM, Eric Dumazet wrote: > 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 > Acked-by: Soheil Hassas Yeganeh > Acked-by: Wei Wang

[PATCH net-next 2/3] tcp: avoid integer overflows in tcp_rcv_space_adjust()

2017-12-10 Thread Eric Dumazet
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 Acked-by: Soheil Hassas Yeganeh Acked-by: Wei Wang --- include/linux/tcp.h | 2 +- net/ipv4/tcp_input.c | 12 +