linux/drivers/vhost
Jason Wang bcfe7d40d2 vhost_net: stop device during reset owner
commit 4cd879515d upstream.

We don't stop device before reset owner, this means we could try to
serve any virtqueue kick before reset dev->worker. This will result a
warn since the work was pending at llist during owner resetting. Fix
this by stopping device during owner reset.

Reported-by: syzbot+eb17c6162478cc50632c@syzkaller.appspotmail.com
Fixes: 3a4d5c94e9 ("vhost_net: a kernel-level virtio server")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-06-16 22:22:02 +01:00
..
Kconfig vhost: Make vhost a separate module 2013-07-07 17:33:44 +03:00
Makefile vhost: Make vhost a separate module 2013-07-07 17:33:44 +03:00
net.c vhost_net: stop device during reset owner 2018-06-16 22:22:02 +01:00
scsi.c vhost/scsi: potential memory corruption 2015-03-03 14:26:02 +00:00
test.c vhost: move memory pointer to VQs 2014-06-09 16:21:07 +03:00
test.h vhost test module 2010-12-09 16:00:21 +02:00
vhost.c drivers/vhost: Fix mmu_context.h assumption 2018-01-09 00:35:08 +00:00
vhost.h vhost: move memory pointer to VQs 2014-06-09 16:21:07 +03:00
vringh.c Add missing module license tag to vring helpers. 2013-05-08 10:49:03 +09:30