diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2023-09-01 17:27:08 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-09-04 11:06:16 +0100 |
commit | b192812905e4b134f7b7994b079eb647e9d2d37e (patch) | |
tree | 332b4a89cd819ad45d81d5465c093852942323af /scripts/gdb/linux/utils.py | |
parent | afe8764f76346ba838d4f162883e23d2fcfaa90e (diff) |
af_unix: Fix data race around sk->sk_err.
As with sk->sk_shutdown shown in the previous patch, sk->sk_err can be
read locklessly by unix_dgram_sendmsg().
Let's use READ_ONCE() for sk_err as well.
Note that the writer side is marked by commit cc04410af7de ("af_unix:
annotate lockless accesses to sk->sk_err").
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions