diff options
author | 2024-06-04 09:52:28 -0700 | |
---|---|---|
committer | 2024-06-06 12:57:14 +0200 | |
commit | 942238f9735a4a4ebf8274b218d9a910158941d1 (patch) | |
tree | 9239edf0c4e347bfa3f75e465f6027958c8e6c2b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | af_unix: Set sk->sk_state under unix_state_lock() for truly disconencted peer. (diff) | |
download | wireguard-linux-942238f9735a4a4ebf8274b218d9a910158941d1.tar.xz wireguard-linux-942238f9735a4a4ebf8274b218d9a910158941d1.zip |
af_unix: Annodate data-races around sk->sk_state for writers.
sk->sk_state is changed under unix_state_lock(), but it's read locklessly
in many places.
This patch adds WRITE_ONCE() on the writer side.
We will add READ_ONCE() to the lockless readers in the following patches.
Fixes: 83301b5367a9 ("af_unix: Set TCP_ESTABLISHED for datagram sockets too")
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