Commit 256eb5b8 authored by Eric Dumazet's avatar Eric Dumazet Committed by sanglipeng
Browse files

net: add missing READ_ONCE(sk->sk_rcvlowat) annotation

stable inclusion
from stable-v5.10.190
commit 427c611d846d9c5198f498d2f13ff940683606d4
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=427c611d846d9c5198f498d2f13ff940683606d4



--------------------------------

[ Upstream commit e6d12bdb ]

In a prior commit, I forgot to change sk_getsockopt()
when reading sk->sk_rcvlowat locklessly.

Fixes: eac66402 ("net: annotate sk->sk_rcvlowat lockless reads")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 2d6f44c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment