Commit 9a651a01 authored by Eric Dumazet's avatar Eric Dumazet Committed by sanglipeng
Browse files

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

stable inclusion
from stable-v5.10.190
commit 11e0590af33383ea3a745ae7452dea4f1f19eba2
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=11e0590af33383ea3a745ae7452dea4f1f19eba2



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

[ Upstream commit b4b55325 ]

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

Fixes: ebb3b78d ("tcp: annotate sk->sk_rcvbuf 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 0d5ff835
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment