Skip to content
Commit ea091017 authored by Kuniyuki Iwashima's avatar Kuniyuki Iwashima Committed by Bruce Ashfield
Browse files

ipv6: Fix data races around sk->sk_prot.

commit 364f997b upstream.

Commit 086d4905 ("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: 1da177e4

 ("Linux-2.6.12-rc2")
Signed-off-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarPaul Gortmaker <paulg@kernel.org>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent ff8710da
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment