diff options
author | Eric Dumazet <edumazet@google.com> | 2024-02-02 12:54:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-23 10:12:53 +0300 |
commit | caa064c3c2394d03e289ebd6b0be5102eb8a5b40 (patch) | |
tree | 472ccfd5a75478f8ea7451ce780d8eb637902dc3 /net/rxrpc | |
parent | 8726dfd0ff7e2c595d3ae29bda59099868274cdd (diff) | |
download | linux-caa064c3c2394d03e289ebd6b0be5102eb8a5b40.tar.xz |
inet: read sk->sk_family once in inet_recv_error()
[ Upstream commit eef00a82c568944f113f2de738156ac591bbd5cd ]
inet_recv_error() is called without holding the socket lock.
IPv6 socket could mutate to IPv4 with IPV6_ADDRFORM
socket option and trigger a KCSAN warning.
Fixes: f4713a3dfad0 ("net-timestamp: make tcp_recvmsg call ipv6_recv_error for AF_INET6 socks")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/rxrpc')
0 files changed, 0 insertions, 0 deletions