Files
twx-linux/lib
Kuniyuki Iwashima 509c21ea27 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-09-05 10:23:55 +02:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-04-20 09:07:54 +02:00
…
…
…
…
…
…
…
…
…
…
2022-07-12 16:26:25 +02:00
…
…
…
…
…
…
…
…
…
…
…
2018-10-18 09:13:24 +02:00
…
…
…
…
…
…
…
…