diff options
author | Eric Dumazet <[email protected]> | 2024-02-02 09:54:04 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-02-04 16:06:53 +0000 |
commit | eef00a82c568944f113f2de738156ac591bbd5cd (patch) | |
tree | 0eaec5c81ee4d5e72adab9e1bb89edf7ea019632 /scripts/generate_rust_analyzer.py | |
parent | 9cae43da9867412f8bd09aee5c8a8dc5e8dc3dc2 (diff) |
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 <[email protected]>
Cc: Willem de Bruijn <[email protected]>
Reviewed-by: Willem de Bruijn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions