[PATCH RESEND] vsock/virtio: Initialize core virtio vsock before registering the driver

2019-05-19 Thread Jorge E. Moreira via Virtualization
Avoid a race in which static variables in net/vmw_vsock/af_vsock.c are accessed (while handling interrupts) before they are initialized. [4.201410] BUG: unable to handle kernel paging request at ffe8 [4.207829] IP: vsock_addr_equals_addr+0x3/0x20 [4.211379] PGD 28210067 P4D

Re: [PATCH RESEND] vsock/virtio: Initialize core virtio vsock before registering the driver

2019-05-18 Thread David Miller
From: "Jorge E. Moreira" Date: Thu, 16 May 2019 13:51:07 -0700 > Avoid a race in which static variables in net/vmw_vsock/af_vsock.c are > accessed (while handling interrupts) before they are initialized. ... > Fixes: 22b5c0b63f32 ("vsock/virtio: fix kernel panic after device hot-unplug") > Cc: S

Re: [PATCH RESEND] vsock/virtio: Initialize core virtio vsock before registering the driver

2019-05-17 Thread Stefan Hajnoczi
On Thu, May 16, 2019 at 01:51:07PM -0700, Jorge E. Moreira wrote: > Avoid a race in which static variables in net/vmw_vsock/af_vsock.c are > accessed (while handling interrupts) before they are initialized. > > [4.201410] BUG: unable to handle kernel paging request at ffe8 > [4