Eric Dumazet eef00a82c5 inet: read sk->sk_family once in inet_recv_error()
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>
2024-02-04 16:06:53 +00:00
..
2023-10-25 10:38:07 +01:00
2023-04-13 16:43:38 -07:00
2024-01-04 10:23:10 -08:00
2023-10-16 21:05:33 -07:00
2022-12-20 03:13:45 +01:00
2024-01-29 12:07:35 +00:00
2023-09-14 16:16:36 +02:00
2023-08-29 17:39:15 -07:00