Kuniyuki Iwashima 1740e5922f icmp: Fix data-races around sysctl.
[ Upstream commit 48d7ee321ea5182c6a70782aa186422a70e67e22 ]

While reading icmp sysctl variables, they can be changed concurrently.
So, we need to add READ_ONCE() to avoid data-races.

Fixes: 4cdf507d5452 ("icmp: add a global rate limitation")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-21 20:40:31 +02:00
..
2022-02-08 18:15:26 +01:00
2022-07-21 20:40:31 +02:00
2022-07-07 17:30:09 +02:00
2021-06-30 08:49:12 -04:00