diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2024-06-04 09:52:36 -0700 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-06-06 12:57:15 +0200 |
commit | b0632e53e0da8054e36bc973f0eec69d30f1b7c6 (patch) | |
tree | 55f9a3cbd54faf873a66fd7b5f973ce927433a98 /tools/perf/scripts/python | |
parent | 0aa3be7b3e1f8f997312cc4705f8165e02806f8f (diff) |
af_unix: Annotate data-races around sk->sk_sndbuf.
sk_setsockopt() changes sk->sk_sndbuf under lock_sock(), but it's
not used in af_unix.c.
Let's use READ_ONCE() to read sk->sk_sndbuf in unix_writable(),
unix_dgram_sendmsg(), and unix_stream_sendmsg().
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions