]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: Annotate data-race around sk->sk_mark in tcp_v4_send_reset
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 7 Jan 2025 10:14:39 +0000 (11:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2025 12:34:39 +0000 (13:34 +0100)
commit636d7b95c229a9bebd8aaf433efa2bfdb14df1ea
tree59551d2a012e658ec184ab52c9897f99835a9615
parentfaa8a33e866283ddbcc862359d3e3e25b30d6114
tcp: Annotate data-race around sk->sk_mark in tcp_v4_send_reset

[ Upstream commit 80fb40baba19e25a1b6f3ecff6fc5c0171806bde ]

This is a follow-up to 3c5b4d69c358 ("net: annotate data-races around
sk->sk_mark"). sk->sk_mark can be read and written without holding
the socket lock. IPv6 equivalent is already covered with READ_ONCE()
annotation in tcp_v6_send_response().

Fixes: 3c5b4d69c358 ("net: annotate data-races around sk->sk_mark")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/f459d1fc44f205e13f6d8bdca2c8bfb9902ffac9.1736244569.git.daniel@iogearbox.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/tcp_ipv4.c