]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: annotate data-races around sk->sk_bind_phc
authorEric Dumazet <edumazet@google.com>
Thu, 31 Aug 2023 13:52:12 +0000 (13:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:10:23 +0000 (17:10 +0100)
commitac5fde92b5103d2fcb4aa72cb01e2dd714d704c9
treee9de7daa34703463ecd0bb2cfd845a7a469d811e
parentc48fcb4f49061b8bdda946474215ba8c4e8c27b6
net: annotate data-races around sk->sk_bind_phc

[ Upstream commit 251cd405a9e6e70b92fe5afbdd17fd5caf9d3266 ]

sk->sk_bind_phc is read locklessly. Add corresponding annotations.

Fixes: d463126e23f1 ("net: sock: extend SO_TIMESTAMPING for PHC binding")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 7f6ca95d16b9 ("net: Implement missing getsockopt(SO_TIMESTAMPING_NEW)")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/sock.c
net/socket.c