INFO: task syz.0.2375:12396 blocked for more than 143 seconds. Not tainted 6.11.0-rc1-syzkaller-00272-g17712b7ea075 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.2375 state:D stack:28720 pid:12396 tgid:12395 ppid:8200 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0xe37/0x5490 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6621 schedule_timeout+0x258/0x2a0 kernel/time/timer.c:2557 do_wait_for_common kernel/sched/completion.c:95 [inline] __wait_for_common+0x3de/0x5f0 kernel/sched/completion.c:116 __flush_work+0x5bd/0xc60 kernel/workqueue.c:4208 __cancel_work_sync+0x10c/0x130 kernel/workqueue.c:4328 uhid_dev_destroy drivers/hid/uhid.c:584 [inline] uhid_char_write+0xc0b/0x10c0 drivers/hid/uhid.c:761 vfs_write+0x29a/0x1140 fs/read_write.c:588 ksys_write+0x1f8/0x260 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f62cf5779f9 RSP: 002b:00007f62d031e048 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f62cf705f80 RCX: 00007f62cf5779f9 RDX: 0000000000000004 RSI: 00000000200011c0 RDI: 0000000000000003 RBP: 00007f62cf5e58ee R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f62cf705f80 R15: 00007ffd883e7b88 Showing all locks held in the system: 1 lock held by khungtaskd/31: #0: ffffffff8ddb53a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline] #0: ffffffff8ddb53a0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline] #0: ffffffff8ddb53a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6620 3 locks held by kworker/0:2/943: 2 locks held by getty/4983: #0: ffff88802ab1c0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc9000311b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc8/0x1490 drivers/tty/n_tty.c:2211 3 locks held by kworker/1:3/5233: #0: ffff88801bec0948 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x1277/0x1b40 kernel/workqueue.c:3206 #1: ffffc90003207d80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1b40 kernel/workqueue.c:3207 #2: ffff888023732190 ( &dev->mutex){....}-{3:3}, at: spin_lock_irq include/linux/spinlock.h:376 [inline] &dev->mutex){....}-{3:3}, at: rpm_idle+0x671/0x740 drivers/base/power/runtime.c:529 3 locks held by kworker/1:6/5283: #0: ffff88801bec0948 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x1277/0x1b40 kernel/workqueue.c:3206 #1: ffffc900036c7d80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1b40 kernel/workqueue.c:3207 #2: ffff8880237a4190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1009 [inline] #2: ffff8880237a4190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4e20 drivers/usb/core/hub.c:5849 1 lock held by syz.1.905/8221: 1 lock held by syz.0.2375/12396: #0: ffff88802ba70068 (&uhid->devlock){+.+.}-{3:3}, at: uhid_char_write+0x71/0x10c0 drivers/hid/uhid.c:731 2 locks held by kworker/u8:24/12926: #0: ffff88801bf18148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work+0x1277/0x1b40 kernel/workqueue.c:3206 #1: ffffc90003e0fd80 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x921/0x1b40 kernel/workqueue.c:3207 2 locks held by kworker/u8:28/12934: #0: ffff8880b923edd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:568 [inline] #0: ffff8880b923edd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:553 #1: ffff8880b9228a48 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2d9/0x900 kernel/sched/psi.c:989 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.11.0-rc1-syzkaller-00272-g17712b7ea075 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xf4e/0x1280 kernel/hung_task.c:379 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 943 Comm: kworker/0:2 Not tainted 6.11.0-rc1-syzkaller-00272-g17712b7ea075 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: events uhid_device_add_worker RIP: 0010:unwind_next_frame+0x705/0x23a0 arch/x86/kernel/unwind_orc.c:517 Code: f2 0f 00 00 41 80 fd 05 0f 85 12 01 00 00 e8 42 95 4d 00 48 8b 54 24 10 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 <0f> 85 f1 18 00 00 4c 89 e0 4c 8b 7b 38 48 ba 00 00 00 00 00 fc ff RSP: 0018:ffffc900000077c0 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: ffffc90000007840 RCX: ffffffff813ce5c1 RDX: 1ffff92000000f0f RSI: ffffffff813ce5ee RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000009 R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff91247d3c R13: 0000000000000005 R14: ffffffff91247d40 R15: ffffc90000007875 FS: 0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc8fdcd23f8 CR3: 000000007a4fa000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x100/0x170 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x95/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:541 insert_work+0x36/0x230 kernel/workqueue.c:2185 __queue_work+0x3f8/0x1070 kernel/workqueue.c:2345 call_timer_fn+0x1a0/0x610 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1838 [inline] __run_timers+0x567/0xaf0 kernel/time/timer.c:2417 __run_timer_base kernel/time/timer.c:2428 [inline] __run_timer_base kernel/time/timer.c:2421 [inline] run_timer_base+0x111/0x190 kernel/time/timer.c:2437 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2447 handle_softirqs+0x216/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2010 [inline] RIP: 0010:vprintk_emit kernel/printk/printk.c:2347 [inline] RIP: 0010:vprintk_emit+0x4c2/0x5a0 kernel/printk/printk.c:2303 Code: 00 4d 85 e4 0f 85 8e 00 00 00 e8 99 15 1f 00 9c 5b 81 e3 00 02 00 00 31 ff 48 89 de e8 b7 10 1f 00 48 85 db 0f 85 9a 00 00 00 79 15 1f 00 45 31 c9 41 b8 01 00 00 00 31 c9 48 8d 05 00 00 00 RSP: 0018:ffffc90003d4f460 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff816b663c RDX: ffff888020ebda00 RSI: ffffffff816b6646 RDI: 0000000000000007 RBP: 000000000000003a R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000200 R13: ffff888018293c00 R14: ffffffff8bdb44c0 R15: ffffc90003d4f4c0 dev_vprintk_emit drivers/base/core.c:4909 [inline] dev_printk_emit+0xfb/0x140 drivers/base/core.c:4920 __dev_printk+0xf5/0x270 drivers/base/core.c:4932 _dev_warn+0xe5/0x120 drivers/base/core.c:4976 hid_parser_main+0x2b6/0xc70 drivers/hid/hid-core.c:632 hid_open_report+0x3f4/0x7c0 drivers/hid/hid-core.c:1276 hid_parse include/linux/hid.h:1118 [inline] hid_generic_probe+0x4d/0x90 drivers/hid/hid-generic.c:63 __hid_device_probe drivers/hid/hid-core.c:2674 [inline] hid_device_probe+0x2eb/0x490 drivers/hid/hid-core.c:2711 call_driver_probe drivers/base/dd.c:578 [inline] really_probe+0x23e/0xa90 drivers/base/dd.c:657 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:799 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:829 __device_attach_driver+0x1df/0x310 drivers/base/dd.c:957 bus_for_each_drv+0x157/0x1e0 drivers/base/bus.c:457 __device_attach+0x1e8/0x4b0 drivers/base/dd.c:1029 bus_probe_device+0x17f/0x1c0 drivers/base/bus.c:532 device_add+0x114b/0x1a70 drivers/base/core.c:3679 hid_add_device+0x37f/0xa70 drivers/hid/hid-core.c:2857 uhid_device_add_worker+0x3e/0x110 drivers/hid/uhid.c:73 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244