Files
linux-stable-mirror/lib
Kuniyuki Iwashima 0db9ce822f ratelimit: Fix data-races in ___ratelimit().
[ Upstream commit 6bae8ceb90 ]

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: 1da177e4c3 ("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-08-31 17:16:43 +02:00
..
2022-05-18 10:26:49 +02:00
2021-09-08 11:50:26 -07:00
2022-07-12 16:35:18 +02:00
2022-06-22 14:22:03 +02:00
2022-06-22 14:22:03 +02:00
2022-06-22 14:22:03 +02:00
2021-09-17 13:52:17 +01:00