INFO: task kworker/1:1:32 blocked for more than 143 seconds. Not tainted 5.12.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:1 state:D stack:19240 pid: 32 ppid: 2 flags:0x00004000 Workqueue: usb_hub_wq hub_event Call Trace: context_switch kernel/sched/core.c:4339 [inline] __schedule+0x920/0x1fa0 kernel/sched/core.c:5147 schedule+0xcb/0x270 kernel/sched/core.c:5226 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/0xf60 drivers/base/dd.c:576 driver_probe_device+0x298/0x410 drivers/base/dd.c:763 __device_attach_driver+0x203/0x2c0 drivers/base/dd.c:870 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431 __device_attach+0x228/0x4b0 drivers/base/dd.c:938 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xbe0/0x2100 drivers/base/core.c:3319 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/0xf60 drivers/base/dd.c:576 driver_probe_device+0x298/0x410 drivers/base/dd.c:763 __device_attach_driver+0x203/0x2c0 drivers/base/dd.c:870 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431 __device_attach+0x228/0x4b0 drivers/base/dd.c:938 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xbe0/0x2100 drivers/base/core.c:3319 usb_new_device.cold+0x721/0x1058 drivers/usb/core/hub.c:2556 hub_port_connect drivers/usb/core/hub.c:5276 [inline] hub_port_connect_change drivers/usb/core/hub.c:5416 [inline] port_event drivers/usb/core/hub.c:5562 [inline] hub_event+0x2357/0x4320 drivers/usb/core/hub.c:5644 process_one_work+0x98d/0x1580 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x38c/0x460 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Showing all locks held in the system: 6 locks held by kworker/1:1/32: #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1580 kernel/workqueue.c:2246 #1: ffffc900001a7da8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1580 kernel/workqueue.c:2250 #2: ffff88810f388220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:744 [inline] #2: ffff88810f388220 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5590 #3: ffff888119b7e220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:744 [inline] #3: ffff888119b7e220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7a/0x4b0 drivers/base/dd.c:913 #4: ffff88814378d1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:744 [inline] #4: ffff88814378d1a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7a/0x4b0 drivers/base/dd.c:913 #5: ffffffff87e68a08 (rng_mutex){+.+.}-{3:3}, at: hwrng_register+0x7a/0x600 drivers/char/hw_random/core.c:478 1 lock held by khungtaskd/1267: #0: ffffffff87a7cd60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x269 kernel/locking/lockdep.c:6333 6 locks held by kworker/1:3/2664: #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff888109fa9538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1580 kernel/workqueue.c:2246 #1: ffffc90000287da8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1580 kernel/workqueue.c:2250 #2: ffff88810f348220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:744 [inline] #2: ffff88810f348220 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5590 #3: ffff88810f34b570 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3079 [inline] #3: ffff88810f34b570 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5207 [inline] #3: ffff88810f34b570 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5416 [inline] #3: ffff88810f34b570 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5562 [inline] #3: ffff88810f34b570 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2178/0x4320 drivers/usb/core/hub.c:5644 #4: ffff88810f0a6968 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_init+0x1b9/0x2e40 drivers/usb/core/hub.c:4631 #5: ffffffff88356110 (ehci_cf_port_reset_rwsem){.+.+}-{3:3}, at: hub_port_reset+0x191/0x1bc0 drivers/usb/core/hub.c:2941 1 lock held by in:imklog/4283: 2 locks held by agetty/4292: #0: ffff888117530098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc900004bb2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xd5b/0x12f0 drivers/tty/n_tty.c:2179 3 locks held by kworker/0:6/7235: 6 locks held by kworker/1:6/8858: 2 locks held by agetty/10855: #0: ffff88811779d098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc9000028b2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xd5b/0x12f0 drivers/tty/n_tty.c:2179 4 locks held by syz-executor.0/26836: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1267 Comm: khungtaskd Not tainted 5.12.0-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+0x143/0x1db 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:313 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: 26836 Comm: syz-executor.0 Not tainted 5.12.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:lock_acquire+0x0/0x700 kernel/locking/lockdep.c:5480 Code: c7 e8 0f cd 88 e8 80 c1 46 00 e9 a5 fe ff ff 48 c7 c7 e8 0f cd 88 e8 6f c1 46 00 e9 fb fe ff ff 66 2e 0f 1f 84 00 00 00 00 00 <48> b8 00 00 00 00 00 fc ff df 41 57 41 89 d7 41 56 41 89 f6 41 55 RSP: 0018:ffffc900050e6fa0 EFLAGS: 00000246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff87a7cd60 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff819ae8af R11: 0000000000000000 R12: ffff88811099e000 R13: ffff88811099e650 R14: 0000000000000009 R15: 0000000000000006 FS: 00007f36dcc70700(0000) GS:ffff8881f6b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2cf24000 CR3: 000000010fee2000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_acquire include/linux/rcupdate.h:267 [inline] rcu_read_lock include/linux/rcupdate.h:657 [inline] ext4_get_group_info+0x129/0x3e0 fs/ext4/ext4.h:3288 ext4_validate_block_bitmap.part.0+0x2c/0xd40 fs/ext4/balloc.c:376 ext4_validate_block_bitmap fs/ext4/balloc.c:373 [inline] ext4_read_block_bitmap_nowait+0xb35/0x1a90 fs/ext4/balloc.c:508 ext4_read_block_bitmap+0x1d/0xa0 fs/ext4/balloc.c:549 ext4_mb_mark_diskspace_used+0x18b/0x1630 fs/ext4/mballoc.c:3720 ext4_mb_new_blocks+0xcef/0x4f40 fs/ext4/mballoc.c:5532 ext4_alloc_branch fs/ext4/indirect.c:333 [inline] ext4_ind_map_blocks+0x18f2/0x23d0 fs/ext4/indirect.c:626 ext4_map_blocks+0x9c9/0x17d0 fs/ext4/inode.c:640 ext4_iomap_alloc fs/ext4/inode.c:3426 [inline] ext4_iomap_begin+0x3eb/0x760 fs/ext4/inode.c:3476 iomap_apply+0x177/0xaa0 fs/iomap/apply.c:46 __iomap_dio_rw+0x719/0x12f0 fs/iomap/direct-io.c:561 iomap_dio_rw+0x30/0x90 fs/iomap/direct-io.c:649 ext4_dio_write_iter fs/ext4/file.c:568 [inline] ext4_file_write_iter+0xa50/0x1980 fs/ext4/file.c:678 call_write_iter include/linux/fs.h:2116 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x743/0x9e0 fs/read_write.c:605 ksys_write+0x12d/0x250 fs/read_write.c:658 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f36dcc70188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9 RDX: 0000000000300000 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00000000004bfce1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007fff24082b3f R14: 00007f36dcc70300 R15: 0000000000022000