Re: [PATCH v2] vsock/virtio: fix kernel panic from virtio_transport_reset_no_sock

From: David Miller
Date: Fri Mar 08 2019 - 18:16:40 EST


From: Adalbert Lazăr <alazar@xxxxxxxxxxxxxxx>
Date: Wed, 6 Mar 2019 12:13:53 +0200

> Previous to commit 22b5c0b63f32 ("vsock/virtio: fix kernel panic
> after device hot-unplug"), vsock_core_init() was called from
> virtio_vsock_probe(). Now, virtio_transport_reset_no_sock() can be called
> before vsock_core_init() has the chance to run.
...
> Fixes: 22b5c0b63f32 ("vsock/virtio: fix kernel panic after device hot-unplug")
> Reported-by: Alexandru Herghelegiu <aherghelegiu@xxxxxxxxxxxxxxx>
> Signed-off-by: Adalbert Lazăr <alazar@xxxxxxxxxxxxxxx>
> Co-developed-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx>

Applied and queued up for -stable.