INFO: task kworker/0:1:12 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/0:1 D22688 12 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:1/12: #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8881d8d69528 ((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: ffff8881d494a200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #2: ffff8881d494a200 (&dev->mutex){....}, at: hub_event+0x1be/0x4300 drivers/usb/core/hub.c:5509 #3: ffff8881ca880200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #3: ffff8881ca880200 (&dev->mutex){....}, at: usb_disconnect+0x91/0x900 drivers/usb/core/hub.c:2202 #4: ffff8881caaae190 (&dev->mutex){....}, at: device_release_driver_internal+0x23/0x500 drivers/base/dd.c:1165 #5: ffff8881caaab2a8 (&dev->mutex#2){+.+.}, at: input_disconnect_device drivers/input/input.c:732 [inline] #5: ffff8881caaab2a8 (&dev->mutex#2){+.+.}, at: __input_unregister_device+0x23/0x430 drivers/input/input.c:2085 1 lock held by khungtaskd/23: #0: ffffffff87109060 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x264 kernel/locking/lockdep.c:5331 3 locks held by kworker/1:2/83: 6 locks held by kworker/0:2/95: #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8881d8d69528 ((wq_completion)usb_hub_wq){+.+.}, at: process_one_work+0x82a/0x1620 kernel/workqueue.c:2235 #1: ffff8881d5907dd0 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x85e/0x1620 kernel/workqueue.c:2239 #2: ffff8881d4923200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #2: ffff8881d4923200 (&dev->mutex){....}, at: hub_event+0x1be/0x4300 drivers/usb/core/hub.c:5509 #3: ffff8881d4925540 (&port_dev->status_lock){+.+.}, at: usb_lock_port drivers/usb/core/hub.c:3008 [inline] #3: ffff8881d4925540 (&port_dev->status_lock){+.+.}, at: hub_port_connect drivers/usb/core/hub.c:5126 [inline] #3: ffff8881d4925540 (&port_dev->status_lock){+.+.}, at: hub_port_connect_change drivers/usb/core/hub.c:5335 [inline] #3: ffff8881d4925540 (&port_dev->status_lock){+.+.}, at: port_event drivers/usb/core/hub.c:5481 [inline] #3: ffff8881d4925540 (&port_dev->status_lock){+.+.}, at: hub_event+0x1fae/0x4300 drivers/usb/core/hub.c:5563 #4: ffff8881d53ff960 (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 2 locks held by in:imklog/282: #0: ffff8881ca794360 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xe3/0x100 fs/file.c:821 #1: ffffffff871965e0 (fs_reclaim){+.+.}, at: syslog_print kernel/printk/printk.c:1364 [inline] #1: ffffffff871965e0 (fs_reclaim){+.+.}, at: do_syslog kernel/printk/printk.c:1529 [inline] #1: ffffffff871965e0 (fs_reclaim){+.+.}, at: do_syslog+0x791/0x1380 kernel/printk/printk.c:1503 2 locks held by agetty/280: #0: ffff8881d20c4090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc900004db2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x21d/0x1b30 drivers/tty/n_tty.c:2156 3 locks held by kworker/1:3/3067: 3 locks held by kworker/0:3/3132: #0: ffff8881da2fc528 ((wq_completion)pm){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8881da2fc528 ((wq_completion)pm){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881da2fc528 ((wq_completion)pm){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8881da2fc528 ((wq_completion)pm){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8881da2fc528 ((wq_completion)pm){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8881da2fc528 ((wq_completion)pm){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8881da2fc528 ((wq_completion)pm){+.+.}, at: process_one_work+0x82a/0x1620 kernel/workqueue.c:2235 #1: ffff8881c8757dd0 ((work_completion)(&hcd->wakeup_work)){+.+.}, at: process_one_work+0x85e/0x1620 kernel/workqueue.c:2239 #2: ffff8881d49c8200 (&dev->mutex){....}, at: device_lock include/linux/device.h:771 [inline] #2: ffff8881d49c8200 (&dev->mutex){....}, at: usb_remote_wakeup+0x1f/0xe0 drivers/usb/core/hub.c:3612 5 locks held by kworker/0:4/3203: 2 locks held by systemd-udevd/3909: #0: ffff8881c765c148 (&evdev->mutex){+.+.}, at: evdev_close_device drivers/input/evdev.c:425 [inline] #0: ffff8881c765c148 (&evdev->mutex){+.+.}, at: evdev_release+0xeb/0x1c0 drivers/input/evdev.c:466 #1: ffff8881caaab2a8 (&dev->mutex#2){+.+.}, at: input_close_device+0x42/0x1a0 drivers/input/input.c:673 ============================================= NMI backtrace for cpu 1 CPU: 1 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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 3203 Comm: kworker/0:4 Not tainted 5.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event RIP: 0010:ipt_do_table+0x24d/0x1280 net/ipv4/netfilter/ip_tables.c:258 Code: 48 89 fa 48 89 9c 24 d8 00 00 00 48 c1 ea 03 83 e0 0f c1 e0 02 89 84 24 e4 00 00 00 48 b8 00 00 00 00 00 fc ff df 0f b6 04 02 <84> c0 74 08 3c 03 0f 8e a0 0e 00 00 44 89 e1 bb 01 00 00 00 31 ff RSP: 0018:ffff8881db209658 EFLAGS: 00000206 RAX: 0000000000000000 RBX: ffff8881db2098a8 RCX: ffff8881cd39c194 RDX: 1ffff1103a9356a2 RSI: ffffffff85053909 RDI: ffff8881d49ab510 RBP: ffff8881d49ab500 R08: ffff8881d3279880 R09: ffffed103b646a8c R10: ffffed103b646a8b R11: ffff8881db23545b R12: 0000000000000003 R13: ffff8881d53b4000 R14: ffff8881db2098c8 R15: ffff8881cc18d8dc FS: 0000000000000000(0000) GS:ffff8881db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f207ad4a018 CR3: 00000001ce7d2000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ipt_mangle_out net/ipv4/netfilter/iptable_mangle.c:56 [inline] iptable_mangle_hook+0x21f/0x510 net/ipv4/netfilter/iptable_mangle.c:81 nf_hook_entry_hookfn include/linux/netfilter.h:135 [inline] nf_hook_slow+0xba/0x1e0 net/netfilter/core.c:512 nf_hook include/linux/netfilter.h:262 [inline] __ip_local_out+0x30f/0x5e0 net/ipv4/ip_output.c:114 ip_local_out+0x26/0x1a0 net/ipv4/ip_output.c:123 __ip_queue_xmit+0x865/0x1c20 net/ipv4/ip_output.c:530 __tcp_transmit_skb+0x19a9/0x35d0 net/ipv4/tcp_output.c:1234 tcp_transmit_skb net/ipv4/tcp_output.c:1250 [inline] __tcp_retransmit_skb+0x71b/0x28f0 net/ipv4/tcp_output.c:3049 tcp_send_loss_probe+0x4d3/0x880 net/ipv4/tcp_output.c:2661 tcp_write_timer_handler+0x6b4/0x8a0 net/ipv4/tcp_timer.c:607 tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:631 call_timer_fn+0x195/0x6f0 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0x5f9/0x1500 kernel/time/timer.c:1786 __do_softirq+0x21e/0x950 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x178/0x1a0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x141/0x540 arch/x86/kernel/apic/apic.c:1146 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:85 [inline] RIP: 0010:console_trylock_spinning kernel/printk/printk.c:1751 [inline] RIP: 0010:vprintk_emit+0x3c8/0x3d0 kernel/printk/printk.c:1995 Code: 00 83 fb ff 75 d6 e9 e0 fc ff ff e8 e2 01 16 00 e8 dd 4a 1b 00 41 56 9d e9 b6 fd ff ff e8 d0 01 16 00 e8 cb 4a 1b 00 41 56 9d 2a ff ff ff 0f 1f 00 55 48 89 f5 53 48 89 fb e8 b3 01 16 00 49 RSP: 0018:ffff8881d45df700 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: 0000000000000200 RCX: 0000000000000006 RDX: 0000000000000000 RSI: ffff8881d327a120 RDI: ffff8881d327a0cc RBP: ffff8881d45df748 R08: ffff8881d3279880 R09: fffffbfff1266e8f R10: fffffbfff1266e8e R11: ffffffff89337477 R12: 000000000000001a R13: ffff8881d8c78000 R14: 0000000000000246 R15: 0000000000000000 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_info+0xd7/0x109 drivers/base/core.c:3685 show_string drivers/usb/core/hub.c:2262 [inline] announce_device drivers/usb/core/hub.c:2280 [inline] usb_new_device.cold+0x62a/0xcd0 drivers/usb/core/hub.c:2528 hub_port_connect drivers/usb/core/hub.c:5195 [inline] hub_port_connect_change drivers/usb/core/hub.c:5335 [inline] port_event drivers/usb/core/hub.c:5481 [inline] hub_event+0x21cb/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