vhci_hcd: connection closed vhci_hcd: connection closed vhci_hcd: stop threads vhci_hcd: release socket ====================================================== WARNING: possible circular locking dependency detected 4.19.195-syzkaller #0 Not tainted ------------------------------------------------------ kworker/0:0/5 is trying to acquire lock: 00000000bc41de24 (&sb->s_type->i_mutex_key#13){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] 00000000bc41de24 (&sb->s_type->i_mutex_key#13){+.+.}, at: __sock_release+0x86/0x2a0 net/socket.c:578 but task is already holding lock: 00000000e420356b ((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 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 -> #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){++++}: unregister_netdevice_notifier+0x7b/0x330 net/core/dev.c:1708 raw_release+0x58/0x820 net/can/raw.c:358 __sock_release+0xcd/0x2a0 net/socket.c:579 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 vhci_hcd: disconnect device tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 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 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"); lock((delayed_fput_work).work); lock(&sb->s_type->i_mutex_key#13); *** DEADLOCK *** 2 locks held by kworker/0:0/5: #0: 00000000cc89eb52 ((wq_completion)"events"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000e420356b ((delayed_fput_work).work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 stack backtrace: CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 4.19.195-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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: stop threads vhci_hcd: release socket ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. vhci_hcd: disconnect device ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > : renamed from caif0 xt_CT: You must specify a L4 protocol and not use inversions on it chnl_net:chnl_net_open(): err: Unable to register and open device, Err:-19 caif:caif_disconnect_client(): nothing to disconnect chnl_net:chnl_flowctrl_cb(): NET flowctrl func called flow: CLOSE/DEINIT xt_CT: You must specify a L4 protocol and not use inversions on it chnl_net:chnl_net_open(): state disconnected A link change request failed with some changes committed already. Interface  may have been left with an inconsistent configuration, please check. ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. vhci_hcd vhci_hcd.0: pdev(2) rhport(1) sockfd(3) vhci_hcd vhci_hcd.0: devid(0) speed(2) speed_str(full-speed) ldm_validate_privheads(): Cannot find PRIVHEAD 1. vhci_hcd: connection closed vhci_hcd vhci_hcd.0: Device attached loop3: p2 < > vhci_hcd: stop threads vhci_hcd: release socket vhci_hcd: disconnect device xt_CT: You must specify a L4 protocol and not use inversions on it chnl_net:chnl_net_open(): err: Unable to register and open device, Err:-19 vhci_hcd vhci_hcd.0: pdev(2) rhport(0) sockfd(3) vhci_hcd vhci_hcd.0: devid(0) speed(2) speed_str(full-speed) caif:caif_disconnect_client(): nothing to disconnect vhci_hcd vhci_hcd.0: Device attached vhci_hcd vhci_hcd.0: pdev(2) rhport(0) sockfd(6) ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. vhci_hcd vhci_hcd.0: devid(0) speed(5) speed_str(super-speed) vhci_hcd vhci_hcd.0: Device attached chnl_net:chnl_flowctrl_cb(): NET flowctrl func called flow: CLOSE/DEINIT chnl_net:chnl_net_open(): state disconnected netlink: 'syz-executor.4': attribute type 4 has an invalid length. A link change request failed with some changes committed already. Interface  may have been left with an inconsistent configuration, please check. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > vhci_hcd: connection closed vhci_hcd: connection closed vhci_hcd: stop threads vhci_hcd: release socket xt_CT: You must specify a L4 protocol and not use inversions on it vhci_hcd: disconnect device netlink: 'syz-executor.4': attribute type 4 has an invalid length. vhci_hcd: stop threads chnl_net:chnl_net_open(): err: Unable to register and open device, Err:-19 vhci_hcd: release socket vhci_hcd: disconnect device caif:caif_disconnect_client(): nothing to disconnect chnl_net:chnl_flowctrl_cb(): NET flowctrl func called flow: CLOSE/DEINIT chnl_net:chnl_net_open(): state disconnected ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. A link change request failed with some changes committed already. Interface  may have been left with an inconsistent configuration, please check. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > netlink: 'syz-executor.4': attribute type 4 has an invalid length. vhci_hcd vhci_hcd.0: pdev(2) rhport(0) sockfd(3) vhci_hcd vhci_hcd.0: devid(0) speed(2) speed_str(full-speed) chnl_net:chnl_net_open(): err: Unable to register and open device, Err:-19 vhci_hcd vhci_hcd.0: pdev(2) rhport(0) sockfd(6) vhci_hcd vhci_hcd.0: devid(0) speed(5) speed_str(super-speed) vhci_hcd vhci_hcd.0: Device attached caif:caif_disconnect_client(): nothing to disconnect vhci_hcd vhci_hcd.0: Device attached chnl_net:chnl_flowctrl_cb(): NET flowctrl func called flow: CLOSE/DEINIT chnl_net:chnl_net_open(): state disconnected A link change request failed with some changes committed already. Interface  may have been left with an inconsistent configuration, please check. netlink: 'syz-executor.4': attribute type 4 has an invalid length. vhci_hcd: connection closed vhci_hcd: connection closed vhci_hcd: stop threads vhci_hcd: release socket vhci_hcd: disconnect device vhci_hcd: stop threads vhci_hcd: release socket vhci_hcd: disconnect device vhci_hcd: vhci_device speed not set ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > vhci_hcd vhci_hcd.0: pdev(2) rhport(0) sockfd(3) vhci_hcd vhci_hcd.0: devid(0) speed(2) speed_str(full-speed) vhci_hcd vhci_hcd.0: Device attached vhci_hcd vhci_hcd.0: pdev(2) rhport(0) sockfd(6) vhci_hcd vhci_hcd.0: devid(0) speed(5) speed_str(super-speed) vhci_hcd vhci_hcd.0: Device attached vhci_hcd: connection closed vhci_hcd: connection closed vhci_hcd: stop threads vhci_hcd: release socket vhci_hcd: disconnect device vhci_hcd: stop threads vhci_hcd: release socket ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. vhci_hcd: vhci_device speed not set vhci_hcd: disconnect device ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > x_tables: ip6_tables: TCPMSS target: only valid for protocol 6 x_tables: ip6_tables: TCPMSS target: only valid for protocol 6 x_tables: ip6_tables: TCPMSS target: only valid for protocol 6 ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. x_tables: ip6_tables: TCPMSS target: only valid for protocol 6 ldm_validate_privheads(): Cannot find PRIVHEAD 1. x_tables: ip6_tables: TCPMSS target: only valid for protocol 6 loop3: p2 < > x_tables: ip6_tables: TCPMSS target: only valid for protocol 6 usb usb14-port1: Cannot enable. Maybe the USB cable is bad? ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > x_tables: ip6_tables: TCPMSS target: only valid for protocol 6 ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < > usb usb14-port1: Cannot enable. Maybe the USB cable is bad? usb usb14-port1: attempt power cycle usb usb14-port1: Cannot enable. Maybe the USB cable is bad? usb usb14-port1: Cannot enable. Maybe the USB cable is bad? usb usb14-port1: unable to enumerate USB device ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop3: p2 < >