summaryrefslogtreecommitdiffstats
path: root/kernel/time/timer.c
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:25:02 +0100
commit36d7b99b7a7de6b3c4dd6c206fb52135f51ac609 (patch)
tree9f0a115d393d48538e0204ccc85038b3bb5fed2f /kernel/time/timer.c
parent8c6a13c269021e56287a7f250eb62e55790bce14 (diff)
downloadlinux-stable-36d7b99b7a7de6b3c4dd6c206fb52135f51ac609.tar.gz
linux-stable-36d7b99b7a7de6b3c4dd6c206fb52135f51ac609.tar.bz2
linux-stable-36d7b99b7a7de6b3c4dd6c206fb52135f51ac609.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 'kernel/time/timer.c')
0 files changed, 0 insertions, 0 deletions