From: David S. Miller Date: Thu, 11 Nov 2010 05:35:37 +0000 (-0800) Subject: tcp: Increase TCP_MAXSEG socket option minimum. X-Git-Tag: v2.6.37-rc2~20^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a1abd08d52fdeddb3e9a5a33f2f15cc6a5674d2;p=pandora-kernel.git tcp: Increase TCP_MAXSEG socket option minimum. 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed