]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: rate limit synflood warnings further
authorWillem de Bruijn <willemb@google.com>
Sun, 9 Sep 2018 23:12:12 +0000 (19:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Sep 2018 06:34:20 +0000 (23:34 -0700)
commitefa1d0eee159fc3fdd797fa7eab329b7296a8b61
tree66398fef2588f20e0fad2083b18465089995bb0a
parentc06ac9e4af5bd34cac6e895eb82a3bbefc00060a
tcp: rate limit synflood warnings further

Convert pr_info to net_info_ratelimited to limit the total number of
synflood warnings.

Commit d7afd300e9ae ("tcp: Change possible SYN flooding messages")
rate limits synflood warnings to one per listener.

Workloads that open many listener sockets can still see a high rate of
log messages. Syzkaller is one frequent example.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c