Files
linux/net/ipv4
Eric Dumazet 137a954db9 tcp: fix syncookie regression
[ Upstream commit dfd25ffffc ]

commit ea4fc0d619 (ipv4: Don't use rt->rt_{src,dst} in ip_queue_xmit())
added a serious regression on synflood handling.

Simon Kirby discovered a successful connection was delayed by 20 seconds
before being responsive.

In my tests, I discovered that xmit frames were lost, and needed ~4
retransmits and a socket dst rebuild before being really sent.

In case of syncookie initiated connection, we use a different path to
initialize the socket dst, and inet->cork.fl.u.ip4 is left cleared.

As ip_queue_xmit() now depends on inet flow being setup, fix this by
copying the temp flowi4 we use in cookie_v4_check().

Reported-by: Simon Kirby <sim@netnation.com>
Bisected-by: Simon Kirby <sim@netnation.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Tested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-03-23 11:20:51 -07:00
..
2012-02-03 09:18:54 -08:00
2011-04-22 11:04:14 -07:00
2011-03-12 15:08:49 -08:00
2011-08-15 18:31:39 -07:00
2011-02-01 15:35:25 -08:00
2011-05-24 01:13:12 -04:00
2012-02-29 16:34:18 -08:00
2012-03-23 11:20:51 -07:00
2011-05-17 14:16:58 -04:00
2012-03-23 11:20:51 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-07-07 00:27:05 -07:00
2010-10-27 11:37:32 -07:00
2011-07-07 00:27:05 -07:00
2010-07-12 12:57:54 -07:00