diff options
author | 2024-06-04 09:52:30 -0700 | |
---|---|---|
committer | 2024-06-06 12:57:14 +0200 | |
commit | eb0718fb3e97ad0d6f4529b810103451c90adf94 (patch) | |
tree | 65dc6bc0c97752c8ac14bb622b9da3581b2affed /tools/perf/scripts/python/export-to-postgresql.py | |
parent | af_unix: Annotate data-race of sk->sk_state in unix_inq_len(). (diff) | |
download | wireguard-linux-eb0718fb3e97ad0d6f4529b810103451c90adf94.tar.xz wireguard-linux-eb0718fb3e97ad0d6f4529b810103451c90adf94.zip |
af_unix: Annotate data-races around sk->sk_state in unix_write_space() and poll().
unix_poll() and unix_dgram_poll() read sk->sk_state locklessly and
calls unix_writable() which also reads sk->sk_state without holding
unix_state_lock().
Let's use READ_ONCE() in unix_poll() and unix_dgram_poll() and pass
it to unix_writable().
While at it, we remove TCP_SYN_SENT check in unix_dgram_poll() as
that state does not exist for AF_UNIX socket since the code was added.
Fixes: 1586a5877db9 ("af_unix: do not report POLLOUT on listeners")
Fixes: 3c73419c09a5 ("af_unix: fix 'poll for write'/ connected DGRAM sockets")
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions