From: Eric Dumazet Date: Wed, 1 Feb 2017 16:33:53 +0000 (-0800) Subject: tcp: fix 0 divide in __tcp_select_window() X-Git-Tag: v3.2.87~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35558f807792c21900e23046d97d7c6458f48c75;p=pandora-kernel.git tcp: fix 0 divide in __tcp_select_window() [ Upstream commit 06425c308b92eaf60767bc71d359f4cbc7a561f8 ] 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-off-by: Eric Dumazet Reported-by: Dmitry Vyukov Acked-by: Neal Cardwell Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed