summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMao Wenan <wenan.mao@linux.alibaba.com>2020-11-10 03:16:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-18 20:28:00 +0300
commitfc08b8e9d8928a21faf7fb5d31fc5d3f26a910a8 (patch)
treeebd4e78303237e43ef079d51499ede19e8f62238 /lib
parent6c7cd7a91b5ddbef807895d035aae5bcb05c5970 (diff)
downloadlinux-fc08b8e9d8928a21faf7fb5d31fc5d3f26a910a8.tar.xz
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