tcp: drop SYN+FIN messages
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 2 Dec 2011 23:41:42 +0000 (23:41 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 25 Jul 2012 03:10:55 +0000 (04:10 +0100)
commite6364fb003c0bc98c5fcde51aac6fd3b6a1337c3
tree0797bf812639c3b808177f42883478138ee53f1a
parentc0159c780e8d42309d04e83271986274d3880826
tcp: drop SYN+FIN messages

commit fdf5af0daf8019cec2396cdef8fb042d80fe71fa upstream.

Denys Fedoryshchenko reported that SYN+FIN attacks were bringing his
linux machines to their limits.

Dont call conn_request() if the TCP flags includes SYN flag

Reported-by: Denys Fedoryshchenko <denys@visp.net.lb>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv4/tcp_input.c