INFO: task syz.1.121:4369 blocked for more than 431 seconds. Not tainted 6.16.0-rc1-syzkaller-g306e57988197 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.121 state:D stack:0 pid:4369 tgid:4368 ppid:3171 task_flags:0x400140 flags:0x0000000c Call Trace: [] context_switch kernel/sched/core.c:5396 [inline] [] __schedule+0x1022/0x4094 kernel/sched/core.c:6785 [] __schedule_loop kernel/sched/core.c:6863 [inline] [] schedule+0xc4/0x35e kernel/sched/core.c:6878 [] schedule_preempt_disabled+0x16/0x28 kernel/sched/core.c:6935 [] __mutex_lock_common kernel/locking/mutex.c:679 [inline] [] __mutex_lock+0x9be/0x1292 kernel/locking/mutex.c:747 [] mutex_lock_nested+0x14/0x1c kernel/locking/mutex.c:799 [] bdev_release+0x12c/0x600 block/bdev.c:1128 [] blkdev_release+0x1a/0x26 block/fops.c:684 [] __fput+0x382/0xa8c fs/file_table.c:465 [] ____fput+0x1c/0x26 fs/file_table.c:493 [] task_work_run+0x16a/0x25e kernel/task_work.c:227 [] get_signal+0xd82/0x22fc kernel/signal.c:2807 [] arch_do_signal_or_restart+0x5d8/0x24c6 arch/riscv/kernel/signal.c:431 [] exit_to_user_mode_loop+0x90/0x134 kernel/entry/common.c:111 [] exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] [] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] [] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] [] do_trap_ecall_u+0x3f0/0x530 arch/riscv/kernel/traps.c:355 [] handle_exception+0x146/0x152 arch/riscv/kernel/entry.S:197 INFO: task syz.1.121:4372 blocked for more than 431 seconds. Not tainted 6.16.0-rc1-syzkaller-g306e57988197 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.121 state:D stack:0 pid:4372 tgid:4368 ppid:3171 task_flags:0x400040 flags:0x0000000c Call Trace: [] context_switch kernel/sched/core.c:5396 [inline] [] __schedule+0x1022/0x4094 kernel/sched/core.c:6785 [] __schedule_loop kernel/sched/core.c:6863 [inline] [] schedule+0xc4/0x35e kernel/sched/core.c:6878 [] io_schedule+0x78/0xd4 kernel/sched/core.c:7723 [] folio_wait_bit_common+0x3a4/0x968 mm/filemap.c:1317 [] folio_put_wait_locked mm/filemap.c:1481 [inline] [] do_read_cache_folio+0x304/0x530 mm/filemap.c:3876 [] read_cache_folio+0x4e/0x68 mm/filemap.c:3926 [] read_mapping_folio include/linux/pagemap.h:972 [inline] [] read_part_sector+0xc0/0x450 block/partitions/core.c:722 [] msdos_partition+0x132/0x2590 block/partitions/msdos.c:592 [] check_partition block/partitions/core.c:141 [inline] [] blk_add_partitions block/partitions/core.c:589 [inline] [] bdev_disk_changed+0x5de/0x139c block/partitions/core.c:693 [] blkdev_get_whole+0x174/0x266 block/bdev.c:748 [] bdev_open+0x292/0xce6 block/bdev.c:957 [] blkdev_open+0x264/0x39a block/fops.c:676 [] do_dentry_open+0x97e/0x171e fs/open.c:964 [] vfs_open+0xbe/0x380 fs/open.c:1094 [] do_open fs/namei.c:3887 [inline] [] path_openat+0x1bd8/0x2a82 fs/namei.c:4046 [] do_filp_open+0x19c/0x380 fs/namei.c:4073 [] do_sys_openat2+0x11a/0x1c2 fs/open.c:1437 [] do_sys_open fs/open.c:1452 [inline] [] __do_sys_openat fs/open.c:1468 [inline] [] __se_sys_openat fs/open.c:1463 [inline] [] __riscv_sys_openat+0x178/0x1fe fs/open.c:1463 [] syscall_handler+0x94/0x118 arch/riscv/include/asm/syscall.h:112 [] do_trap_ecall_u+0x396/0x530 arch/riscv/kernel/traps.c:341 [] handle_exception+0x146/0x152 arch/riscv/kernel/entry.S:197 Showing all locks held in the system: 1 lock held by khungtaskd/37: #0: ffffffff883dc420 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2a/0x1a0 kernel/locking/lockdep.c:6766 1 lock held by klogd/2989: 2 locks held by getty/3135: #0: ffffaf80123ae0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340 #1: ffff8f800008b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x3e4/0x12b6 drivers/tty/n_tty.c:2222 1 lock held by syz-executor/3166: 4 locks held by kworker/u10:4/3894: 1 lock held by syz.1.121/4369: #0: ffffaf801a100358 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_release+0x12c/0x600 block/bdev.c:1128 1 lock held by syz.1.121/4372: #0: ffffaf801a100358 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_open+0x3d0/0xce6 block/bdev.c:945 2 locks held by kworker/1:6/4918: 2 locks held by syz.0.195/4998: 2 locks held by syz.2.196/5000: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 37 Comm: khungtaskd Not tainted 6.16.0-rc1-syzkaller-g306e57988197 #0 PREEMPT Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:132 [] show_stack+0x30/0x3c arch/riscv/kernel/stacktrace.c:138 [] __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/0x3c arch/riscv/kernel/smp.c:350 [] trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline] [] check_hung_uninterruptible_tasks kernel/hung_task.c:307 [inline] [] watchdog+0xcf2/0x11de kernel/hung_task.c:470 [] kthread+0x39c/0x7d4 kernel/kthread.c:464 [] ret_from_fork_kernel+0x2a/0xbb2 arch/riscv/kernel/process.c:214 [] ret_from_fork_kernel_asm+0x16/0x18 arch/riscv/kernel/entry.S:327 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 4998 Comm: syz.0.195 Not tainted 6.16.0-rc1-syzkaller-g306e57988197 #0 PREEMPT Hardware name: riscv-virtio,qemu (DT) epc : kstat_incr_softirqs_this_cpu include/linux/kernel_stat.h:62 [inline] epc : handle_softirqs+0x32e/0x132e kernel/softirq.c:576 ra : handle_softirqs+0x32a/0x132e kernel/softirq.c:563 epc : ffffffff8015e62a ra : ffffffff8015e626 sp : ffff8f8000017e20 gp : ffffffff89c7e9c0 tp : ffffaf80301f0000 t0 : ffffaf806ed4b260 t1 : 0000000000000001 t2 : 1ffff1f000a1addc s0 : ffff8f8000017f70 s1 : dfffffff00000000 a0 : 0000000000000001 a1 : ffffffff87d6da40 a2 : 0000000000000002 a3 : 0000000000000101 a4 : 0000000000000001 a5 : 000000000000015e a6 : 0000000000f00000 a7 : ffffffffdfffffff s2 : 000000000000000a s3 : 0000000000000080 s4 : ffffffff910373c0 s5 : 000000000000000a s6 : 000000010001eac2 s7 : ffffffff86672fc0 s8 : ffffaf806ed5bfc0 s9 : 000000000040044c s10: 1ffff1f000002fd8 s11: fffffffef1042838 t3 : 2fbca24600000000 t4 : 0000000000000000 t5 : 0000000000000000 t6 : 0000000000000002 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_enable arch/riscv/include/asm/irqflags.h:21 [inline] [] handle_softirqs+0x32e/0x132e kernel/softirq.c:563 [] __do_softirq kernel/softirq.c:613 [inline] [] invoke_softirq kernel/softirq.c:453 [inline] [] __irq_exit_rcu+0x18c/0x550 kernel/softirq.c:680 [] irq_exit_rcu+0x10/0xf8 kernel/softirq.c:696 [] handle_riscv_irq+0x40/0x4c arch/riscv/kernel/traps.c:388 [] call_on_irq_stack+0x32/0x40 arch/riscv/kernel/entry.S:360