aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-11-10 21:35:37 -0800
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-04-17 16:16:02 -0400
commit1315b700e593535a1a5ede8ea77859a155c0a3b2 (patch)
tree51e9d9860efb9c2231f5cbe5cdf492ec606c3b62 /net/unix/af_unix.c
parent7be07193f5663cd1a4657062c47c07282fbc3f3b (diff)
tcp: Increase TCP_MAXSEG socket option minimum.
commit 7a1abd08d52fdeddb3e9a5a33f2f15cc6a5674d2 upstream As noted by Steve Chen, since commit f5fff5dc8a7a3f395b0525c02ba92c95d42b7390 ("tcp: advertise MSS requested by user") we can end up with a situation where tcp_select_initial_window() does a divide by a zero (or even negative) mss value. The problem is that sometimes we effectively subtract TCPOLEN_TSTAMP_ALIGNED and/or TCPOLEN_MD5SIG_ALIGNED from the mss. Fix this by increasing the minimum from 8 to 64. Reported-by: Steve Chen <schen@mvista.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions