diff options
author | Kuniyuki Iwashima | 2022-08-23 10:46:48 -0700 |
---|---|---|
committer | David S. Miller | 2022-08-24 13:46:57 +0100 |
commit | 6bae8ceb90ba76cdba39496db936164fa672b9be (patch) | |
tree | 6b4e9de4005b45f341c5ef7e66f133e82bb90972 /net/ipv4/ip_sockglue.c | |
parent | 61adf447e38664447526698872e21c04623afb8e (diff) |
ratelimit: Fix data-races in ___ratelimit().
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>
Diffstat (limited to 'net/ipv4/ip_sockglue.c')
0 files changed, 0 insertions, 0 deletions