Kuniyuki Iwashima 4cf771176d ratelimit: Fix data-races in ___ratelimit().
[ Upstream commit 6bae8ceb90ba76cdba39496db936164fa672b9be ]

While reading rs->interval and rs->burst, they can be changed
concurrently via sysctl (e.g. net_ratelimit_state).  Thus, we
need to add READ_ONCE() to their readers.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
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-09-05 10:25:04 +02:00
..
2017-08-15 09:02:08 -07:00
2019-04-20 09:15:07 +02:00
2022-07-12 16:27:29 +02:00
2018-02-16 20:23:04 +01:00
2018-12-08 13:03:35 +01:00
2020-11-05 11:06:58 +01:00
2017-08-15 09:02:07 -07:00