INFO: task kworker/0:1:14 blocked for more than 143 seconds. Not tainted 5.18.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:1 state:D stack:24288 pid: 14 ppid: 2 flags:0x00004000 Workqueue: usb_hub_wq hub_event Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0x9cd/0x4af0 kernel/sched/core.c:6431 schedule+0xd2/0x1f0 kernel/sched/core.c:6503 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6562 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa70/0x1350 kernel/locking/mutex.c:747 add_early_randomness+0x14/0x120 drivers/char/hw_random/core.c:69 hwrng_register+0x2e1/0x410 drivers/char/hw_random/core.c:599 chaoskey_probe+0x6f1/0xb40 drivers/usb/misc/chaoskey.c:205 usb_probe_interface+0x274/0x6a0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:542 [inline] really_probe+0x1c1/0x9d0 drivers/base/dd.c:621 __driver_probe_device+0x2a6/0x460 drivers/base/dd.c:752 driver_probe_device+0x44/0x110 drivers/base/dd.c:782 __device_attach_driver+0x185/0x250 drivers/base/dd.c:899 bus_for_each_drv+0x11e/0x1a0 drivers/base/bus.c:427 __device_attach+0x1db/0x410 drivers/base/dd.c:970 bus_probe_device+0x19d/0x250 drivers/base/bus.c:487 device_add+0x9ca/0x1b10 drivers/base/core.c:3402 usb_set_configuration+0xc91/0x1840 drivers/usb/core/message.c:2170 usb_generic_driver_probe+0x74/0xa0 drivers/usb/core/generic.c:238 usb_probe_device+0x95/0x240 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:542 [inline] really_probe+0x1c1/0x9d0 drivers/base/dd.c:621 __driver_probe_device+0x2a6/0x460 drivers/base/dd.c:752 driver_probe_device+0x44/0x110 drivers/base/dd.c:782 __device_attach_driver+0x185/0x250 drivers/base/dd.c:899 bus_for_each_drv+0x11e/0x1a0 drivers/base/bus.c:427 __device_attach+0x1db/0x410 drivers/base/dd.c:970 bus_probe_device+0x19d/0x250 drivers/base/bus.c:487 device_add+0x9ca/0x1b10 drivers/base/core.c:3402 usb_new_device.cold+0x5d1/0xeeb drivers/usb/core/hub.c:2566 hub_port_connect drivers/usb/core/hub.c:5363 [inline] hub_port_connect_change drivers/usb/core/hub.c:5507 [inline] port_event drivers/usb/core/hub.c:5665 [inline] hub_event+0x114d/0x39b0 drivers/usb/core/hub.c:5747 process_one_work+0x865/0x13d0 kernel/workqueue.c:2289 worker_thread+0x598/0xec0 kernel/workqueue.c:2436 kthread+0x299/0x340 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 Showing all locks held in the system: 6 locks held by kworker/0:1/14: #0: ffff8881457b5d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881457b5d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff8881457b5d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff8881457b5d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff8881457b5d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff8881457b5d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x78a/0x13d0 kernel/workqueue.c:2260 #1: ffffc9000034fdb8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7b7/0x13d0 kernel/workqueue.c:2264 #2: ffff888020408190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:762 [inline] #2: ffff888020408190 (&dev->mutex){....}-{3:3}, at: hub_event+0x127/0x39b0 drivers/usb/core/hub.c:5693 #3: ffff88807609d190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:762 [inline] #3: ffff88807609d190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x74/0x410 drivers/base/dd.c:945 #4: ffff8880791b2118 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:762 [inline] #4: ffff8880791b2118 (&dev->mutex){....}-{3:3}, at: __device_attach+0x74/0x410 drivers/base/dd.c:945 #5: ffffffff8bbde3c8 (reading_mutex){+.+.}-{3:3}, at: add_early_randomness+0x14/0x120 drivers/char/hw_random/core.c:69 1 lock held by khungtaskd/28: #0: ffffffff8b17a460 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6491 1 lock held by hwrng/755: #0: ffffffff8bbde3c8 (reading_mutex){+.+.}-{3:3}, at: hwrng_fillfn+0xbb/0x250 drivers/char/hw_random/core.c:503 2 locks held by getty/3280: #0: ffff88801d0e1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x1f/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc90001c082e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x9d7/0xed0 drivers/tty/n_tty.c:2075 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 5.18.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:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x30/0xc0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x140/0x170 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0x891/0xc20 kernel/hung_task.c:378 kthread+0x299/0x340 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 11 Comm: kworker/u4:1 Not tainted 5.18.0-syzkaller #0 CPU: 1 PID: 11 Comm: kworker/u4:1 Not tainted 5.18.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:rol32 include/linux/bitops.h:75 [inline] RIP: 0010:iterate_chain_key kernel/locking/lockdep.c:447 [inline] RIP: 0010:__lock_acquire+0xc87/0x55d0 kernel/locking/lockdep.c:5041 Code: c2 06 31 ca 41 89 d7 29 d3 01 c2 41 c1 c7 08 41 31 df 44 89 f9 44 29 f8 41 01 d7 c1 c1 10 44 89 fe 31 c8 89 c1 29 c2 44 01 f8 c9 0d 31 ca 01 d0 29 d6 89 d1 48 8b 54 24 38 c1 c1 04 31 f1 48 RSP: 0018:ffffc9000031f788 EFLAGS: 00000013 RAX: 000000004bacb9c2 RBX: 00000000bf03c6e3 RCX: 0000000071a75887 RDX: 00000000aef67b2c RSI: 00000000da05613b RDI: ffffffff8f973da0 RBP: ffff888011e18b4a R08: 0000000000000000 R09: ffffffff8f96c8d7 R10: fffffbfff1f2d91a R11: 0000000000000001 R12: ffff888011e18b28 R13: ffff888011e18000 R14: 0000000000000000 R15: 00000000da05613b FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4683f089e0 CR3: 000000000ae8e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] __get_locked_pte+0x105/0x210 mm/memory.c:1830 get_locked_pte include/linux/mm.h:2132 [inline] __text_poke+0x1b3/0x8e0 arch/x86/kernel/alternative.c:1052 text_poke arch/x86/kernel/alternative.c:1137 [inline] text_poke_bp_batch+0x44c/0x6d0 arch/x86/kernel/alternative.c:1483 text_poke_flush arch/x86/kernel/alternative.c:1589 [inline] text_poke_flush arch/x86/kernel/alternative.c:1586 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1596 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 static_key_enable_cpuslocked+0x15f/0x220 kernel/jump_label.c:177 static_key_enable+0x11/0x20 kernel/jump_label.c:190 toggle_allocation_gate mm/kfence/core.c:808 [inline] toggle_allocation_gate+0xe3/0x310 mm/kfence/core.c:800 process_one_work+0x865/0x13d0 kernel/workqueue.c:2289 worker_thread+0x598/0xec0 kernel/workqueue.c:2436 kthread+0x299/0x340 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 ---------------- Code disassembly (best guess): 0: c2 06 31 retq $0x3106 3: ca 41 89 lret $0x8941 6: d7 xlat %ds:(%rbx) 7: 29 d3 sub %edx,%ebx 9: 01 c2 add %eax,%edx b: 41 c1 c7 08 rol $0x8,%r15d f: 41 31 df xor %ebx,%r15d 12: 44 89 f9 mov %r15d,%ecx 15: 44 29 f8 sub %r15d,%eax 18: 41 01 d7 add %edx,%r15d 1b: c1 c1 10 rol $0x10,%ecx 1e: 44 89 fe mov %r15d,%esi 21: 31 c8 xor %ecx,%eax 23: 89 c1 mov %eax,%ecx 25: 29 c2 sub %eax,%edx 27: 44 01 f8 add %r15d,%eax * 2a: c1 c9 0d ror $0xd,%ecx <-- trapping instruction 2d: 31 ca xor %ecx,%edx 2f: 01 d0 add %edx,%eax 31: 29 d6 sub %edx,%esi 33: 89 d1 mov %edx,%ecx 35: 48 8b 54 24 38 mov 0x38(%rsp),%rdx 3a: c1 c1 04 rol $0x4,%ecx 3d: 31 f1 xor %esi,%ecx 3f: 48 rex.W