INFO: task syz.1.1752:11531 blocked for more than 430 seconds. Not tainted 6.12.0-rc1-syzkaller-00002-gcfb10de18538 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.1752 state:D stack:0 pid:11531 tgid:11530 ppid:9654 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] [] blk_ioctl_zeroout block/ioctl.c:238 [inline] [] blkdev_common_ioctl+0xe5a/0x1dc4 block/ioctl.c:572 [] blkdev_ioctl+0x1a8/0x622 block/ioctl.c:687 [] vfs_ioctl fs/ioctl.c:51 [inline] [] __do_sys_ioctl fs/ioctl.c:907 [inline] [] __se_sys_ioctl fs/ioctl.c:893 [inline] [] __riscv_sys_ioctl+0x182/0x1e6 fs/ioctl.c:893 [] 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/36: #0: ffffffff87fcc100 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x68/0x2d6 kernel/locking/lockdep.c:6716 2 locks held by getty/3147: #0: ff6000001c7510a0 (&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 syz-executor/3180: 1 lock held by syz.1.34/3985: 1 lock held by syz.0.1355/10012: 2 locks held by kworker/u10:1/10645: #0: ff60000011071148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000001ba7c90 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 2 locks held by kworker/u9:0/11115: #0: ff60000011071148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000000577c90 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 3 locks held by kworker/1:0/11203: 1 lock held by syz.1.1752/11531: #0: ff60000015450948 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline] #0: ff60000015450948 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:238 [inline] #0: ff60000015450948 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0xe5a/0x1dc4 block/ioctl.c:572 2 locks held by kworker/0:3/11946: 1 lock held by syz.0.1782/11959: #0: ff60000015450948 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:870 [inline] #0: ff60000015450948 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0xe8/0x528 mm/readahead.c:226 1 lock held by syz.0.1782/11960: #0: ff60000015450948 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline] #0: ff60000015450948 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:238 [inline] #0: ff60000015450948 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0xe5a/0x1dc4 block/ioctl.c:572 2 locks held by syz.1.1787/11980: #0: ff6000001b4f33d0 (&vma->vm_lock->lock){++++}-{3:3}, at: vma_start_read include/linux/mm.h:704 [inline] #0: ff6000001b4f33d0 (&vma->vm_lock->lock){++++}-{3:3}, at: lock_vma_under_rcu+0x15a/0xa60 mm/memory.c:6228 #1: ff60000015450948 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:870 [inline] #1: ff60000015450948 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_fault+0x876/0x2b60 mm/filemap.c:3331 4 locks held by modprobe/12251: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 36 Comm: khungtaskd Not tainted 6.12.0-rc1-syzkaller-00002-gcfb10de18538 #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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 3180 Comm: syz-executor Not tainted 6.12.0-rc1-syzkaller-00002-gcfb10de18538 #0 Hardware name: riscv-virtio,qemu (DT) epc : __call_rcu_common.constprop.0+0x292/0x934 kernel/rcu/tree.c:3109 ra : __call_rcu_common.constprop.0+0x284/0x934 kernel/rcu/tree.c:3108 epc : ffffffff802e215a ra : ffffffff802e214c sp : ff200000076e7970 gp : ffffffff897bea80 tp : ff600000152b0000 t0 : ff600000152b0b20 t1 : ff600000152b0b48 t2 : 000000000000000e s0 : ff200000076e79f0 s1 : ff6000006ec2ebc0 a0 : 0000000000000000 a1 : 0000000000000000 a2 : 0000000000000000 a3 : ffffffff814a8fb2 a4 : 0000000000000001 a5 : 0000000000000000 a6 : 0000000000000003 a7 : 1fec000002a56168 s2 : ff6000002c088000 s3 : ff6000006ec2eca8 s4 : 1fec00000dd85d9b s5 : 0000000000000002 s6 : 1fec00000dd85d95 s7 : ff6000006ec2ec60 s8 : ff6000006ec2ecd8 s9 : 000000000000002f s10: ffffffff87fdc080 s11: ff6000001e6e09b8 t3 : 1fec000002a56163 t4 : 0000000000000002 t5 : 1faf28987dc95e17 t6 : 1fec000002a5616d status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_restore arch/riscv/include/asm/irqflags.h:51 [inline] [] __call_rcu_common.constprop.0+0x292/0x934 kernel/rcu/tree.c:3108 [] call_rcu+0xc/0x14 kernel/rcu/tree.c:3190 [] tlb_remove_table_free mm/mmu_gather.c:287 [inline] [] tlb_table_flush mm/mmu_gather.c:326 [inline] [] tlb_table_flush mm/mmu_gather.c:320 [inline] [] tlb_flush_mmu_free mm/mmu_gather.c:364 [inline] [] tlb_flush_mmu mm/mmu_gather.c:373 [inline] [] tlb_finish_mmu+0x112/0x7e6 mm/mmu_gather.c:465 [] exit_mmap+0x36c/0xbea mm/mmap.c:1877 [] __mmput kernel/fork.c:1347 [inline] [] mmput+0x122/0x3e2 kernel/fork.c:1369 [] exit_mm kernel/exit.c:571 [inline] [] do_exit+0x902/0x2986 kernel/exit.c:926 [] do_group_exit+0xd4/0x26c kernel/exit.c:1088 [] __do_sys_exit_group kernel/exit.c:1099 [inline] [] __se_sys_exit_group kernel/exit.c:1097 [inline] [] __riscv_sys_exit_group+0x4a/0x54 kernel/exit.c:1097 [] 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