Re: [PATCH v3] virtio_vsock: Fix race condition in virtio_transport_recv_pkt()

From: Markus Elfring
Date: Sat May 30 2020 - 06:41:08 EST

> This fixes it by checking sk->sk_shutdown(suggested by Stefano) after
> lock_sock since sk->sk_shutdown is set to SHUTDOWN_MASK under the
> protection of lock_sock_nested.

How do you think about a wording variant like the following?

Thus check the data structure member âsk_shutdownâ (suggested by Stefano)
after a call of the function âlock_sockâ since this field is set to
âSHUTDOWN_MASKâ under the protection of âlock_sock_nestedâ.

Would you like to add the tag âFixesâ to the commit message?