INFO: task syz.1.935:7102 blocked for more than 430 seconds. Not tainted 6.13.0-rc2-syzkaller-g21f1b85c8912 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.935 state:D stack:0 pid:7102 tgid:7102 ppid:3167 flags:0x00000008 Call Trace: [] context_switch kernel/sched/core.c:5369 [inline] [] __schedule+0xdaa/0x393a kernel/sched/core.c:6756 [] __schedule_loop kernel/sched/core.c:6833 [inline] [] schedule+0xc4/0x324 kernel/sched/core.c:6848 [] schedule_timeout+0x1c6/0x28a kernel/time/sleep_timeout.c:75 [] do_wait_for_common kernel/sched/completion.c:95 [inline] [] __wait_for_common+0x1ca/0x4b6 kernel/sched/completion.c:116 [] wait_for_common kernel/sched/completion.c:127 [inline] [] wait_for_completion+0x1a/0x22 kernel/sched/completion.c:148 [] __vhost_worker_flush+0x204/0x274 drivers/vhost/vhost.c:288 [] vhost_worker_flush drivers/vhost/vhost.c:295 [inline] [] vhost_dev_flush+0xb4/0x114 drivers/vhost/vhost.c:305 [] vhost_net_flush+0x24/0x19e drivers/vhost/net.c:1359 [] vhost_net_release+0xac/0x256 drivers/vhost/net.c:1380 [] __fput+0x378/0x9ee fs/file_table.c:450 [] ____fput+0x1c/0x26 fs/file_table.c:478 [] task_work_run+0x16a/0x25e kernel/task_work.c:239 [] resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] [] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] [] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] [] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] [] syscall_exit_to_user_mode+0x302/0x316 kernel/entry/common.c:218 [] do_trap_ecall_u+0x86/0x216 arch/riscv/kernel/traps.c:345 [] _new_vmalloc_restore_context_a0+0xc2/0xce Showing all locks held in the system: 1 lock held by khungtaskd/36: #0: ffffffff881d0c40 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x68/0x2e6 kernel/locking/lockdep.c:6740 3 locks held by syslogd/2973: 2 locks held by getty/3127: #0: ff6000001d31f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340 #1: ff2000000008b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0xd7c/0x129a drivers/tty/n_tty.c:2211 1 lock held by sshd/3153: 2 locks held by kworker/u10:3/7307: 2 locks held by syz.2.1038/7775: 1 lock held by syz.0.1055/7822: 1 lock held by syz.2.1057/7845: #0: ff6000001e7e1c10 (&mm->mmap_lock){++++}-{4:4}, at: mmap_read_lock_killable include/linux/mmap_lock.h:153 [inline] #0: ff6000001e7e1c10 (&mm->mmap_lock){++++}-{4:4}, at: get_mmap_lock_carefully mm/memory.c:6158 [inline] #0: ff6000001e7e1c10 (&mm->mmap_lock){++++}-{4:4}, at: lock_mm_and_find_vma+0x174/0x674 mm/memory.c:6209 3 locks held by syz.2.1057/7846: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 36 Comm: khungtaskd Not tainted 6.13.0-rc2-syzkaller-g21f1b85c8912 #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:130 [] show_stack+0x30/0x3c arch/riscv/kernel/stacktrace.c:136 [] __dump_stack lib/dump_stack.c:94 [inline] [] dump_stack_lvl+0x12e/0x1a6 lib/dump_stack.c:120 [] dump_stack+0x1c/0x24 lib/dump_stack.c:129 [] nmi_cpu_backtrace+0x3b0/0x3b2 lib/nmi_backtrace.c:113 [] nmi_trigger_cpumask_backtrace+0x2b6/0x458 lib/nmi_backtrace.c:62 [] arch_trigger_cpumask_backtrace+0x2c/0x3e arch/riscv/kernel/smp.c:347 [] trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] [] check_hung_uninterruptible_tasks kernel/hung_task.c:234 [inline] [] watchdog+0xcee/0x1170 kernel/hung_task.c:397 [] kthread+0x28c/0x3a4 kernel/kthread.c:389 [] ret_from_fork+0xe/0x18 arch/riscv/kernel/entry.S:326 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 7109 Comm: syz-executor Not tainted 6.13.0-rc2-syzkaller-g21f1b85c8912 #0 Hardware name: riscv-virtio,qemu (DT) epc : __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] epc : _raw_spin_unlock_irqrestore+0x36/0xd4 kernel/locking/spinlock.c:194 ra : __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] ra : _raw_spin_unlock_irqrestore+0x86/0xd4 kernel/locking/spinlock.c:194 epc : ffffffff861e4106 ra : ffffffff861e4156 sp : ff2000000ccf7aa0 gp : ffffffff899f4f80 tp : ff6000001af69a40 t0 : 5262c402f029ff44 t1 : ffebffff03810bd4 t2 : 000000000000014c s0 : ff2000000ccf7ac0 s1 : 0000000000000002 a0 : 0000000000000001 a1 : ffffffff8663f920 a2 : 0000000000000002 a3 : 0000000000000001 a4 : 0000000000000001 a5 : 0000000000000000 a6 : 0000000000000003 a7 : ff6000001c085ea3 s2 : ff6000001c085ea0 s3 : ff2000000ccf7c00 s4 : ff6000001c085ee0 s5 : ff6000001c085ee0 s6 : ff2000000ccf7be8 s7 : ff6000001c085ea0 s8 : 0000000000000004 s9 : 0000000000003a98 s10: 00000000003464eb s11: 00000000000003e8 t3 : ff6000001af6a560 t4 : ffebffff03810bd4 t5 : ffebffff03810bd5 t6 : 0000000000000004 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_restore arch/riscv/include/asm/irqflags.h:51 [inline] [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] [] _raw_spin_unlock_irqrestore+0x36/0xd4 kernel/locking/spinlock.c:194 [] spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] [] add_wait_queue+0x150/0x1d8 kernel/sched/wait.c:24 [] do_wait+0x16c/0x690 kernel/exit.c:1687 [] kernel_wait4+0x17e/0x41a kernel/exit.c:1850 [] __do_sys_wait4+0x156/0x162 kernel/exit.c:1878 [] __se_sys_wait4 kernel/exit.c:1874 [inline] [] __riscv_sys_wait4+0x8a/0xd6 kernel/exit.c:1874 [] syscall_handler+0x94/0x118 arch/riscv/include/asm/syscall.h:90 [] do_trap_ecall_u+0x1aa/0x216 arch/riscv/kernel/traps.c:331 [] _new_vmalloc_restore_context_a0+0xc2/0xce