INFO: task syz.1.1218:13770 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.1.1218 state:D stack:0 pid:13770 tgid:13766 ppid:12686 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/37: #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/3149: #0: ff6000001828c0a0 (&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 sshd/3174: 1 lock held by syz.0.1046/11829: 2 locks held by kworker/1:6/13554: 1 lock held by syz-executor/13754: 1 lock held by syz.1.1218/13770: #0: ff60000019d244c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_release+0x12c/0x600 block/bdev.c:1087 2 locks held by kworker/u10:5/13812: #0: ff60000011071148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000006557c90 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 3 locks held by kworker/0:5/14759: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 37 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: 24 Comm: ksoftirqd/1 Not tainted 6.12.0-rc1-syzkaller-00010-gc05ad457ce8c #0 Hardware name: riscv-virtio,qemu (DT) epc : debug_check_no_obj_freed+0x0/0x4fc lib/debugobjects.c:1017 ra : slab_free_hook mm/slub.c:2274 [inline] ra : slab_free mm/slub.c:4580 [inline] ra : kmem_cache_free+0x3f8/0x5f4 mm/slub.c:4682 epc : ffffffff814ad400 ra : ffffffff808da3ba sp : ff200000001a6ab0 gp : ffffffff897bea80 tp : ff60000012aa0000 t0 : ff60000012aa0b20 t1 : ffebffff0649dc9c t2 : 000000000000003c s0 : ff200000001a6b40 s1 : ff60000012efaa00 a0 : ff600000324ee3c0 a1 : 0000000000000240 a2 : 0000000000f00000 a3 : ff6000001d77c1c0 a4 : 1fec000002554163 a5 : 0000000000000000 a6 : 0000000000f00000 a7 : ff600000324ee4e3 s2 : ff1c000000c93b00 s3 : ff600000324ee3c0 s4 : ffffffff84c97202 s5 : 0000000000012110 s6 : 0000000000000000 s7 : ffffffff898ba6c0 s8 : ff6000003ab5af7e s9 : 0000000000000002 s10: ff6000003ab5afd0 s11: 0000000000000000 t3 : 1fec000002554163 t4 : ffebffff0649dc9c t5 : ffebffff0649dc9d t6 : 1fec000002554177 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] debug_check_no_obj_freed+0x0/0x4fc lib/debugobjects.c:906 [] skb_kfree_head net/core/skbuff.c:1084 [inline] [] skb_kfree_head net/core/skbuff.c:1081 [inline] [] skb_free_head+0x27e/0x2ec net/core/skbuff.c:1098 [] skb_release_data+0x6ec/0x86a net/core/skbuff.c:1125 [] skb_release_all net/core/skbuff.c:1190 [inline] [] __kfree_skb+0x46/0x68 net/core/skbuff.c:1204 [] tcp_wmem_free_skb include/net/tcp.h:306 [inline] [] tcp_rtx_queue_unlink_and_free include/net/tcp.h:2091 [inline] [] tcp_clean_rtx_queue net/ipv4/tcp_input.c:3409 [inline] [] tcp_ack+0x1ed0/0x5c38 net/ipv4/tcp_input.c:4005 [] tcp_rcv_state_process+0xfd6/0x53ee net/ipv4/tcp_input.c:6771 [] tcp_v4_do_rcv+0x19c/0xbaa net/ipv4/tcp_ipv4.c:1938 [] tcp_v4_rcv+0x3408/0x462e net/ipv4/tcp_ipv4.c:2350 [] ip_protocol_deliver_rcu+0xa2/0x64a net/ipv4/ip_input.c:205 [] ip_local_deliver_finish+0x2ec/0x57c net/ipv4/ip_input.c:233 [] NF_HOOK include/linux/netfilter.h:314 [inline] [] NF_HOOK include/linux/netfilter.h:308 [inline] [] ip_local_deliver+0x1b2/0x568 net/ipv4/ip_input.c:254 [] dst_input include/net/dst.h:460 [inline] [] ip_rcv_finish+0x1b0/0x2d2 net/ipv4/ip_input.c:449 [] NF_HOOK include/linux/netfilter.h:314 [inline] [] NF_HOOK include/linux/netfilter.h:308 [inline] [] ip_rcv+0xd6/0x44e net/ipv4/ip_input.c:569 [] __netif_receive_skb_one_core+0x106/0x16e net/core/dev.c:5662 [] __netif_receive_skb+0x2c/0x144 net/core/dev.c:5775 [] process_backlog+0x4fc/0x1cbc net/core/dev.c:6107 [] __napi_poll.constprop.0+0xaa/0x4b8 net/core/dev.c:6771 [] napi_poll net/core/dev.c:6840 [inline] [] net_rx_action+0xa12/0xf10 net/core/dev.c:6962 [] handle_softirqs+0x4a6/0x10de kernel/softirq.c:554 [] run_ksoftirqd kernel/softirq.c:927 [inline] [] run_ksoftirqd+0xce/0x144 kernel/softirq.c:919 [] smpboot_thread_fn+0x654/0xb98 kernel/smpboot.c:164 [] kthread+0x28c/0x3a6 kernel/kthread.c:389 [] ret_from_fork+0xe/0x18 arch/riscv/kernel/entry.S:326