Re: [PATCH] vhost-vdpa: fix NULL pointer deref in _compat_vdpa_reset

2023-10-24 Thread Dragos Tatulea via Virtualization
On Mon, 2023-10-23 at 16:14 -0700, Si-Wei Liu wrote: > As subject. There's a vhost_vdpa_reset() done earlier before > vhost_dev is initialized via vhost_dev_init(), ending up with > NULL pointer dereference. Fix is to check if vqs is initialized > before checking backend features and resetting the

[PATCH] vhost-vdpa: fix NULL pointer deref in _compat_vdpa_reset

2023-10-23 Thread Si-Wei Liu
As subject. There's a vhost_vdpa_reset() done earlier before vhost_dev is initialized via vhost_dev_init(), ending up with NULL pointer dereference. Fix is to check if vqs is initialized before checking backend features and resetting the device. BUG: kernel NULL pointer dereference, address: 000