Skip to content

icmp: better deal with DDOS

Eric Dumazet netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesApplied 5/5
  2. v15 patches 6 repliesSuperseded

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5icmp: prevent possible overflow in icmp_global_allow()net/ipv4/icmp.c+2 -10 repliesApplied
2/5inet: move icmp_global_{credit,stamp} to a separate cache lineinclude/net/netns/ipv4.h+7 -20 repliesApplied
3/5ipv6: icmp: remove obsolete code in icmpv6_xrlim_allow()Documentation/networking/ip-sysctl.rst net/ipv6/af_inet6.c net/ipv6/icmp.c+6 -100 repliesApplied
4/5ipv4: icmp: icmpv4_xrlim_allow() optimization if net.ipv4.icmp_ratelimit is zeronet/ipv4/icmp.c+10 -40 repliesApplied
5/5ipv6: icmp: icmpv6_xrlim_allow() optimization if net.ipv6.icmp.ratelimit is zeronet/ipv6/icmp.c+6 -20 repliesApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchKuniyuki Iwashima
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net 0/5] icmp: better deal with DDOS

When dealing with death of big UDP servers, admins might want to increase net.ipv4.icmp_msgs_per_sec and net.ipv4.icmp_msgs_burst to big values (2,000,000 or more).

They also might need to tune the per-host ratelimit to 1ms or 0ms in favor of the global rate limit.

This series fixes bugs showing up in all these needs.

Eric Dumazet (5):
icmp: prevent possible overflow in icmp_global_allow()
inet: move icmp_global_{credit,stamp} to a separate cache line
ipv6: icmp: remove obsolete code in icmpv6_xrlim_allow()
ipv4: icmp: icmpv4_xrlim_allow() optimization if
net.ipv4.icmp_ratelimit is zero
ipv6: icmp: icmpv6_xrlim_allow() optimization if
net.ipv6.icmp.ratelimit is zero

 Documentation/networking/ip-sysctl.rst |  7 ++++---
 include/net/netns/ipv4.h               |  9 +++++++--
 net/ipv4/icmp.c                        | 17 ++++++++++++-----
 net/ipv6/af_inet6.c                    |  2 +-
 net/ipv6/icmp.c                        | 15 +++++++--------
 5 files changed, 31 insertions(+), 19 deletions(-)
Signature · 1 line
2.53.0.310.g728cabbaf7-goog