linux/net
Ilpo Järvinen 600ff0c24b [TCP]: Prevent pseudo garbage in SYN's advertized window
TCP may advertize up to 16-bits window in SYN packets (no window
scaling allowed). At the same time, TCP may have rcv_wnd
(32-bits) that does not fit to 16-bits without window scaling
resulting in pseudo garbage into advertized window from the
low-order bits of rcv_wnd. This can happen at least when
mss <= (1<<wscale) (see tcp_select_initial_window). This patch
fixes the handling of SYN advertized windows (compile tested
only).

In worst case (which is unlikely to occur though), the receiver
advertized window could be just couple of bytes. I'm not sure
that such situation would be handled very well at all by the
receiver!? Fortunately, the situation normalizes after the
first non-SYN ACK is received because it has the correct,
scaled window.

Alternatively, tcp_select_initial_window could be changed to
prevent too large rcv_wnd in the first place.

[ tcp_make_synack() has the same bug, and I've added a fix for
  that to this patch -DaveM ]

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-02-13 12:42:11 -08:00
..
802 [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
8021q [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
appletalk [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
atm [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
ax25 [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
bluetooth [NET] BLUETOOTH: Fix whitespace errors. 2007-02-10 23:19:20 -08:00
bridge [BRIDGE] br_if: Fix oops in port_carrier_check 2007-02-13 12:35:26 -08:00
core [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
dccp [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
decnet [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
econet [NET] ECONET: Fix whitespace errors. 2007-02-10 23:19:32 -08:00
ethernet [NET] ETHERNET: Fix whitespace errors. 2007-02-10 23:19:34 -08:00
ieee80211 [NET] IEEE80211: Fix whitespace errors. 2007-02-10 23:19:36 -08:00
ipv4 [TCP]: Prevent pseudo garbage in SYN's advertized window 2007-02-13 12:42:11 -08:00
ipv6 [IPV6] HASHTABLES: Use appropriate seed for caluculating ehash index. 2007-02-12 20:26:39 -08:00
ipx [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
irda [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
iucv [S390]: Add AF_IUCV socket support 2007-02-08 13:51:54 -08:00
key [XFRM]: Fix OOPSes in xfrm_audit_log(). 2007-02-12 13:53:54 -08:00
lapb [NET] LAPB: Fix whitespace errors. 2007-02-10 23:19:51 -08:00
llc [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
netfilter [NETFILTER]: nf_conntrack_tcp: make sysctl variables static 2007-02-12 11:16:58 -08:00
netlabel [NET] NETLABEL: Fix whitespace errors. 2007-02-10 23:19:56 -08:00
netlink [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
netrom [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
packet [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
rose [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
rxrpc [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
sched [NET_SCHED]: sch_hfsc: replace ASSERT macro by WARN_ON 2007-02-13 12:36:57 -08:00
sctp [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
sunrpc [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
tipc [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
unix [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
wanrouter [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
x25 [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
xfrm [XFRM]: Fix OOPSes in xfrm_audit_log(). 2007-02-12 13:53:54 -08:00
compat.c [NET]: Fix whitespace errors. 2007-02-10 23:20:27 -08:00
Kconfig [S390]: Rewrite of the IUCV base code, part 2 2007-02-08 13:37:42 -08:00
Makefile [S390]: Rewrite of the IUCV base code, part 2 2007-02-08 13:37:42 -08:00
nonet.c [PATCH] Make most file operations structs in fs/ const 2006-03-28 09:16:06 -08:00
socket.c [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
sysctl_net.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
TUNABLE