INFO: task udevd:5552 blocked for more than 143 seconds. Not tainted 6.10.0-next-20240726-syzkaller-13921-g668d33c9ff92 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:24632 pid:5552 tgid:5552 ppid:4678 flags:0x00000002 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6752 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 device_lock include/linux/device.h:1009 [inline] uevent_show+0x17d/0x340 drivers/base/core.c:2743 dev_attr_show+0x55/0xc0 drivers/base/core.c:2437 sysfs_kf_seq_show+0x331/0x4c0 fs/sysfs/file.c:59 seq_read_iter+0x445/0xd60 fs/seq_file.c:230 new_sync_read fs/read_write.c:395 [inline] vfs_read+0x9bd/0xbc0 fs/read_write.c:476 ksys_read+0x1a0/0x2c0 fs/read_write.c:619 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd96b116b6a RSP: 002b:00007ffe6f039b98 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000558925975170 RCX: 00007fd96b116b6a RDX: 0000000000001000 RSI: 000055892597b0e0 RDI: 0000000000000008 RBP: 0000558925975170 R08: 0000000000000008 R09: 0000000000000020 R10: 000000000000010f R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000003fff R14: 00007ffe6f03a078 R15: 000000000000000a INFO: task udevd:5554 blocked for more than 144 seconds. Not tainted 6.10.0-next-20240726-syzkaller-13921-g668d33c9ff92 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:23696 pid:5554 tgid:5554 ppid:4678 flags:0x00000002 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6752 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 device_lock include/linux/device.h:1009 [inline] uevent_show+0x17d/0x340 drivers/base/core.c:2743 dev_attr_show+0x55/0xc0 drivers/base/core.c:2437 sysfs_kf_seq_show+0x331/0x4c0 fs/sysfs/file.c:59 seq_read_iter+0x445/0xd60 fs/seq_file.c:230 new_sync_read fs/read_write.c:395 [inline] vfs_read+0x9bd/0xbc0 fs/read_write.c:476 ksys_read+0x1a0/0x2c0 fs/read_write.c:619 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd96b116b6a RSP: 002b:00007ffe6f039b98 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000558925975170 RCX: 00007fd96b116b6a RDX: 0000000000001000 RSI: 000055892597b0e0 RDI: 0000000000000008 RBP: 0000558925975170 R08: 0000000000000008 R09: 0000000000000000 R10: 000000000000010f R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000003fff R14: 00007ffe6f03a078 R15: 000000000000000a Showing all locks held in the system: 4 locks held by kworker/1:0/25: 1 lock held by khungtaskd/30: #0: ffffffff8e937a60 ( rcu_read_lock ){....}-{1:2} , at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline] , at: rcu_read_lock include/linux/rcupdate.h:838 [inline] , at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6695 8 locks held by kworker/1:1H/45: 4 locks held by kworker/u8:6/1110: #0: ffff888015f1f148 ( (wq_completion)wg-kex-wg0 #6 ){+.+.}-{0:0} , at: process_one_work kernel/workqueue.c:3206 [inline] , at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312 #1: ffffc90003d57d00 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline] #1: ffffc90003d57d00 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312 #2: ffff88806ea41248 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0x120/0xf30 drivers/net/wireguard/noise.c:529 #3: ffff88802c32c4d8 ( &handshake->lock ){++++}-{3:3} , at: wg_noise_handshake_create_initiation+0x132/0xf30 drivers/net/wireguard/noise.c:530 2 locks held by getty/4974: #0: ffff88802b5750a0 ( &tty->ldisc_sem ){++++}-{0:0} , at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031232f0 ( &ldata->atomic_read_lock ){+.+.}-{3:3} , at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2211 6 locks held by kworker/0:4/5240: #0: ffff888018abfd48 ( (wq_completion)usb_hub_wq ){+.+.}-{0:0} , at: process_one_work kernel/workqueue.c:3206 [inline] , at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312 #1: ffffc90003c67d00 ( (work_completion)(&hub->events) ){+.+.}-{0:0} , at: process_one_work kernel/workqueue.c:3207 [inline] , at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312 #2: ffff8880240ec190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: hub_event+0x1fe/0x5150 drivers/usb/core/hub.c:5849 #3: ffff88801f525190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: __device_attach+0x8e/0x520 drivers/base/dd.c:1004 #4: ffff88807ae44160 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: __device_attach+0x8e/0x520 drivers/base/dd.c:1004 #5: ffffffff8f70bc48 ( input_mutex ){+.+.}-{3:3} , at: input_register_device+0xaee/0x1110 drivers/input/input.c:2466 2 locks held by kworker/1:3/5245: 2 locks held by kworker/1:4/5248: 4 locks held by udevd/5552: #0: ffff88802c0cc668 ( &p->lock){+.+.}-{3:3}, at: seq_read_iter+0xb7/0xd60 fs/seq_file.c:182 #1: ffff8880683e2888 ( &of->mutex #2 ){+.+.}-{3:3} , at: kernfs_seq_start+0x53/0x3b0 fs/kernfs/file.c:154 #2: ffff88801d2b30f8 ( kn->active #5 ){.+.+}-{0:0} , at: kernfs_seq_start+0x72/0x3b0 fs/kernfs/file.c:155 #3: ffff88807ab45190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: uevent_show+0x17d/0x340 drivers/base/core.c:2743 4 locks held by udevd/5554: #0: ffff88802c0ccc30 ( &p->lock){+.+.}-{3:3}, at: seq_read_iter+0xb7/0xd60 fs/seq_file.c:182 #1: ffff88801fec8488 ( &of->mutex #2 ){+.+.}-{3:3} , at: kernfs_seq_start+0x53/0x3b0 fs/kernfs/file.c:154 #2: ffff88801f54ca58 ( kn->active #5 ){.+.+}-{0:0} , at: kernfs_seq_start+0x72/0x3b0 fs/kernfs/file.c:155 #3: ffff88801f525190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: uevent_show+0x17d/0x340 drivers/base/core.c:2743 3 locks held by kworker/1:5/5621: 6 locks held by kworker/1:7/5642: 6 locks held by kworker/0:5/5721: #0: ffff888018abfd48 ( (wq_completion)usb_hub_wq ){+.+.}-{0:0} , at: process_one_work kernel/workqueue.c:3206 [inline] , at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312 #1: ffffc90004b6fd00 ( (work_completion)(&hub->events) ){+.+.}-{0:0} , at: process_one_work kernel/workqueue.c:3207 [inline] , at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312 #2: ffff888024124190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: hub_event+0x1fe/0x5150 drivers/usb/core/hub.c:5849 #3: ffff88801d6c1190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: __device_attach+0x8e/0x520 drivers/base/dd.c:1004 #4: ffff888069228160 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: __device_attach+0x8e/0x520 drivers/base/dd.c:1004 #5: ffffffff8f70bc48 ( input_mutex ){+.+.}-{3:3} , at: input_register_device+0xaee/0x1110 drivers/input/input.c:2466 4 locks held by udevd/5740: #0: ffff888022d8e9e0 ( &p->lock ){+.+.}-{3:3} , at: seq_read_iter+0xb7/0xd60 fs/seq_file.c:182 #1: ffff88802b6a6488 ( &of->mutex #2 ){+.+.}-{3:3} , at: kernfs_seq_start+0x53/0x3b0 fs/kernfs/file.c:154 #2: ffff8880697a7c38 ( kn->active#5){.+.+}-{0:0}, at: kernfs_seq_start+0x72/0x3b0 fs/kernfs/file.c:155 #3: ffff88801d6c1190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: uevent_show+0x17d/0x340 drivers/base/core.c:2743 6 locks held by kworker/0:7/5768: #0: ffff888018abfd48 ( (wq_completion)usb_hub_wq ){+.+.}-{0:0} , at: process_one_work kernel/workqueue.c:3206 [inline] , at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312 #1: ffffc90004c0fd00 ( (work_completion)(&hub->events) ){+.+.}-{0:0} , at: process_one_work kernel/workqueue.c:3207 [inline] , at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312 #2: ffff88802414c190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: hub_event+0x1fe/0x5150 drivers/usb/core/hub.c:5849 #3: ffff88806c449190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: __device_attach+0x8e/0x520 drivers/base/dd.c:1004 #4: ffff88802ab13160 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: __device_attach+0x8e/0x520 drivers/base/dd.c:1004 #5: ffffffff8f70bc48 (input_mutex){+.+.}-{3:3}, at: input_register_device+0xaee/0x1110 drivers/input/input.c:2466 6 locks held by kworker/0:9/5790: #0: ffff888018abfd48 ( (wq_completion)usb_hub_wq ){+.+.}-{0:0} , at: process_one_work kernel/workqueue.c:3206 [inline] , at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312 #1: ffffc90004c5fd00 ( (work_completion)(&hub->events) ){+.+.}-{0:0} , at: process_one_work kernel/workqueue.c:3207 [inline] , at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312 #2: ffff88802413c190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: hub_event+0x1fe/0x5150 drivers/usb/core/hub.c:5849 #3: ffff88802aa1e190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: __device_attach+0x8e/0x520 drivers/base/dd.c:1004 #4: ffff8880118e0160 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: __device_attach+0x8e/0x520 drivers/base/dd.c:1004 #5: ffffffff8f70bc48 (input_mutex){+.+.}-{3:3}, at: input_register_device+0xaee/0x1110 drivers/input/input.c:2466 4 locks held by udevd/5792: #0: ffff888022d8e8b8 ( &p->lock ){+.+.}-{3:3} , at: seq_read_iter+0xb7/0xd60 fs/seq_file.c:182 #1: ffff88806dbb8088 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_seq_start+0x53/0x3b0 fs/kernfs/file.c:154 #2: ffff88807ee56b48 ( kn->active #5 ){.+.+}-{0:0} , at: kernfs_seq_start+0x72/0x3b0 fs/kernfs/file.c:155 #3: ffff88806c449190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: uevent_show+0x17d/0x340 drivers/base/core.c:2743 4 locks held by udevd/5804: #0: ffff88807d7530a0 ( &p->lock ){+.+.}-{3:3} , at: seq_read_iter+0xb7/0xd60 fs/seq_file.c:182 #1: ffff88802e0f0488 ( &of->mutex #2 ){+.+.}-{3:3} , at: kernfs_seq_start+0x53/0x3b0 fs/kernfs/file.c:154 #2: ffff88807a80b968 (kn->active#5){.+.+}-{0:0}, at: kernfs_seq_start+0x72/0x3b0 fs/kernfs/file.c:155 #3: ffff88802aa1e190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: uevent_show+0x17d/0x340 drivers/base/core.c:2743 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.10.0-next-20240726-syzkaller-13921-g668d33c9ff92 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 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+0xff4/0x1040 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:144 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 0 to CPUs 1: yealink 5-1:36.0: urb_irq_callback - urb status -71 NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 1615 Comm: kworker/1:2 Not tainted 6.10.0-next-20240726-syzkaller-13921-g668d33c9ff92 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: events nsim_dev_trap_report_work RIP: 0010:io_serial_in+0x76/0xb0 drivers/tty/serial/8250/8250_port.c:406 Code: d0 e2 51 fc 89 e9 41 d3 e6 48 83 c3 40 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 41 67 b9 fc 44 03 33 44 89 f2 ec <0f> b6 c0 5b 41 5e 41 5f 5d c3 cc cc cc cc 89 e9 80 e1 07 38 c1 7c RSP: 0018:ffffc90000a17258 EFLAGS: 00000002 RAX: 1ffffffff2a4bb00 RBX: ffffffff9525df20 RCX: 0000000000000000 RDX: 00000000000003fd RSI: 0000000000000000 RDI: 0000000000000020 RBP: 0000000000000000 R08: ffffffff8541e846 R09: 1ffff110040af046 R10: dffffc0000000000 R11: ffffffff8541e800 R12: dffffc0000000000 R13: ffffffff94f6ff10 R14: 00000000000003fd R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4b820bb378 CR3: 000000000e734000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: serial_in drivers/tty/serial/8250/8250.h:137 [inline] serial_lsr_in drivers/tty/serial/8250/8250.h:159 [inline] wait_for_lsr drivers/tty/serial/8250/8250_port.c:2068 [inline] serial8250_console_fifo_write drivers/tty/serial/8250/8250_port.c:3315 [inline] serial8250_console_write+0x1373/0x1ed0 drivers/tty/serial/8250/8250_port.c:3393 console_emit_next_record kernel/printk/printk.c:3030 [inline] console_flush_all+0x880/0xf50 kernel/printk/printk.c:3102 console_unlock+0x13b/0x4d0 kernel/printk/printk.c:3173