============================================
WARNING: possible recursive locking detected
4.15.0-rc8+ #269 Not tainted
--------------------------------------------
syz-executor2/4797 is trying to acquire lock:
 (&vq->mutex){+.+.}, at: [<000000006c768aef>] vhost_dev_lock_vqs drivers/vhost/vhost.c:907 [inline]
 (&vq->mutex){+.+.}, at: [<000000006c768aef>] vhost_process_iotlb_msg drivers/vhost/vhost.c:997 [inline]
 (&vq->mutex){+.+.}, at: [<000000006c768aef>] vhost_chr_write_iter+0x278/0x1580 drivers/vhost/vhost.c:1046

but task is already holding lock:
 (&vq->mutex){+.+.}, at: [<000000006c768aef>] vhost_dev_lock_vqs drivers/vhost/vhost.c:907 [inline]
 (&vq->mutex){+.+.}, at: [<000000006c768aef>] vhost_process_iotlb_msg drivers/vhost/vhost.c:997 [inline]
 (&vq->mutex){+.+.}, at: [<000000006c768aef>] vhost_chr_write_iter+0x278/0x1580 drivers/vhost/vhost.c:1046

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(&vq->mutex);
  lock(&vq->mutex);

 *** DEADLOCK ***

 May be due to missing lock nesting notation

1 lock held by syz-executor2/4797:
 #0:  (&vq->mutex){+.+.}, at: [<000000006c768aef>] vhost_dev_lock_vqs drivers/vhost/vhost.c:907 [inline]
 #0:  (&vq->mutex){+.+.}, at: [<000000006c768aef>] vhost_process_iotlb_msg drivers/vhost/vhost.c:997 [inline]
 #0:  (&vq->mutex){+.+.}, at: [<000000006c768aef>] vhost_chr_write_iter+0x278/0x1580 drivers/vhost/vhost.c:1046

stack backtrace:
CPU: 1 PID: 4797 Comm: syz-executor2 Not tainted 4.15.0-rc8+ #269
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x194/0x257 lib/dump_stack.c:53
 print_deadlock_bug kernel/locking/lockdep.c:1756 [inline]
 check_deadlock kernel/locking/lockdep.c:1800 [inline]
 validate_chain kernel/locking/lockdep.c:2396 [inline]
 __lock_acquire+0xe8f/0x3e00 kernel/locking/lockdep.c:3426
 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3914
 __mutex_lock_common kernel/locking/mutex.c:756 [inline]
 __mutex_lock+0x16f/0x1a80 kernel/locking/mutex.c:893
 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908
 vhost_dev_lock_vqs drivers/vhost/vhost.c:907 [inline]
 vhost_process_iotlb_msg drivers/vhost/vhost.c:997 [inline]
 vhost_chr_write_iter+0x278/0x1580 drivers/vhost/vhost.c:1046
 vhost_net_chr_write_iter+0x59/0x70 drivers/vhost/net.c:1353
 call_write_iter include/linux/fs.h:1772 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x684/0x970 fs/read_write.c:482
 vfs_write+0x189/0x510 fs/read_write.c:544
 SYSC_write fs/read_write.c:589 [inline]
 SyS_write+0xef/0x220 fs/read_write.c:581
 entry_SYSCALL_64_fastpath+0x29/0xa0
RIP: 0033:0x452ee9
RSP: 002b:00007fe7baee3c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452ee9
RDX: 0000000000000068 RSI: 00000000208baf98 RDI: 0000000000000013
RBP: 0000000000000624 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f8400
R13: 00000000ffffffff R14: 00007fe7baee46d4 R15: 0000000000000000
kauditd_printk_skb: 55 callbacks suppressed
audit: type=1400 audit(1516426867.620:74): avc:  denied  { dac_override } for  pid=4803 comm="syz-executor1" capability=1  scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1
mmap: syz-executor3 (4809) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt.
audit: type=1400 audit(1516426867.620:75): avc:  denied  { ipc_owner } for  pid=4794 comm="syz-executor6" capability=15  scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1
audit: type=1400 audit(1516426867.740:76): avc:  denied  { dac_read_search } for  pid=4820 comm="syz-executor3" capability=2  scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1
capability: warning: `syz-executor6' uses 32-bit capabilities (legacy support in use)
audit: type=1400 audit(1516426868.341:77): avc:  denied  { prog_load } for  pid=4849 comm="syz-executor3" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1
audit: type=1400 audit(1516426868.412:78): avc:  denied  { prog_run } for  pid=4849 comm="syz-executor3" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1
audit: type=1326 audit(1516426868.413:79): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=4881 comm="syz-executor2" exe="/root/syz-executor2" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426868.413:80): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=4881 comm="syz-executor2" exe="/root/syz-executor2" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426868.422:81): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=4881 comm="syz-executor2" exe="/root/syz-executor2" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426868.422:82): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=4881 comm="syz-executor2" exe="/root/syz-executor2" sig=0 arch=c000003e syscall=228 compat=0 ip=0x455c8a code=0x7ffc0000
audit: type=1326 audit(1516426868.422:83): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=4881 comm="syz-executor2" exe="/root/syz-executor2" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000
tty_warn_deprecated_flags: 'syz-executor3' is using deprecated serial flags (with no effect): 00008700
rdma_op 00000000de47ca0d conn xmit_rdma           (null)
dccp_close: ABORT with 2 bytes unread
tc_dump_action: action bad kind
QAT: Invalid ioctl
QAT: Invalid ioctl
9pnet_virtio: no channels available for device ./file0
QAT: Invalid ioctl
QAT: Invalid ioctl
9pnet_virtio: no channels available for device ./file0
tc_dump_action: action bad kind
binder: BINDER_SET_CONTEXT_MGR already set
binder_alloc: 5491: binder_alloc_buf, no vma
binder: 5491:5512 ioctl 40046207 0 returned -16
binder: 5491:5492 transaction failed 29189/-3, size 40-8 line 2903
binder: undelivered TRANSACTION_ERROR: 29189
binder: release 5491:5492 transaction 2 out, still active
binder: unexpected work type, 4, not freed
binder: undelivered TRANSACTION_COMPLETE
binder: send failed reply for transaction 2, target dead
SELinux:  unknown mount option
SELinux:  unknown mount option
QAT: Invalid ioctl
QAT: failed to copy from user.
QAT: Invalid ioctl
QAT: failed to copy from user.
QAT: Invalid ioctl
QAT: Invalid ioctl
sctp: [Deprecated]: syz-executor5 (pid 5773) Use of struct sctp_assoc_value in delayed_ack socket option.
Use struct sctp_sack_info instead
TCP: request_sock_TCPv6: Possible SYN flooding on port 20006. Sending cookies.  Check SNMP counters.
QAT: Invalid ioctl
QAT: Invalid ioctl
binder: 5955:5959 BC_FREE_BUFFER u00000000204edf8a no match
binder_alloc: binder_alloc_mmap_handler: 5955 20000000-20002000 already mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 5955:5959 ioctl 40046207 0 returned -16
binder: release 5955:5959 transaction 7 out, still active
binder: unexpected work type, 4, not freed
binder: undelivered TRANSACTION_COMPLETE
binder: undelivered TRANSACTION_COMPLETE
binder: send failed reply for transaction 7, target dead
binder: undelivered transaction 10, process died.
binder: 5993:6003 got new transaction with bad transaction stack, transaction 12 has target 5993:0
binder: 5993:6003 transaction failed 29201/-71, size 0-0 line 2815
binder: BINDER_SET_CONTEXT_MGR already set
binder: 5993:6023 ioctl 40046207 0 returned -16
binder_alloc: 5993: binder_alloc_buf, no vma
binder: 5993:6003 transaction failed 29189/-3, size 40-8 line 2903
binder: undelivered TRANSACTION_ERROR: 29189
binder: release 5993:6003 transaction 12 out, still active
binder: unexpected work type, 4, not freed
binder: undelivered TRANSACTION_COMPLETE
binder: undelivered TRANSACTION_ERROR: 29201
binder: send failed reply for transaction 12, target dead
kauditd_printk_skb: 150 callbacks suppressed
audit: type=1326 audit(1516426872.908:234): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6168 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426872.909:235): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6168 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=293 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426872.909:236): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6168 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426872.911:237): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6168 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=16 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426872.912:238): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6168 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426872.913:239): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6168 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=16 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426872.913:240): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6168 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426872.916:241): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6168 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=276 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426872.917:242): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6168 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000
audit: type=1326 audit(1516426872.917:243): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6168 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=16 compat=0 ip=0x452ee9 code=0x7ffc0000
binder: 6246:6261 ioctl c0306201 20013fd0 returned -14
binder: 6246:6261 BC_CLEAR_DEATH_NOTIFICATION death notification not active
binder: 6246:6261 got reply transaction with no transaction stack
binder: 6246:6261 transaction failed 29201/-71, size 32-16 line 2703
binder: 6246:6261 BC_DEAD_BINDER_DONE 0000000000000000 not found
binder: 6246:6261 got transaction to invalid handle
binder: 6246:6261 transaction failed 29201/-22, size 0-0 line 2788
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6246:6276 ioctl 40046207 0 returned -16
binder: 6246:6276 ioctl c0306201 20013fd0 returned -14
binder: 6246:6261 BC_CLEAR_DEATH_NOTIFICATION death notification not active
binder: 6246:6261 got reply transaction with no transaction stack
binder: 6246:6261 transaction failed 29201/-71, size 32-16 line 2703
binder: 6246:6289 BC_DEAD_BINDER_DONE 0000000000000000 not found
binder: 6246:6289 got transaction to invalid handle
binder: 6246:6289 transaction failed 29201/-22, size 0-0 line 2788
binder: undelivered TRANSACTION_ERROR: 29201
binder: undelivered TRANSACTION_ERROR: 29201
binder: undelivered TRANSACTION_ERROR: 29201
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 1 PID: 6592 Comm: syz-executor4 Not tainted 4.15.0-rc8+ #269
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x194/0x257 lib/dump_stack.c:53
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail+0x8c0/0xa40 lib/fault-inject.c:149
 should_failslab+0xec/0x120 mm/failslab.c:32
 slab_pre_alloc_hook mm/slab.h:421 [inline]
 slab_alloc mm/slab.c:3368 [inline]
 __do_kmalloc mm/slab.c:3706 [inline]
 __kmalloc_track_caller+0x5f/0x760 mm/slab.c:3723
 memdup_user+0x2c/0x90 mm/util.c:164
 map_update_elem kernel/bpf/syscall.c:634 [inline]
 SYSC_bpf kernel/bpf/syscall.c:1714 [inline]
 SyS_bpf+0x1efa/0x4400 kernel/bpf/syscall.c:1685
 entry_SYSCALL_64_fastpath+0x29/0xa0
RIP: 0033:0x452ee9
RSP: 002b:00007f8acf2d6c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f8acf2d6aa0 RCX: 0000000000452ee9
RDX: 0000000000000020 RSI: 0000000020000000 RDI: 0000000000000002
RBP: 00007f8acf2d6a90 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000004b7c76
R13: 00007f8acf2d6bc8 R14: 00000000004b7c76 R15: 0000000000000000
sg_write: data in/out 67108828/56 bytes for SCSI command 0x0-- guessing data in;
   program syz-executor1 not setting count and/or reply_len properly
sg_write: data in/out 67108828/56 bytes for SCSI command 0x0-- guessing data in;
   program syz-executor1 not setting count and/or reply_len properly