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/bin | |
| parent | af_unix: Annotate data-races around sk->sk_state in UNIX_DIAG. (diff) | |
| download | linux-b0632e53e0da8054e36bc973f0eec69d30f1b7c6.tar.gz linux-b0632e53e0da8054e36bc973f0eec69d30f1b7c6.zip | |
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/bin')
0 files changed, 0 insertions, 0 deletions
