summaryrefslogtreecommitdiff
path: root/include/linux/sh_timer.h
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:26:29 +0300
commit44d2ea6ef69fb12187aaa327967fc7b323139ba6 (patch)
treedca30b0b8a377d5a48a1c107bdbb88c9d2502eb0 /include/linux/sh_timer.h
parent1bbd12d33defae71b39abc4231b4f8a02c047836 (diff)
downloadlinux-44d2ea6ef69fb12187aaa327967fc7b323139ba6.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 'include/linux/sh_timer.h')
0 files changed, 0 insertions, 0 deletions