summaryrefslogtreecommitdiff
path: root/crypto/ansi_cprng.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@amazon.com>2022-08-23 20:46:48 +0300
committerDavid S. Miller <davem@davemloft.net>2022-08-24 15:46:57 +0300
commit6bae8ceb90ba76cdba39496db936164fa672b9be (patch)
tree6b4e9de4005b45f341c5ef7e66f133e82bb90972 /crypto/ansi_cprng.c
parent61adf447e38664447526698872e21c04623afb8e (diff)
downloadlinux-6bae8ceb90ba76cdba39496db936164fa672b9be.tar.xz
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 'crypto/ansi_cprng.c')
0 files changed, 0 insertions, 0 deletions