rxrpc kernel sockets hold additional reference to dst

David Howells dhowells at redhat.com
Thu Jan 28 05:21:01 EST 2021


Vadim Fedorenko <vfedorenko at novek.ru> wrote:

> @@ -833,10 +842,16 @@ static void rxrpc_sock_destructor(struct sock *sk)
>         _enter("%p", sk);
> 
>         rxrpc_purge_queue(&sk->sk_receive_queue);
> +       dst_release(sk->sk_rx_dst);

Um...  sk_rx_dst isn't used by rxrpc.  It's not a superclass of a UDP socket,
but rather points to one.  Putting a print statement on this shows that it's
NULL at this point.

David




More information about the linux-afs mailing list