summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMao Wenan <wenan.mao@linux.alibaba.com>2020-11-10 08:16:31 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-18 18:26:29 +0100
commit44d2ea6ef69fb12187aaa327967fc7b323139ba6 (patch)
treedca30b0b8a377d5a48a1c107bdbb88c9d2502eb0 /lib
parent1bbd12d33defae71b39abc4231b4f8a02c047836 (diff)
downloadlinux-stable-44d2ea6ef69fb12187aaa327967fc7b323139ba6.tar.gz
linux-stable-44d2ea6ef69fb12187aaa327967fc7b323139ba6.tar.bz2
linux-stable-44d2ea6ef69fb12187aaa327967fc7b323139ba6.zip
net: Update window_clamp if SOCK_RCVBUF is set
[ Upstream commit 909172a149749242990a6e64cb55d55460d4e417 ] When net.ipv4.tcp_syncookies=1 and syn flood is happened, cookie_v4_check or cookie_v6_check tries to redo what tcp_v4_send_synack or tcp_v6_send_synack did, rsk_window_clamp will be changed if SOCK_RCVBUF is set, which will make rcv_wscale is different, the client still operates with initial window scale and can overshot granted window, the client use the initial scale but local server use new scale to advertise window value, and session work abnormally. Fixes: e88c64f0a425 ("tcp: allow effective reduction of TCP's rcv-buffer via setsockopt") Signed-off-by: Mao Wenan <wenan.mao@linux.alibaba.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/r/1604967391-123737-1-git-send-email-wenan.mao@linux.alibaba.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions