diff options
author | Mao Wenan <wenan.mao@linux.alibaba.com> | 2020-11-10 03:16:31 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-11 04:42:35 +0300 |
commit | 909172a149749242990a6e64cb55d55460d4e417 (patch) | |
tree | 0da5a49c681ef193212c875be01f0a30f0dba5cf /drivers/net/dsa | |
parent | f3037c5a31b58a73b32a36e938ad0560085acadd (diff) | |
download | linux-909172a149749242990a6e64cb55d55460d4e417.tar.xz |
net: Update window_clamp if SOCK_RCVBUF is set
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>
Diffstat (limited to 'drivers/net/dsa')
0 files changed, 0 insertions, 0 deletions