Re: [PATCH net] tcp: fix 0 divide in __tcp_select_window()

2017-02-01 Thread David Miller
From: Eric Dumazet Date: Wed, 01 Feb 2017 08:33:53 -0800 > From: Eric Dumazet > > 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 util

Re: [PATCH net] tcp: fix 0 divide in __tcp_select_window()

2017-02-01 Thread Neal Cardwell
On Wed, Feb 1, 2017 at 11:33 AM, Eric Dumazet wrote: > > From: Eric Dumazet > > 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 utilizati

[PATCH net] tcp: fix 0 divide in __tcp_select_window()

2017-02-01 Thread Eric Dumazet
From: Eric Dumazet 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