Mao Wenan
7e332a5c0e
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: e88c64f0a4 ("tcp: allow effective reduction of TCP's rcv-buffer via setsockopt")
Signed-off-by: Mao Wenan <[email protected] >
Signed-off-by: Eric Dumazet <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2020-11-18 19:20:32 +01:00
..
ila
netfilter
netfilter: use actual socket sk rather than skb sk when routing harder
2020-11-18 19:20:17 +01:00
addrconf.c
ipv6: don't auto-add link-local address to lag ports
2020-04-13 10:48:02 +02:00
addrconf_core.c
addrlabel.c
af_inet6.c
ah6.c
anycast.c
ipv6: fix memory leaks on IPV6_ADDRFORM path
2020-08-11 15:33:39 +02:00
calipso.c
netlabel: cope with NULL catmap
2020-05-20 08:20:08 +02:00
datagram.c
esp6.c
esp6_offload.c
esp6: get the right proto for transport mode in esp6_gso_encap
2020-06-03 08:21:35 +02:00
exthdrs.c
exthdrs_core.c
exthdrs_offload.c
fib6_notifier.c
fib6_rules.c
fou6.c
icmp.c
ip: Fix SO_MARK in RST, ACK and ICMP packets
2020-07-22 09:32:50 +02:00
inet6_connection_sock.c
net: add bool confirm_neigh parameter for dst_ops.update_pmtu
2020-01-04 19:18:58 +01:00
inet6_hashtables.c
ip6_checksum.c
ip6_fib.c
net: fix pos incrementment in ipv6_route_seq_next
2020-10-29 09:57:23 +01:00
ip6_flowlabel.c
ip6_gre.c
ip6_gre: fix null-ptr-deref in ip6gre_init_net()
2020-07-31 18:39:30 +02:00
ip6_icmp.c
ip6_input.c
ip6_offload.c
ip6_offload.h
ip6_output.c
ip6_tunnel.c
gre6: Fix reception with IP6_TNL_F_RCV_DSCP_COPY
2020-09-03 11:26:39 +02:00
ip6_udp_tunnel.c
ip6_vti.c
vti6: Fix memory leak of skb if input policy check fails
2020-04-01 11:02:12 +02:00
ip6mr.c
net: don't return invalid table id error when we fall back to PF_UNSPEC
2020-06-03 08:20:41 +02:00
ipcomp6.c
ipv6_sockglue.c
ipv6: fix memory leaks on IPV6_ADDRFORM path
2020-08-11 15:33:39 +02:00
Kconfig
net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC
2020-09-26 18:03:13 +02:00
Makefile
mcast.c
mld: fix memory leak in ipv6_mc_destroy_dev()
2020-06-30 15:36:43 -04:00
mcast_snoop.c
mip6.c
ndisc.c
netfilter.c
netfilter: use actual socket sk rather than skb sk when routing harder
2020-11-18 19:20:17 +01:00
output_core.c
ping.c
proc.c
protocol.c
raw.c
reassembly.c
route.c
ipv6: Fix nexthop refcnt leak when creating ipv6 route info
2020-08-11 15:33:39 +02:00
seg6.c
seg6_hmac.c
seg6_iptunnel.c
seg6_local.c
ipv6: sr: remove SKB_GSO_IPXIP6 on End.D* actions
2020-01-29 16:45:20 +01:00
sit.c
IPv6: Set SIT tunnel hard_header_len to zero
2020-11-18 19:20:32 +01:00
syncookies.c
net: Update window_clamp if SOCK_RCVBUF is set
2020-11-18 19:20:32 +01:00
sysctl_net_ipv6.c
ipv6: Fix sysctl max for fib_multipath_hash_policy
2020-09-12 14:18:55 +02:00
tcp_ipv6.c
tcpv6_offload.c
tunnel6.c
udp.c
udp: Improve load balancing for SO_REUSEPORT.
2020-07-31 18:39:31 +02:00
udp_impl.h
udp_offload.c
udplite.c
xfrm6_input.c
xfrm6_output.c
xfrm: Always set XFRM_TRANSFORMED in xfrm{4,6}_output_finish
2020-04-29 16:33:11 +02:00
xfrm6_policy.c
net: add bool confirm_neigh parameter for dst_ops.update_pmtu
2020-01-04 19:18:58 +01:00
xfrm6_protocol.c
xfrm6_state.c
xfrm6_tunnel.c