]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: add missing READ_ONCE(sk->sk_sndbuf) annotation
authorEric Dumazet <edumazet@google.com>
Fri, 28 Jul 2023 15:03:13 +0000 (15:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 13:13:51 +0000 (15:13 +0200)
commit98f0d1db3a274400d480a3214d7ebb5d21f480f7
tree82bfbd8105e725eaf9c47d900d718de9b5104344
parent0d1047b77b237d36dedb88581582fd0bf92a02dc
net: add missing READ_ONCE(sk->sk_sndbuf) annotation

[ Upstream commit 74bc084327c643499474ba75df485607da37dd6e ]

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

Fixes: e292f05e0df7 ("tcp: annotate sk->sk_sndbuf lockless reads")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/sock.c