Commit 0d5ff835 authored by Eric Dumazet's avatar Eric Dumazet Committed by sanglipeng
Browse files

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

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



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

[ Upstream commit 74bc0843 ]

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

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