[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120601.142412.1490248352687260207.davem@davemloft.net>
Date: Fri, 01 Jun 2012 14:24:12 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: hans.schillstrom@...csson.com, netdev@...r.kernel.org,
brouer@...hat.com, ncardwell@...gle.com, therbert@...gle.com
Subject: Re: [PATCH] tcp: do not create inetpeer on SYNACK message
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 01 Jun 2012 09:00:26 +0200
> From: Eric Dumazet <edumazet@...gle.com>
>
> Another problem on SYNFLOOD/DDOS attack is the inetpeer cache getting
> larger and larger, using lots of memory and cpu time.
>
> tcp_v4_send_synack()
> ->inet_csk_route_req()
> ->ip_route_output_flow()
> ->rt_set_nexthop()
> ->rt_init_metrics()
> ->inet_getpeer( create = true)
>
> This is a side effect of commit a4daad6b09230 (net: Pre-COW metrics for
> TCP) added in 2.6.39
>
> Possible solution :
>
> Instruct inet_csk_route_req() to remove FLOWI_FLAG_PRECOW_METRICS
...
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
This is definitely the right thing to do.
Applied, thanks Eric.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists