Files
linux/net/core
Kuniyuki Iwashima 2100bbf55e af_unix: Fix data race around sk->sk_err.
[ Upstream commit b192812905 ]

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 cc04410af7 ("af_unix:
annotate lockless accesses to sk->sk_err").

Fixes: 1da177e4c3 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:28:02 +02:00
..
2022-05-16 11:33:59 +01:00
2022-06-09 21:52:55 -07:00
2021-12-16 07:18:35 -08:00
2023-03-10 09:33:54 +01:00
2020-06-18 20:46:23 -07:00