vhci_hcd: connection closed vhci_hcd: connection closed vhci_hcd: stop threads vhci_hcd: release socket ====================================================== WARNING: possible circular locking dependency detected syz-executor.1 uses obsolete (PF_INET,SOCK_PACKET) 4.19.195-syzkaller #0 Not tainted ------------------------------------------------------ kworker/0:0/5 is trying to acquire lock: 00000000f763f601 (&sb->s_type->i_mutex_key#13){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] 00000000f763f601 (&sb->s_type->i_mutex_key#13){+.+.}, at: __sock_release+0x86/0x2a0 net/socket.c:578 but task is already holding lock: 000000004a6dcec0 ((delayed_fput_work).work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 ((delayed_fput_work).work){+.+.}: worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 usb 10-1: SetAddress Request (2) to port 0 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 usb 10-1: new SuperSpeed Gen 1 USB device number 2 using vhci_hcd -> #2 ((wq_completion)"events"){+.+.}: flush_scheduled_work include/linux/workqueue.h:599 [inline] tipc_exit_net+0x38/0x60 net/tipc/core.c:100 ops_exit_list+0xa5/0x150 net/core/net_namespace.c:153 cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:553 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 -> #1 (pernet_ops_rwsem){++++}: vhci_hcd: disconnect device unregister_netdevice_notifier+0x7b/0x330 net/core/dev.c:1708 bcm_release+0x94/0x700 net/can/bcm.c:1525 __sock_release+0xcd/0x2a0 net/socket.c:579 vhci_hcd: stop threads sock_close+0x15/0x20 net/socket.c:1140 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 vhci_hcd: release socket prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (&sb->s_type->i_mutex_key#13){+.+.}: down_write+0x34/0x90 kernel/locking/rwsem.c:70 inode_lock include/linux/fs.h:748 [inline] __sock_release+0x86/0x2a0 net/socket.c:578 sock_close+0x15/0x20 net/socket.c:1140 __fput+0x2ce/0x890 fs/file_table.c:278 delayed_fput+0x56/0x70 fs/file_table.c:304 vhci_hcd: disconnect device process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 other info that might help us debug this: Chain exists of: &sb->s_type->i_mutex_key#13 --> (wq_completion)"events" --> (delayed_fput_work).work Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock((delayed_fput_work).work); lock((wq_completion)"events"); vhci_hcd: sendmsg failed!, ret=-32 for 48 lock((delayed_fput_work).work); lock(&sb->s_type->i_mutex_key#13); *** DEADLOCK *** 2 locks held by kworker/0:0/5: #0: 00000000c794dd81 ((wq_completion)"events"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 000000004a6dcec0 ((delayed_fput_work).work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 stack backtrace: vhci_hcd: stop threads CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 4.19.195-syzkaller #0 vhci_hcd: release socket Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 vhci_hcd: disconnect device Workqueue: events delayed_fput Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1222 check_prev_add kernel/locking/lockdep.c:1866 [inline] check_prevs_add kernel/locking/lockdep.c:1979 [inline] validate_chain kernel/locking/lockdep.c:2420 [inline] __lock_acquire+0x30c9/0x3ff0 kernel/locking/lockdep.c:3416 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 down_write+0x34/0x90 kernel/locking/rwsem.c:70 inode_lock include/linux/fs.h:748 [inline] __sock_release+0x86/0x2a0 net/socket.c:578 sock_close+0x15/0x20 net/socket.c:1140 __fput+0x2ce/0x890 fs/file_table.c:278 delayed_fput+0x56/0x70 fs/file_table.c:304 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 vhci_hcd vhci_hcd.0: pdev(0) rhport(3) sockfd(9) vhci_hcd vhci_hcd.0: devid(0) speed(3) speed_str(high-speed) vhci_hcd vhci_hcd.0: pdev(0) rhport(2) sockfd(3) vhci_hcd vhci_hcd.0: devid(0) speed(1) speed_str(low-speed) vhci_hcd vhci_hcd.0: Device attached vhci_hcd vhci_hcd.0: pdev(0) rhport(1) sockfd(6) vhci_hcd vhci_hcd.0: devid(0) speed(5) speed_str(super-speed) vhci_hcd: connection closed vhci_hcd: stop threads vhci_hcd vhci_hcd.0: Device attached vhci_hcd: connection closed vhci_hcd: release socket vhci_hcd vhci_hcd.0: Device attached vhci_hcd: connection closed vhci_hcd: disconnect device vhci_hcd: stop threads vhci_hcd: release socket vhci_hcd: disconnect device vhci_hcd: stop threads vhci_hcd: release socket vhci_hcd: disconnect device 9pnet: Insufficient options for proto=fd 9pnet: Insufficient options for proto=fd IPVS: ftp: loaded support on port[0] = 21 xt_hashlimit: invalid interval mmap: syz-executor.4 (12070) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.rst. xt_hashlimit: invalid interval dccp_close: ABORT with 1 bytes unread dccp_close: ABORT with 1 bytes unread EXT4-fs (loop4): VFS: Can't find ext4 filesystem xt_CHECKSUM: CHECKSUM should be avoided. If really needed, restrict with "-p udp" and only use in OUTPUT xt_CONNSECMARK: invalid mode: 0 IPVS: ftp: loaded support on port[0] = 21 audit: type=1326 audit(1624986584.624:70): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=12189 comm="syz-executor.1" exe="/root/syz-executor.1" sig=9 arch=c000003e syscall=231 compat=0 ip=0x4665d9 code=0x0 audit: type=1326 audit(1624986584.674:71): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=12189 comm="syz-executor.1" exe="/root/syz-executor.1" sig=9 arch=c000003e syscall=231 compat=0 ip=0x4665d9 code=0x0 dccp_close: ABORT with 1 bytes unread dccp_close: ABORT with 1 bytes unread netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. dccp_close: ABORT with 1 bytes unread bond1 (unregistering): Released all slaves netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. dccp_close: ABORT with 1 bytes unread netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. audit: type=1326 audit(1624986585.424:72): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=12189 comm="syz-executor.1" exe="/root/syz-executor.1" sig=9 arch=c000003e syscall=231 compat=0 ip=0x4665d9 code=0x0 kvm: emulating exchange as write audit: type=1326 audit(1624986585.474:73): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=12189 comm="syz-executor.1" exe="/root/syz-executor.1" sig=9 arch=c000003e syscall=231 compat=0 ip=0x4665d9 code=0x0 netlink: 'syz-executor.4': attribute type 2 has an invalid length. netlink: 'syz-executor.4': attribute type 2 has an invalid length. dccp_close: ABORT with 1 bytes unread audit: type=1804 audit(1624986586.154:74): pid=12431 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir028926311/syzkaller.TCIUOv/69/cgroup.controllers" dev="sda1" ino=14197 res=1 dccp_close: ABORT with 1 bytes unread dccp_close: ABORT with 1 bytes unread IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 syz-executor.1 (12513): drop_caches: 1 syz-executor.1 (12446): drop_caches: 1 usb 10-1: device descriptor read/8, error -110 usb 10-1: new SuperSpeed Gen 1 USB device number 2 using vhci_hcd usb 10-1: enqueue for inactive port 0 usb 10-1: enqueue for inactive port 0 usb 10-1: enqueue for inactive port 0 dccp_close: ABORT with 1 bytes unread usb usb10-port1: Cannot enable. Maybe the USB cable is bad? usb usb10-port1: attempt power cycle EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop4): ext4_empty_dir:2764: inode #12: comm syz-executor.4: Directory hole found for htree leaf block net_ratelimit: 3 callbacks suppressed dccp_close: ABORT with 1 bytes unread EXT4-fs error (device loop4): ext4_free_inode:350: comm syz-executor.4: bit already cleared for inode 12 loop2: p2 < > p3 p4 loop2: partition table partially beyond EOD, truncated loop2: p2 size 2 extends beyond EOD, truncated loop2: p3 start 225 is beyond EOD, truncated loop2: p4 size 3657465856 extends beyond EOD, truncated loop2: p2 < > p3 p4 loop2: partition table partially beyond EOD, truncated loop2: p2 size 2 extends beyond EOD, truncated loop2: p3 start 225 is beyond EOD, truncated loop2: p4 size 3657465856 extends beyond EOD, truncated IPVS: ftp: loaded support on port[0] = 21 EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue loop2: p2 < > p3 p4 loop2: partition table partially beyond EOD, truncated loop2: p2 size 2 extends beyond EOD, truncated loop2: p3 start 225 is beyond EOD, truncated loop2: p4 size 3657465856 extends beyond EOD, truncated loop2: p2 < > p3 p4 loop2: partition table partially beyond EOD, truncated loop2: p2 size 2 extends beyond EOD, truncated loop2: p3 start 225 is beyond EOD, truncated loop2: p4 size 3657465856 extends beyond EOD, truncated usb usb10-port1: Cannot enable. Maybe the USB cable is bad? IPVS: ftp: loaded support on port[0] = 21 kvm: vcpu 0: requested 128 ns lapic timer period limited to 200000 ns EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 EXT4-fs error (device loop4): ext4_empty_dir:2764: inode #12: comm syz-executor.4: Directory hole found for htree leaf block EXT4-fs error (device loop4): ext4_free_inode:350: comm syz-executor.4: bit already cleared for inode 12 kvm: vcpu 0: requested 128 ns lapic timer period limited to 200000 ns usb usb10-port1: Cannot enable. Maybe the USB cable is bad? usb usb10-port1: unable to enumerate USB device EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): re-mounted. Opts: (null) audit: type=1804 audit(1624986591.394:75): pid=12914 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir830907515/syzkaller.JSC6nU/59/cgroup.controllers" dev="sda1" ino=14223 res=1 kvm: vcpu 0: requested 128 ns lapic timer period limited to 200000 ns EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue