From: Wei Wang Date: Thu, 18 May 2017 18:22:33 +0000 (-0700) Subject: tcp: initialize rcv_mss to TCP_MIN_MSS instead of 0 X-Git-Tag: v3.2.93~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16a0303d3f6b222044de5d33c01cbdf590050473;p=pandora-kernel.git tcp: initialize rcv_mss to TCP_MIN_MSS instead of 0 commit 499350a5a6e7512d9ed369ed63a4244b6536f4f8 upstream. When tcp_disconnect() is called, inet_csk_delack_init() sets icsk->icsk_ack.rcv_mss to 0. This could potentially cause tcp_recvmsg() => tcp_cleanup_rbuf() => __tcp_select_window() call path to have division by 0 issue. So this patch initializes rcv_mss to TCP_MIN_MSS instead of 0. Reported-by: Andrey Konovalov Signed-off-by: Wei Wang Signed-off-by: Eric Dumazet Signed-off-by: Neal Cardwell Signed-off-by: Yuchung Cheng Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed