INFO: task syz.1.170:5563 blocked for more than 432 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.1.170 state:D stack:0 pid:5563 tgid:5559 ppid:3191 flags:0x00000006 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 [] io_schedule+0x78/0xd4 kernel/sched/core.c:7552 [] folio_wait_bit_common+0x398/0x944 mm/filemap.c:1309 [] __folio_lock mm/filemap.c:1647 [inline] [] folio_lock include/linux/pagemap.h:1148 [inline] [] folio_lock include/linux/pagemap.h:1144 [inline] [] __filemap_get_folio+0x470/0x866 mm/filemap.c:1900 [] truncate_inode_pages_range+0x344/0xd78 mm/truncate.c:351 [] truncate_inode_pages+0x22/0x2e mm/truncate.c:423 [] kill_bdev block/bdev.c:91 [inline] [] blkdev_flush_mapping+0xf8/0x28a block/bdev.c:671 [] blkdev_put_whole+0xce/0xee block/bdev.c:678 [] bdev_release+0x3fe/0x600 block/bdev.c:1103 [] blkdev_release+0x1a/0x26 block/fops.c:639 [] __fput+0x378/0x9e6 fs/file_table.c:431 [] ____fput+0x1c/0x26 fs/file_table.c:459 [] task_work_run+0x16a/0x25e kernel/task_work.c:228 [] get_signal+0x1aa/0x23b0 kernel/signal.c:2690 [] arch_do_signal_or_restart+0x8d6/0x1190 arch/riscv/kernel/signal.c:437 [] exit_to_user_mode_loop kernel/entry/common.c:111 [inline] [] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] [] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] [] syscall_exit_to_user_mode+0x2a6/0x31e 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: ffffffff87fcc100 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x68/0x2d6 kernel/locking/lockdep.c:6716 1 lock held by klogd/2998: 2 locks held by dhcpcd/3042: #0: ff6000002e46c6c8 (nlk_cb_mutex-ROUTE){+.+.}-{3:3}, at: __netlink_dump_start+0x140/0x83e net/netlink/af_netlink.c:2404 #1: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #1: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_dumpit+0x1a2/0x1f6 net/core/rtnetlink.c:6505 2 locks held by getty/3149: #0: ff600000186240a0 (&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/3174: 4 locks held by kworker/u8:2/3546: 2 locks held by kworker/1:5/3901: 4 locks held by kworker/u10:15/4206: #0: ff6000006ec4ed18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:593 [inline] #0: ff6000006ec4ed18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1505 [inline] #0: ff6000006ec4ed18 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1804 [inline] #0: ff6000006ec4ed18 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x280/0x3886 kernel/sched/core.c:6575 #1: ff6000006ec3a648 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x23e/0x732 kernel/sched/psi.c:989 #2: ffffffff90a708f0 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x16a/0x378 lib/debugobjects.c:708 #3: ffffffff90a68aa8 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x16a/0x378 lib/debugobjects.c:708 1 lock held by syz.1.170/5563: #0: ff6000001a2504c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_release+0x12c/0x600 block/bdev.c:1087 3 locks held by kworker/u10:0/5632: #0: ff60000011071148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000001837c90 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 #2: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x22/0x2a net/core/rtnetlink.c:79 3 locks held by kworker/u8:3/6433: #0: ff6000001c7ab948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000003577c90 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 #2: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x22/0x2a net/core/rtnetlink.c:79 4 locks held by syz-executor/6536: 1 lock held by syz-executor/6549: #0: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e2/0xdbe net/core/rtnetlink.c:6643 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 36 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: 6510 Comm: kworker/1:2 Not tainted 6.12.0-rc1-syzkaller-00010-gc05ad457ce8c #0 Hardware name: riscv-virtio,qemu (DT) Workqueue: events nsim_dev_trap_report_work epc : __sbi_ecall+0x4c/0x76 arch/riscv/kernel/sbi_ecall.c:41 ra : __sbi_ecall+0x38/0x76 arch/riscv/kernel/sbi_ecall.c:27 epc : ffffffff8001fb16 ra : ffffffff8001fb02 sp : ff20000003bf7260 gp : ffffffff897bea80 tp : ff600000111c4ec0 t0 : ff20000003bf77a0 t1 : ffebffff0dd8a6fa t2 : 000000000000052e s0 : ff20000003bf72c0 s1 : 0000000000735049 a0 : 0000000000000000 a1 : 0000000000000000 a2 : 0000000000000000 a3 : 0000000000000000 a4 : 0000000000000000 a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000735049 s2 : 0000000000000000 s3 : 0000000000000000 s4 : 0000000000000000 s5 : 0000000000000000 s6 : 0000000000000000 s7 : 0000000000000000 s8 : 0000000000000001 s9 : ffffffff898bcf00 s10: 0000000000000000 s11: 0000000000000001 t3 : 1fec000002238b3b t4 : ffebffff0dd8a6fa t5 : ffebffff0dd8a6fb t6 : 1fec000002238b4f status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] __sbi_ecall+0x4c/0x76 arch/riscv/kernel/sbi_ecall.c:37 [] __sbi_send_ipi_v02+0xbc/0x20e arch/riscv/kernel/sbi.c:195 [] sbi_send_ipi+0x20/0x2a arch/riscv/kernel/sbi.c:319 [] ipi_mux_send_mask+0x2d0/0x358 kernel/irq/ipi-mux.c:87 [] __ipi_send_mask+0x7a/0x5bc kernel/irq/ipi.c:285 [] send_ipi_single arch/riscv/kernel/smp.c:108 [inline] [] arch_irq_work_raise+0x52/0x78 arch/riscv/kernel/smp.c:114 [] irq_work_raise kernel/irq_work.c:84 [inline] [] __irq_work_queue_local+0x104/0x474 kernel/irq_work.c:112 [] irq_work_queue kernel/irq_work.c:124 [inline] [] irq_work_queue+0x50/0xfe kernel/irq_work.c:116 [] __kfence_alloc+0x1202/0x1660 mm/kfence/core.c:1112 [] kfence_alloc include/linux/kfence.h:129 [inline] [] slab_alloc_node mm/slub.c:4119 [inline] [] kmem_cache_alloc_node_noprof+0x1d6/0x34e mm/slub.c:4187 [] __alloc_skb+0x32c/0x42a net/core/skbuff.c:668 [] alloc_skb include/linux/skbuff.h:1322 [inline] [] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:748 [inline] [] nsim_dev_trap_report drivers/net/netdevsim/dev.c:805 [inline] [] nsim_dev_trap_report_work+0x24a/0xbfa drivers/net/netdevsim/dev.c:850 [] process_one_work+0x956/0x1dae kernel/workqueue.c:3229 [] process_scheduled_works kernel/workqueue.c:3310 [inline] [] worker_thread+0x5be/0xdc6 kernel/workqueue.c:3391 [] kthread+0x28c/0x3a6 kernel/kthread.c:389 [] ret_from_fork+0xe/0x18 arch/riscv/kernel/entry.S:326