diff options
author | Eric Dumazet <edumazet@google.com> | 2024-12-19 15:03:30 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-20 13:04:40 -0800 |
commit | 05dd04b218f42c57a14e330fd8583995f141ed6b (patch) | |
tree | 3ddeeb723012bd6ebc2fd67c8bf1c38a5d0da269 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 710aebdad633d4608568ba8124d643e01866fc6d (diff) |
inetpeer: avoid false sharing in inet_peer_xrlim_allow()
Under DOS, inet_peer_xrlim_allow() might be called millions
of times per second from different cpus.
Make sure to write over peer->rate_tokens and peer->rate_last
only when really needed.
Note the inherent races of this function are still there,
we do not care of precise ICMP rate limiting.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20241219150330.3159027-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions