INFO: task syz.0.1503:9376 blocked for more than 430 seconds. Not tainted 6.12.0-rc1-syzkaller-00010-gc05ad457ce8c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.1503 state:D stack:0 pid:9376 tgid:9374 ppid:8217 flags:0x00000004 Call Trace: [] context_switch kernel/sched/core.c:5315 [inline] [] __schedule+0xd5a/0x3886 kernel/sched/core.c:6675 [] __schedule_loop kernel/sched/core.c:6752 [inline] [] schedule+0xc4/0x324 kernel/sched/core.c:6767 [] schedule_preempt_disabled+0x16/0x28 kernel/sched/core.c:6824 [] rwsem_down_write_slowpath+0x4e0/0xe4a kernel/locking/rwsem.c:1176 [] __down_write_common kernel/locking/rwsem.c:1304 [inline] [] __down_write kernel/locking/rwsem.c:1313 [inline] [] down_write+0x180/0x19c kernel/locking/rwsem.c:1578 [] filemap_invalidate_lock include/linux/fs.h:860 [inline] [] blkdev_fallocate+0x1ac/0x30a block/fops.c:808 [] vfs_fallocate+0x3f6/0x966 fs/open.c:333 [] ksys_fallocate fs/open.c:356 [inline] [] __do_sys_fallocate fs/open.c:364 [inline] [] __se_sys_fallocate fs/open.c:362 [inline] [] __riscv_sys_fallocate+0xc4/0x126 fs/open.c:362 [] 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 Showing all locks held in the system: 1 lock held by khungtaskd/38: #0: ffffffff87fcc100 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x68/0x2d6 kernel/locking/lockdep.c:6716 1 lock held by syslogd/2996: 2 locks held by getty/3163: #0: ff6000001881c0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340 #1: ff2000000008b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xd7c/0x129a drivers/tty/n_tty.c:2211 2 locks held by kworker/u9:1/8273: 1 lock held by syz.1.1475/9011: #0: ff600000154e14c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline] #0: ff600000154e14c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ac/0x30a block/fops.c:808 2 locks held by syz-executor/9029: 2 locks held by kworker/1:2/9289: 1 lock held by syz.0.1503/9376: #0: ff600000154e14c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline] #0: ff600000154e14c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ac/0x30a block/fops.c:808 2 locks held by syz-executor/9409: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 38 Comm: khungtaskd Not tainted 6.12.0-rc1-syzkaller-00010-gc05ad457ce8c #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:130 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:136 [] __dump_stack lib/dump_stack.c:94 [inline] [] dump_stack_lvl+0x122/0x196 lib/dump_stack.c:120 [] dump_stack+0x1c/0x24 lib/dump_stack.c:129 [] nmi_cpu_backtrace+0x39c/0x39e lib/nmi_backtrace.c:113 [] nmi_trigger_cpumask_backtrace+0x2b6/0x456 lib/nmi_backtrace.c:62 [] arch_trigger_cpumask_backtrace+0x2c/0x3c arch/riscv/kernel/smp.c:347 [] trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] [] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] [] watchdog+0xcfa/0x1178 kernel/hung_task.c:379 [] kthread+0x28c/0x3a6 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: 9289 Comm: kworker/1:2 Not tainted 6.12.0-rc1-syzkaller-00010-gc05ad457ce8c #0 Hardware name: riscv-virtio,qemu (DT) Workqueue: events_power_efficient gc_worker epc : raw_spin_rq_unlock_irq kernel/sched/sched.h:1518 [inline] epc : __schedule+0x26c4/0x3886 kernel/sched/core.c:6679 ra : raw_spin_rq_unlock_irq kernel/sched/sched.h:1517 [inline] ra : __schedule+0x26c0/0x3886 kernel/sched/core.c:6679 epc : ffffffff85fe53de ra : ffffffff85fe53da sp : ff20000001c27630 gp : ffffffff897bea80 tp : ff60000028709a40 t0 : ff6000002870a560 t1 : ffebffff0dd89da0 t2 : 0000000000000026 s0 : ff20000001c277f0 s1 : ff6000006ec4ed00 a0 : 0000000000000001 a1 : ffffffff8643e620 a2 : 0000000000000006 a3 : 0000000000000001 a4 : 0000000000000001 a5 : 000000000008828f a6 : ff6000002870a5a8 a7 : 1fec0000050e14b5 s2 : 0000000000000000 s3 : ff6000006ec4f908 s4 : 1fec00000dd89f21 s5 : ff20000001c27700 s6 : ff60000028709a40 s7 : ff60000028709a88 s8 : ff6000002870a1f0 s9 : 0000000000000004 s10: ffffffff87922200 s11: ff60000028709a40 t3 : 1fec0000050e14ab t4 : ffebffff0dd89da0 t5 : ffebffff0dd89da1 t6 : 1fec0000050e14ba status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_enable arch/riscv/include/asm/irqflags.h:21 [inline] [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1517 [inline] [] __schedule+0x26c4/0x3886 kernel/sched/core.c:6679 [] preempt_schedule_irq+0x7a/0x1aa kernel/sched/core.c:6997 [] raw_irqentry_exit_cond_resched kernel/entry/common.c:311 [inline] [] raw_irqentry_exit_cond_resched kernel/entry/common.c:303 [inline] [] irqentry_exit+0x138/0x17a kernel/entry/common.c:354 [] do_irq+0x34/0x48 arch/riscv/kernel/traps.c:390 [] _new_vmalloc_restore_context_a0+0xa0/0xce [] arch_local_irq_restore arch/riscv/include/asm/irqflags.h:51 [inline] [] queue_delayed_work_on+0xa6/0x142 kernel/workqueue.c:2556