net: annotate data-races around sk->sk_mark
authorEric Dumazet <edumazet@google.com>
Fri, 28 Jul 2023 15:03:15 +0000 (15:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 10:08:14 +0000 (12:08 +0200)
commitb53468041d20177c8b8808d1891c0145718ceadf
treed2af7b8b8f9b9271e738df72a7bfabb3f33461b3
parentc7bb6860645f83134842e27a2fd1c1449edc5d80
net: annotate data-races around sk->sk_mark

[ Upstream commit 3c5b4d69c358a9275a8de98f87caf6eda644b086 ]

sk->sk_mark is often read while another thread could change the value.

Fixes: 4a19ec5800fc ("[NET]: Introducing socket mark socket option.")
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>
22 files changed:
include/net/inet_sock.h
include/net/ip.h
include/net/route.h
net/core/sock.c
net/dccp/ipv6.c
net/ipv4/inet_diag.c
net/ipv4/ip_output.c
net/ipv4/route.c
net/ipv4/tcp_ipv4.c
net/ipv6/ping.c
net/ipv6/raw.c
net/ipv6/route.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c
net/l2tp/l2tp_ip6.c
net/mptcp/sockopt.c
net/netfilter/nft_socket.c
net/netfilter/xt_socket.c
net/packet/af_packet.c
net/smc/af_smc.c
net/xdp/xsk.c
net/xfrm/xfrm_policy.c