diff options
author | Eric Dumazet <edumazet@google.com> | 2022-05-13 21:55:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-16 12:31:06 +0300 |
commit | e5fccaa1eb7f6116deab0f708a787e2de915869f (patch) | |
tree | ff0e94f52041131be7d9138d491325335c95f2bc /fs/binfmt_elf_test.c | |
parent | fdb5fd7f736ec7ae9fb36d2842ea6d9ebc4e7269 (diff) | |
download | linux-e5fccaa1eb7f6116deab0f708a787e2de915869f.tar.xz |
net: core: add READ_ONCE/WRITE_ONCE annotations for sk->sk_bound_dev_if
sock_bindtoindex_locked() needs to use WRITE_ONCE(sk->sk_bound_dev_if, val),
because other cpus/threads might locklessly read this field.
sock_getbindtodevice(), sock_getsockopt() need READ_ONCE()
because they run without socket lock held.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/binfmt_elf_test.c')
0 files changed, 0 insertions, 0 deletions