INFO: task kworker/1:6:7674 blocked for more than 143 seconds. Not tainted 5.12.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:6 state:D stack:19000 pid: 7674 ppid: 2 flags:0x00004000 Workqueue: usb_hub_wq hub_event Call Trace: context_switch kernel/sched/core.c:4324 [inline] __schedule+0x91b/0x1f90 kernel/sched/core.c:5075 schedule+0xcb/0x270 kernel/sched/core.c:5154 schedule_timeout+0x1db/0x250 kernel/time/timer.c:1868 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x168/0x270 kernel/sched/completion.c:138 virtio_cleanup+0x80/0xa0 drivers/char/hw_random/virtio-rng.c:85 cleanup_rng drivers/char/hw_random/core.c:81 [inline] kref_put include/linux/kref.h:65 [inline] drop_current_rng+0xda/0x110 drivers/char/hw_random/core.c:109 set_current_rng+0x2d3/0x490 drivers/char/hw_random/core.c:96 hwrng_register+0x3bf/0x600 drivers/char/hw_random/core.c:505 chaoskey_probe+0x886/0xc50 drivers/usb/misc/chaoskey.c:205 usb_probe_interface+0x315/0x7f0 drivers/usb/core/driver.c:396 really_probe+0x291/0xe60 drivers/base/dd.c:554 driver_probe_device+0x26b/0x3d0 drivers/base/dd.c:740 __device_attach_driver+0x1d1/0x290 drivers/base/dd.c:846 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431 __device_attach+0x228/0x4a0 drivers/base/dd.c:914 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xbdb/0x1db0 drivers/base/core.c:3242 usb_set_configuration+0x113f/0x1910 drivers/usb/core/message.c:2164 usb_generic_driver_probe+0xba/0x100 drivers/usb/core/generic.c:238 usb_probe_device+0xd9/0x2c0 drivers/usb/core/driver.c:293 really_probe+0x291/0xe60 drivers/base/dd.c:554 driver_probe_device+0x26b/0x3d0 drivers/base/dd.c:740 __device_attach_driver+0x1d1/0x290 drivers/base/dd.c:846 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431 __device_attach+0x228/0x4a0 drivers/base/dd.c:914 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xbdb/0x1db0 drivers/base/core.c:3242 usb_new_device.cold+0x721/0x1058 drivers/usb/core/hub.c:2555 hub_port_connect drivers/usb/core/hub.c:5223 [inline] hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] port_event drivers/usb/core/hub.c:5509 [inline] hub_event+0x2357/0x4320 drivers/usb/core/hub.c:5591 process_one_work+0x98d/0x1580 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x38c/0x460 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Showing all locks held in the system: 1 lock held by khungtaskd/1269: #0: ffffffff87a781e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x269 kernel/locking/lockdep.c:6327 1 lock held by in:imklog/4290: 2 locks held by login/4292: #0: ffff888117d3b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:266 #1: ffff888117d3b130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: tty_write_lock drivers/tty/tty_io.c:968 [inline] #1: ffff888117d3b130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: do_tty_write drivers/tty/tty_io.c:991 [inline] #1: ffff888117d3b130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: file_tty_write.constprop.0+0x29f/0x910 drivers/tty/tty_io.c:1134 2 locks held by agetty/4301: #0: ffff888111957098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:266 #1: ffffc9000028b2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xd5b/0x12f0 drivers/tty/n_tty.c:2178 1 lock held by syz-executor.3/4725: #0: ffff8881f6b332d8 (&rq->lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1321 [inline] #0: ffff8881f6b332d8 (&rq->lock){-.-.}-{2:2}, at: __schedule+0x230/0x1f90 kernel/sched/core.c:4992 5 locks held by kworker/1:4/7226: #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1580 kernel/workqueue.c:2246 #1: ffffc90004dcfda8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1580 kernel/workqueue.c:2250 #2: ffff888108f20218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #2: ffff888108f20218 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff888108f23570 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3030 [inline] #3: ffff888108f23570 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5154 [inline] #3: ffff888108f23570 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] #3: ffff888108f23570 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5509 [inline] #3: ffff888108f23570 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2178/0x4320 drivers/usb/core/hub.c:5591 #4: ffff8881087fd868 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_init+0x1b9/0x2e40 drivers/usb/core/hub.c:4582 5 locks held by kworker/1:5/7617: #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1580 kernel/workqueue.c:2246 #1: ffffc90006c17da8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1580 kernel/workqueue.c:2250 #2: ffff888108ff8218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #2: ffff888108ff8218 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff888108684218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #3: ffff888108684218 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7a/0x4a0 drivers/base/dd.c:889 #4: ffff88813ce251a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #4: ffff88813ce251a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7a/0x4a0 drivers/base/dd.c:889 6 locks held by kworker/1:6/7674: #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff888103ed3d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1580 kernel/workqueue.c:2246 #1: ffffc9000625fda8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1580 kernel/workqueue.c:2250 #2: ffff888109080218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #2: ffff888109080218 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff88810377f218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #3: ffff88810377f218 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7a/0x4a0 drivers/base/dd.c:889 #4: ffff8881018ba1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #4: ffff8881018ba1a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7a/0x4a0 drivers/base/dd.c:889 #5: ffffffff87e5dd48 (rng_mutex){+.+.}-{3:3}, at: hwrng_register+0x7a/0x600 drivers/char/hw_random/core.c:478 2 locks held by systemd-udevd/26028: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1269 Comm: khungtaskd Not tainted 5.12.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xfa/0x151 lib/dump_stack.c:120 nmi_cpu_backtrace.cold+0x46/0xe0 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x1da/0x200 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline] watchdog+0xd32/0xf70 kernel/hung_task.c:294 kthread+0x38c/0x460 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 2659 Comm: systemd-udevd Not tainted 5.12.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__lock_acquire+0xb62/0x54c0 kernel/locking/lockdep.c:4897 Code: e0 16 1f 8a e8 3f 36 46 00 48 0f a3 1d d7 a5 f8 08 0f 83 10 0d 00 00 48 8d 1c 5b 48 c1 e3 06 48 81 c3 00 1b 1f 8a 48 8d 7b 40 <48> b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f RSP: 0018:ffffc90000297830 EFLAGS: 00000082 RAX: 0000000000000001 RBX: ffffffff8a1f6a80 RCX: ffffffff81267101 RDX: fffffbfff143e2de RSI: 0000000000000008 RDI: ffffffff8a1f6ac0 RBP: ffff888113462410 R08: 0000000000000000 R09: ffffffff8a1f16ef R10: fffffbfff143e2dd R11: 0000000000000001 R12: ffff888113461ac0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f32ad8a78c0(0000) GS:ffff8881f6b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004e4964 CR3: 00000001013fb000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x19d/0x6f0 kernel/locking/lockdep.c:5475 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x27/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] d_lookup_done include/linux/dcache.h:371 [inline] d_lookup_done include/linux/dcache.h:368 [inline] __lookup_slow+0x3c8/0x480 fs/namei.c:1627 lookup_slow fs/namei.c:1643 [inline] walk_component+0x418/0x6a0 fs/namei.c:1939 lookup_last fs/namei.c:2396 [inline] path_lookupat+0x1ba/0x830 fs/namei.c:2420 filename_lookup+0x19f/0x560 fs/namei.c:2453 user_path_at include/linux/namei.h:60 [inline] do_faccessat+0x127/0x850 fs/open.c:425 do_syscall_64+0x2d/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f32ac7199c7 Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d c8 d4 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 15 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 d4 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007ffeddca82b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 0000555afc122c00 RCX: 00007f32ac7199c7 RDX: 00746e657665752f RSI: 0000000000000000 RDI: 00007ffeddca82c0 RBP: 00007ffeddca8330 R08: 0000000000004040 R09: 0000000000001010 R10: 00007f32ac9d7b58 R11: 0000000000000246 R12: 0000555afb739856 R13: 0000555afc1130d0 R14: 00007ffeddca82c0 R15: 0000555afc129890