mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
ad6dc1daaf
If mlx5_vdpa gets unloaded while a VM is running, the workqueue will be
destroyed. However, vhost might still have reference to the kick
function and might attempt to push new works. This could lead to null
pointer dereference.
To fix this, set mvdev->wq to NULL just before destroying and verify
that the workqueue is not NULL in mlx5_vdpa_kick_vq before attempting to
push a new work.
Fixes:
|
||
---|---|---|
.. | ||
alibaba | ||
ifcvf | ||
mlx5 | ||
vdpa_sim | ||
vdpa_user | ||
virtio_pci | ||
Kconfig | ||
Makefile | ||
vdpa.c |