Files
linux/net/core
Kuniyuki Iwashima 5088b4d4f9 ipv6: Fix data races around sk->sk_prot.
commit 364f997b5c upstream.

Commit 086d49058c ("ipv6: annotate some data-races around sk->sk_prot")
fixed some data-races around sk->sk_prot but it was not enough.

Some functions in inet6_(stream|dgram)_ops still access sk->sk_prot
without lock_sock() or rtnl_lock(), so they need READ_ONCE() to avoid
load tearing.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-05 09:14:50 +02:00
..
2022-03-08 19:12:41 +01:00
2021-07-22 00:52:04 -07:00
2024-07-05 09:14:11 +02:00