INFO: task kworker/0:9:20249 blocked for more than 143 seconds. Not tainted 5.6.0-rc3-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/0:9 D23256 20249 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:2664 usb_disable_device+0x23d/0x790 drivers/usb/core/message.c:1237 usb_disconnect+0x293/0x900 drivers/usb/core/hub.c:2207 hub_port_connect drivers/usb/core/hub.c:5042 [inline] hub_port_connect_change drivers/usb/core/hub.c:5331 [inline] port_event drivers/usb/core/hub.c:5477 [inline] hub_event+0x1a1d/0x4300 drivers/usb/core/hub.c:5559 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: 5 locks held by kworker/0:1/12: #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: process_one_work+0x82a/0x1620 kernel/workqueue.c:2235 #1: ffff8881da227dd0 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x85e/0x1620 kernel/workqueue.c:2239 #2: ffff8881d4c7b200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #2: ffff8881d4c7b200 (&dev->mutex){....}, at: hub_event+0x1be/0x4300 drivers/usb/core/hub.c:5505 #3: ffff8881d8f09200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #3: ffff8881d8f09200 (&dev->mutex){....}, at: __device_attach+0x7b/0x390 drivers/base/dd.c:874 #4: ffff8881d6ca8190 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #4: ffff8881d6ca8190 (&dev->mutex){....}, at: __device_attach+0x7b/0x390 drivers/base/dd.c:874 1 lock held by khungtaskd/22: #0: ffffffff87109020 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x264 kernel/locking/lockdep.c:5331 1 lock held by rsyslogd/1676: #0: ffff8881d05c9760 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xe3/0x100 fs/file.c:821 2 locks held by getty/1767: #0: ffff8881cecb3090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc900004652e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x21d/0x1b30 drivers/tty/n_tty.c:2156 2 locks held by getty/1768: #0: ffff8881cef19090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc900004892e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x21d/0x1b30 drivers/tty/n_tty.c:2156 2 locks held by getty/1769: #0: ffff8881cef99090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc900004712e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x21d/0x1b30 drivers/tty/n_tty.c:2156 2 locks held by getty/1770: #0: ffff8881cef18090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc900004852e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x21d/0x1b30 drivers/tty/n_tty.c:2156 2 locks held by getty/1771: #0: ffff8881cef1a090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc9000048d2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x21d/0x1b30 drivers/tty/n_tty.c:2156 2 locks held by getty/1772: #0: ffff8881cff5d090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc9000045d2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x21d/0x1b30 drivers/tty/n_tty.c:2156 6 locks held by kworker/1:5/4615: #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: process_one_work+0x82a/0x1620 kernel/workqueue.c:2235 #1: ffff8881ae55fdd0 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x85e/0x1620 kernel/workqueue.c:2239 #2: ffff8881d4cd2200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #2: ffff8881d4cd2200 (&dev->mutex){....}, at: hub_event+0x1be/0x4300 drivers/usb/core/hub.c:5505 #3: ffff8881d4cd4540 (&port_dev->status_lock){+.+.}, at: usb_lock_port drivers/usb/core/hub.c:3004 [inline] #3: ffff8881d4cd4540 (&port_dev->status_lock){+.+.}, at: hub_port_connect drivers/usb/core/hub.c:5122 [inline] #3: ffff8881d4cd4540 (&port_dev->status_lock){+.+.}, at: hub_port_connect_change drivers/usb/core/hub.c:5331 [inline] #3: ffff8881d4cd4540 (&port_dev->status_lock){+.+.}, at: port_event drivers/usb/core/hub.c:5477 [inline] #3: ffff8881d4cd4540 (&port_dev->status_lock){+.+.}, at: hub_event+0x1fae/0x4300 drivers/usb/core/hub.c:5559 #4: ffff8881d509e460 (hcd->address0_mutex){+.+.}, at: hub_port_init+0x1b6/0x2e60 drivers/usb/core/hub.c:4546 #5: ffffffff8767f908 (ehci_cf_port_reset_rwsem){.+.+}, at: hub_port_reset+0x186/0x1790 drivers/usb/core/hub.c:2866 2 locks held by getty/6445: #0: ffff8881ade2b090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc9000f4e32e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x21d/0x1b30 drivers/tty/n_tty.c:2156 6 locks held by kworker/0:9/20249: #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8881d8eb3128 ((wq_completion)usb_hub_wq){+.+.}, at: process_one_work+0x82a/0x1620 kernel/workqueue.c:2235 #1: ffff8881cbf47dd0 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x85e/0x1620 kernel/workqueue.c:2239 #2: ffff8881d4d39200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #2: ffff8881d4d39200 (&dev->mutex){....}, at: hub_event+0x1be/0x4300 drivers/usb/core/hub.c:5505 #3: ffff8881d0b0c200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #3: ffff8881d0b0c200 (&dev->mutex){....}, at: usb_disconnect+0x91/0x900 drivers/usb/core/hub.c:2198 #4: ffff8881d0b09190 (&dev->mutex){....}, at: device_release_driver_internal+0x23/0x500 drivers/base/dd.c:1165 #5: ffff8881d0b0b2a8 (&dev->mutex#2){+.+.}, at: input_disconnect_device drivers/input/input.c:732 [inline] #5: ffff8881d0b0b2a8 (&dev->mutex#2){+.+.}, at: __input_unregister_device+0x23/0x430 drivers/input/input.c:2085 2 locks held by syz-executor.4/29082: #0: ffff8881cf16e148 (&evdev->mutex){+.+.}, at: evdev_close_device drivers/input/evdev.c:425 [inline] #0: ffff8881cf16e148 (&evdev->mutex){+.+.}, at: evdev_release+0xeb/0x1c0 drivers/input/evdev.c:466 #1: ffff8881d0b0b2a8 (&dev->mutex#2){+.+.}, at: input_close_device+0x42/0x1a0 drivers/input/input.c:673 1 lock held by syz-executor.2/31592: #0: ffff8881cf16e148 (&evdev->mutex){+.+.}, at: evdev_open_device drivers/input/evdev.c:407 [inline] #0: ffff8881cf16e148 (&evdev->mutex){+.+.}, at: evdev_open+0x295/0x4f0 drivers/input/evdev.c:496 1 lock held by syz-executor.5/31578: #0: ffff8881cf16e148 (&evdev->mutex){+.+.}, at: evdev_open_device drivers/input/evdev.c:407 [inline] #0: ffff8881cf16e148 (&evdev->mutex){+.+.}, at: evdev_open+0x295/0x4f0 drivers/input/evdev.c:496 1 lock held by syz-executor.4/31583: #0: ffff8881cf16e148 (&evdev->mutex){+.+.}, at: evdev_open_device drivers/input/evdev.c:407 [inline] #0: ffff8881cf16e148 (&evdev->mutex){+.+.}, at: evdev_open+0x295/0x4f0 drivers/input/evdev.c:496 3 locks held by syz-executor.1/31606: 3 locks held by syz-executor.0/31591: #0: ffff8881ad35cd60 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xe3/0x100 fs/file.c:821 #1: ffff8881d4744410 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2903 [inline] #1: ffff8881d4744410 (sb_writers#3){.+.+}, at: vfs_write+0x474/0x5c0 fs/read_write.c:557 #2: ffff8881d9cb8b78 (&sb->s_type->i_mutex_key#10){++++}, at: inode_lock include/linux/fs.h:791 [inline] #2: ffff8881d9cb8b78 (&sb->s_type->i_mutex_key#10){++++}, at: ext4_dio_write_iter fs/ext4/file.c:482 [inline] #2: ffff8881d9cb8b78 (&sb->s_type->i_mutex_key#10){++++}, at: ext4_file_write_iter+0x4b7/0x1780 fs/ext4/file.c:640 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 22 Comm: khungtaskd Not tainted 5.6.0-rc3-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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.6.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:91 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:109 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:135 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:166 [inline] RIP: 0010:check_memory_region_inline mm/kasan/generic.c:182 [inline] RIP: 0010:check_memory_region+0x130/0x1c0 mm/kasan/generic.c:192 Code: 0f 41 80 38 00 74 ee 49 8d 04 1c 4d 85 c0 75 32 49 89 e9 49 29 c1 e9 4a ff ff ff 5b b8 01 00 00 00 5d 41 5c c3 4d 85 c9 74 f1 <49> 01 d9 eb 09 48 83 c0 01 4c 39 c8 74 e3 80 38 00 74 f2 e9 6d ff RSP: 0018:ffff8881db209f50 EFLAGS: 00000002 RAX: ffffed103b646a83 RBX: ffffed103b646a83 RCX: ffffffff812e4dfd RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8881db235418 RBP: ffffed103b646a84 R08: 0000000000000000 R09: 0000000000000001 R10: ffffed103b646a83 R11: ffff8881db23541b R12: ffff8881db235340 R13: ffff8881db235418 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f836d9b9bec CR3: 00000001ae82d000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:301 [inline] rcu_nmi_enter_common kernel/rcu/tree.c:808 [inline] rcu_irq_enter+0xed/0x5b0 kernel/rcu/tree.c:872 irq_enter+0x6/0xd0 kernel/softirq.c:347 entering_irq arch/x86/include/asm/apic.h:527 [inline] entering_ack_irq arch/x86/include/asm/apic.h:533 [inline] smp_apic_timer_interrupt+0x1b/0x540 arch/x86/kernel/apic/apic.c:1142 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:default_idle+0x28/0x300 arch/x86/kernel/process.c:696 Code: cc cc 41 56 41 55 65 44 8b 2d 94 c9 72 7a 41 54 55 53 0f 1f 44 00 00 e8 16 bb b5 fb e9 07 00 00 00 0f 00 2d 3a 5f 53 00 fb f4 <65> 44 8b 2d 70 c9 72 7a 0f 1f 44 00 00 5b 5d 41 5c 41 5d 41 5e c3 RSP: 0018:ffffffff87007d80 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: ffffffff8702cc40 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000006 RDI: ffffffff8702d48c RBP: fffffbfff0e05988 R08: ffffffff8702cc40 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff87e60000 R15: 0000000000000000 cpuidle_idle_call kernel/sched/idle.c:154 [inline] do_idle+0x3e0/0x500 kernel/sched/idle.c:269 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:361 start_kernel+0xde3/0xe27 init/main.c:992 secondary_startup_64+0xb6/0xc0 arch/x86/kernel/head_64.S:242