Skip to content
Snippets Groups Projects
Commit 7a1abd08 authored by David S. Miller's avatar David S. Miller
Browse files

tcp: Increase TCP_MAXSEG socket option minimum.


As noted by Steve Chen, since commit
f5fff5dc ("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: default avatarSteve Chen <schen@mvista.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8d987e5c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment