============================================ WARNING: possible recursive locking detected 4.15.0-rc8+ #269 Not tainted -------------------------------------------- syz-executor2/4991 is trying to acquire lock: (&vq->mutex){+.+.}, at: [<000000004a1a494f>] vhost_dev_lock_vqs drivers/vhost/vhost.c:907 [inline] (&vq->mutex){+.+.}, at: [<000000004a1a494f>] vhost_process_iotlb_msg drivers/vhost/vhost.c:997 [inline] (&vq->mutex){+.+.}, at: [<000000004a1a494f>] vhost_chr_write_iter+0x278/0x1580 drivers/vhost/vhost.c:1046 but task is already holding lock: (&vq->mutex){+.+.}, at: [<000000004a1a494f>] vhost_dev_lock_vqs drivers/vhost/vhost.c:907 [inline] (&vq->mutex){+.+.}, at: [<000000004a1a494f>] vhost_process_iotlb_msg drivers/vhost/vhost.c:997 [inline] (&vq->mutex){+.+.}, at: [<000000004a1a494f>] 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/4991: #0: (&vq->mutex){+.+.}, at: [<000000004a1a494f>] vhost_dev_lock_vqs drivers/vhost/vhost.c:907 [inline] #0: (&vq->mutex){+.+.}, at: [<000000004a1a494f>] vhost_process_iotlb_msg drivers/vhost/vhost.c:997 [inline] #0: (&vq->mutex){+.+.}, at: [<000000004a1a494f>] vhost_chr_write_iter+0x278/0x1580 drivers/vhost/vhost.c:1046 stack backtrace: CPU: 1 PID: 4991 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:00007f24b9e4dc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452ee9 RDX: 0000000000000050 RSI: 00000000208baf98 RDI: 0000000000000013 RBP: 0000000000000327 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f3c48 R13: 00000000ffffffff R14: 00007f24b9e4e6d4 R15: 0000000000000000 capability: warning: `syz-executor6' uses 32-bit capabilities (legacy support in use) binder: 5047 RLIMIT_NICE not set SELinux: unknown mount option binder: 5047 RLIMIT_NICE not set binder: BINDER_SET_CONTEXT_MGR already set binder: 5040:5062 ioctl 40046207 0 returned -16 binder_alloc: 5040: binder_alloc_buf, no vma binder: 5040:5057 BC_FREE_BUFFER u0000000020000000 no match binder_alloc: 5040: binder_alloc_buf, no vma binder: 5040:5047 transaction failed 29189/-3, size 0-0 line 2903 binder: 5040:5057 transaction failed 29189/-3, size 0-0 line 2903 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 binder: release 5040:5047 transaction 3 out, still active binder: release 5040:5047 transaction 2 in, still active binder: undelivered TRANSACTION_COMPLETE binder: release 5040:5057 transaction 2 out, still active binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 3, target dead binder: send failed reply for transaction 2, target dead openvswitch: netlink: Either Ethernet header or EtherType is required. openvswitch: netlink: Either Ethernet header or EtherType is required. binder: 5289:5295 transaction failed 29189/-22, size 0-0 line 2788 binder: 5289:5310 transaction failed 29189/-22, size 0-0 line 2788 binder: 5289:5295 transaction failed 29189/-22, size 0-0 line 2788 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 binder_alloc: binder_alloc_mmap_handler: 5527 20000000-20002000 already mapped failed -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 5527:5532 ioctl 40046207 0 returned -16 binder_alloc: 5527: binder_alloc_buf, no vma binder: 5527:5554 transaction failed 29189/-3, size 0-0 line 2903 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered transaction 10, process died. binder_alloc: binder_alloc_mmap_handler: 5618 20000000-20002000 already mapped failed -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 5618:5634 ioctl 40046207 0 returned -16 binder_alloc: 5618: binder_alloc_buf, no vma binder: 5618:5634 transaction failed 29189/-3, size 0-0 line 2903 binder_alloc: 5618: binder_alloc_buf, no vma binder: 5618:5621 transaction failed 29189/-3, size 0-0 line 2903 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_COMPLETE binder: 5662:5667 ERROR: BC_REGISTER_LOOPER called without request binder: 5667 RLIMIT_NICE not set binder: undelivered transaction 14, process died. binder: undelivered transaction 13, process died. binder: 5667 RLIMIT_NICE not set binder: 5667 RLIMIT_NICE not set binder_alloc: 5662: binder_alloc_buf, no vma binder: 5662:5667 transaction failed 29189/-3, size 0-0 line 2903 binder: send failed reply for transaction 18 to 5662:5671 binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29189 binder: 5662:5667 ERROR: BC_REGISTER_LOOPER called without request binder: 5667 RLIMIT_NICE not set binder_alloc: 5662: binder_alloc_buf, no vma binder: 5662:5685 transaction failed 29189/-3, size 0-0 line 2903 9pnet_virtio: no channels available for device ./file0 9pnet_virtio: no channels available for device ./file0 QAT: Invalid ioctl hrtimer: interrupt took 26135 ns QAT: Invalid ioctl QAT: Invalid ioctl syz-executor0 uses obsolete (PF_INET,SOCK_PACKET) kauditd_printk_skb: 112 callbacks suppressed audit: type=1400 audit(1516426279.608:149): avc: denied { map } for pid=6177 comm="syz-executor5" path="/48/file0/bus" dev="tmpfs" ino=18683 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:tmpfs_t:s0 tclass=file permissive=1 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=59135 sclass=netlink_route_socket pig=6280 comm=syz-executor0 binder: 6305 RLIMIT_NICE not set SELinux: unrecognized netlink message: protocol=0 nlmsg_type=59135 sclass=netlink_route_socket pig=6302 comm=syz-executor0 binder: 6303:6316 BC_FREE_BUFFER u0000000020000000 matched unreturned buffer binder: 6305 RLIMIT_NICE not set binder: 6303:6316 got new transaction with bad transaction stack, transaction 23 has target 6303:6305 binder: 6303:6316 transaction failed 29201/-71, size 0-0 line 2815 binder: BINDER_SET_CONTEXT_MGR already set binder: 6303:6337 ioctl 40046207 0 returned -16 binder: 6303:6316 BC_FREE_BUFFER u0000000020000000 no match binder_alloc: 6303: binder_alloc_buf, no vma binder: 6303:6305 transaction failed 29189/-3, size 0-0 line 2903 binder_alloc: 6303: binder_alloc_buf, no vma binder: 6303:6316 transaction failed 29189/-3, size 0-0 line 2903 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 binder: release 6303:6305 transaction 23 in, still active binder: send failed reply for transaction 23 to 6303:6316 binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_ERROR: 29189 Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable binder: BINDER_SET_CONTEXT_MGR already set binder: 6382:6397 ioctl 40046207 0 returned -16 audit: type=1400 audit(1516426280.869:150): avc: denied { map } for pid=6429 comm="syz-executor3" path="/dev/sg0" dev="devtmpfs" ino=8942 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:scsi_generic_device_t:s0 tclass=chr_file permissive=1 audit: type=1400 audit(1516426281.009:151): avc: denied { write } for pid=6466 comm="syz-executor2" name="map_files" dev="proc" ino=19125 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=dir permissive=1 audit: type=1400 audit(1516426281.009:152): avc: denied { setattr } for pid=6466 comm="syz-executor2" name="map_files" dev="proc" ino=19125 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=dir permissive=1 QAT: Invalid ioctl Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl audit: type=1400 audit(1516426281.279:153): avc: denied { add_name } for pid=6551 comm="syz-executor3" name="pfkey" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=dir permissive=1 audit: type=1400 audit(1516426281.304:154): avc: denied { create } for pid=6551 comm="syz-executor3" name="pfkey" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:insmod_t:s0 tclass=file permissive=1 binder: 6622 RLIMIT_NICE not set audit: type=1400 audit(1516426281.595:155): avc: denied { map } for pid=6629 comm="syz-executor2" path="/dev/input/event0" dev="devtmpfs" ino=8967 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:event_device_t:s0 tclass=chr_file permissive=1 binder: 6618:6637 BC_FREE_BUFFER u000000002000c000 matched unreturned buffer binder: BINDER_SET_CONTEXT_MGR already set binder: 6618:6637 ioctl 40046207 0 returned -16 binder_alloc: 6618: binder_alloc_buf, no vma binder: 6618:6637 transaction failed 29189/-3, size 0-0 line 2903 binder_alloc: 6653: binder_alloc_buf size 8679965751636189848 failed, no address space binder_alloc: allocated: 0 (num: 0 largest: 0), free: 8192 (num: 1 largest: 8192) binder: 6653:6655 transaction failed 29201/-28, size 0-8679965255895708463 line 2903 binder_alloc: binder_alloc_mmap_handler: 6653 20000000-20002000 already mapped failed -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 6653:6655 ioctl 40046207 0 returned -16 binder_alloc: 6653: binder_alloc_buf, no vma binder: 6653:6658 transaction failed 29189/-3, size 0-8679965255895708463 line 2903 binder: 6618:6646 BC_FREE_BUFFER u000000002000c000 no match binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_COMPLETE capability: warning: `syz-executor7' uses deprecated v2 capabilities in a way that may be insecure audit: type=1326 audit(1516426282.453:156): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6874 comm="syz-executor0" exe="/root/syz-executor0" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000 audit: type=1326 audit(1516426282.479:157): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6874 comm="syz-executor0" exe="/root/syz-executor0" sig=0 arch=c000003e syscall=257 compat=0 ip=0x452ee9 code=0x7ffc0000 audit: type=1326 audit(1516426282.479:158): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6874 comm="syz-executor0" exe="/root/syz-executor0" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000 insert transport fail, errno -17 binder_alloc: binder_alloc_mmap_handler: 7104 20000000-20002000 already mapped failed -16 QAT: Invalid ioctl QAT: Invalid ioctl binder: BINDER_SET_CONTEXT_MGR already set binder: 7104:7109 ioctl 40046207 0 returned -16 binder_alloc: 7104: binder_alloc_buf, no vma binder: 7104:7119 transaction failed 29189/-3, size 40-8 line 2903 binder: undelivered TRANSACTION_ERROR: 29189 binder: release 7104:7109 transaction 39 out, still active binder: unexpected work type, 4, not freed binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 39, target dead TCP: request_sock_TCP: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. dccp_close: ABORT with 1 bytes unread