INFO: task kworker/1:2:83 blocked for more than 143 seconds. Not tainted 5.6.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/1:2 D22768 83 2 0x80004000 Workqueue: usb_hub_wq hub_event Call Trace: schedule+0xcd/0x2b0 kernel/sched/core.c:4154 schedule_preempt_disabled+0xc/0x20 kernel/sched/core.c:4213 __mutex_lock_common kernel/locking/mutex.c:1033 [inline] __mutex_lock+0x87c/0x1360 kernel/locking/mutex.c:1103 input_disconnect_device drivers/input/input.c:732 [inline] __input_unregister_device+0x23/0x430 drivers/input/input.c:2085 input_unregister_device+0xb4/0xf0 drivers/input/input.c:2272 iforce_usb_disconnect+0x5e/0xf0 drivers/input/joystick/iforce/iforce-usb.c:261 usb_unbind_interface+0x1bd/0x8a0 drivers/usb/core/driver.c:436 __device_release_driver drivers/base/dd.c:1137 [inline] device_release_driver_internal+0x42f/0x500 drivers/base/dd.c:1168 bus_remove_device+0x2eb/0x5a0 drivers/base/bus.c:533 device_del+0x481/0xd30 drivers/base/core.c:2677 usb_disable_device+0x23d/0x790 drivers/usb/core/message.c:1237 usb_disconnect+0x293/0x900 drivers/usb/core/hub.c:2211 hub_port_connect drivers/usb/core/hub.c:5046 [inline] hub_port_connect_change drivers/usb/core/hub.c:5335 [inline] port_event drivers/usb/core/hub.c:5481 [inline] hub_event+0x1a1d/0x4300 drivers/usb/core/hub.c:5563 process_one_work+0x94b/0x1620 kernel/workqueue.c:2264 worker_thread+0x96/0xe20 kernel/workqueue.c:2410 kthread+0x318/0x420 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Showing all locks held in the system: 6 locks held by kworker/0:0/5: #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: process_one_work+0x82a/0x1620 kernel/workqueue.c:2235 #1: ffff8881da1dfdd0 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x85e/0x1620 kernel/workqueue.c:2239 #2: ffff8881d48e5200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #2: ffff8881d48e5200 (&dev->mutex){....}, at: hub_event+0x1be/0x4300 drivers/usb/core/hub.c:5509 #3: ffff8881c7564200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #3: ffff8881c7564200 (&dev->mutex){....}, at: usb_disconnect+0x91/0x900 drivers/usb/core/hub.c:2202 #4: ffff8881c7563190 (&dev->mutex){....}, at: device_release_driver_internal+0x23/0x500 drivers/base/dd.c:1165 #5: ffff8881c75612a8 (&dev->mutex#2){+.+.}, at: input_disconnect_device drivers/input/input.c:732 [inline] #5: ffff8881c75612a8 (&dev->mutex#2){+.+.}, at: __input_unregister_device+0x23/0x430 drivers/input/input.c:2085 7 locks held by kworker/1:0/17: #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: process_one_work+0x82a/0x1620 kernel/workqueue.c:2235 #1: ffff8881da267dd0 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x85e/0x1620 kernel/workqueue.c:2239 #2: ffff8881cffcd200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #2: ffff8881cffcd200 (&dev->mutex){....}, at: hub_event+0x1be/0x4300 drivers/usb/core/hub.c:5509 #3: ffff8881d0c72540 (&port_dev->status_lock){+.+.}, at: usb_lock_port drivers/usb/core/hub.c:3008 [inline] #3: ffff8881d0c72540 (&port_dev->status_lock){+.+.}, at: hub_port_connect drivers/usb/core/hub.c:5126 [inline] #3: ffff8881d0c72540 (&port_dev->status_lock){+.+.}, at: hub_port_connect_change drivers/usb/core/hub.c:5335 [inline] #3: ffff8881d0c72540 (&port_dev->status_lock){+.+.}, at: port_event drivers/usb/core/hub.c:5481 [inline] #3: ffff8881d0c72540 (&port_dev->status_lock){+.+.}, at: hub_event+0x1fae/0x4300 drivers/usb/core/hub.c:5563 #4: ffff8881d4ef3060 (hcd->address0_mutex){+.+.}, at: hub_port_init+0x1b6/0x2e60 drivers/usb/core/hub.c:4550 #5: ffffffff8767fb08 (ehci_cf_port_reset_rwsem){.+.+}, at: hub_port_reset+0x186/0x1790 drivers/usb/core/hub.c:2870 #6: ffff8881c6a47090 (&hub->status_mutex){+.+.}, at: hub_ext_port_status+0x58/0x460 drivers/usb/core/hub.c:588 1 lock held by khungtaskd/23: #0: ffffffff87109060 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x264 kernel/locking/lockdep.c:5331 6 locks held by kworker/1:2/83: #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: process_one_work+0x82a/0x1620 kernel/workqueue.c:2235 #1: ffff8881d8a7fdd0 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x85e/0x1620 kernel/workqueue.c:2239 #2: ffff8881d4944200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #2: ffff8881d4944200 (&dev->mutex){....}, at: hub_event+0x1be/0x4300 drivers/usb/core/hub.c:5509 #3: ffff8881d223b200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #3: ffff8881d223b200 (&dev->mutex){....}, at: usb_disconnect+0x91/0x900 drivers/usb/core/hub.c:2202 #4: ffff8881d2069190 (&dev->mutex){....}, at: device_release_driver_internal+0x23/0x500 drivers/base/dd.c:1165 #5: ffff8881d206a2a8 (&dev->mutex#2){+.+.}, at: input_disconnect_device drivers/input/input.c:732 [inline] #5: ffff8881d206a2a8 (&dev->mutex#2){+.+.}, at: __input_unregister_device+0x23/0x430 drivers/input/input.c:2085 1 lock held by in:imklog/247: 6 locks held by kworker/1:3/3046: 4 locks held by kworker/1:4/3057: #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8881d8e7f128 ((wq_completion)usb_hub_wq){+.+.}, at: process_one_work+0x82a/0x1620 kernel/workqueue.c:2235 #1: ffff8881acb27dd0 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x85e/0x1620 kernel/workqueue.c:2239 #2: ffff8881d4867200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #2: ffff8881d4867200 (&dev->mutex){....}, at: hub_event+0x1be/0x4300 drivers/usb/core/hub.c:5509 #3: ffff8881cffcd200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #3: ffff8881cffcd200 (&dev->mutex){....}, at: usb_disconnect+0x91/0x900 drivers/usb/core/hub.c:2202 2 locks held by systemd-udevd/3459: #0: ffff8881c3881148 (&evdev->mutex){+.+.}, at: evdev_close_device drivers/input/evdev.c:425 [inline] #0: ffff8881c3881148 (&evdev->mutex){+.+.}, at: evdev_release+0xeb/0x1c0 drivers/input/evdev.c:466 #1: ffff8881d206a2a8 (&dev->mutex#2){+.+.}, at: input_close_device+0x42/0x1a0 drivers/input/input.c:673 2 locks held by systemd-udevd/3471: #0: ffff8881c7566148 (&evdev->mutex){+.+.}, at: evdev_close_device drivers/input/evdev.c:425 [inline] #0: ffff8881c7566148 (&evdev->mutex){+.+.}, at: evdev_release+0xeb/0x1c0 drivers/input/evdev.c:466 #1: ffff8881c75612a8 (&dev->mutex#2){+.+.}, at: input_close_device+0x42/0x1a0 drivers/input/input.c:673 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 23 Comm: khungtaskd Not tainted 5.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xef/0x16e lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x70/0xb1 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1db/0x207 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline] watchdog+0xa99/0xfd0 kernel/hung_task.c:289 kthread+0x318/0x420 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4996 Comm: syz-executor.5 Not tainted 5.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:io_serial_out+0x68/0x80 drivers/tty/serial/8250/8250_port.c:453 Code: e9 00 00 00 48 8d 7d 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 d3 e3 80 3c 02 00 75 15 03 5d 38 44 89 e0 89 da ee <5b> 5d 41 5c c3 e8 9e d7 49 ff eb c7 e8 c7 d7 49 ff eb e4 0f 1f 44 RSP: 0018:ffff8881d260f858 EFLAGS: 00000002 RAX: 000000000000005b RBX: 00000000000003f8 RCX: 0000000000000000 RDX: 00000000000003f8 RSI: ffffffff821e43a1 RDI: ffffffff89ffab38 RBP: ffffffff89ffab00 R08: ffff8881d0aee200 R09: ffffed103a4c1f06 R10: ffffed103a4c1f05 R11: 0000000000000003 R12: 000000000000005b R13: 000000000000005b R14: ffffffff89ffab00 R15: dffffc0000000000 FS: 00007fdb8d907700(0000) GS:ffff8881db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb922abc000 CR3: 00000001d27f0000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: uart_console_write+0x59/0x100 drivers/tty/serial/serial_core.c:1928 serial8250_console_write+0x2f8/0x880 drivers/tty/serial/8250/8250_port.c:3164 call_console_drivers kernel/printk/printk.c:1791 [inline] console_unlock+0x8be/0xca0 kernel/printk/printk.c:2473 vprintk_emit+0x171/0x3d0 kernel/printk/printk.c:1996 dev_vprintk_emit+0x4fc/0x541 drivers/base/core.c:3616 dev_printk_emit+0xba/0xf1 drivers/base/core.c:3627 __dev_printk+0x1db/0x203 drivers/base/core.c:3639 _dev_err+0xd7/0x109 drivers/base/core.c:3682 raw_ioctl_ep_enable drivers/usb/gadget/legacy/raw_gadget.c:752 [inline] raw_ioctl.cold+0xff/0x111 drivers/usb/gadget/legacy/raw_gadget.c:1038 vfs_ioctl fs/ioctl.c:47 [inline] ksys_ioctl+0x11a/0x180 fs/ioctl.c:763 __do_sys_ioctl fs/ioctl.c:772 [inline] __se_sys_ioctl fs/ioctl.c:770 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:770 do_syscall_64+0xb6/0x5a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c6b7 Code: 48 83 c4 08 48 89 d8 5b 5d c3 66 0f 1f 84 00 00 00 00 00 48 89 e8 48 f7 d8 48 39 c3 0f 92 c0 eb 92 66 90 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 0d b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fdb8d904a68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045c6b7 RDX: 0000000000c8004b RSI: 0000000040095505 RDI: 0000000000000003 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000075 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000c8004b R14: 0000000000000000 R15: 0000000000c80150