INFO: task syz.1.71:6160 blocked for more than 143 seconds. Not tainted 6.15.0-rc4-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.71 state:D stack:13632 pid:6160 tgid:6124 ppid:3691 task_flags:0x400140 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x6a6/0x1540 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0xac/0x140 kernel/sched/core.c:6860 io_schedule+0x3f/0x60 kernel/sched/core.c:7742 folio_wait_bit_common+0x1fa/0x3a0 mm/filemap.c:1317 folio_lock include/linux/pagemap.h:1137 [inline] truncate_inode_pages_range+0x3ac/0x540 mm/truncate.c:429 bchfs_fpunch+0xad/0x200 fs/bcachefs/fs-io.c:567 bch2_fallocate_dispatch+0xeb/0x190 fs/bcachefs/fs-io.c:835 vfs_fallocate+0x19c/0x1c0 fs/open.c:338 ksys_fallocate fs/open.c:362 [inline] __do_sys_fallocate fs/open.c:367 [inline] __se_sys_fallocate fs/open.c:365 [inline] __x64_sys_fallocate+0x44/0x70 fs/open.c:365 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x8f/0x180 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb264f8e929 RSP: 002b:00007fb2641fe038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fb2651b6080 RCX: 00007fb264f8e929 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000005 RBP: 00007fb265010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000404042bbe R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb2651b6080 R15: 00007ffe21c59cc8 INFO: task syz.1.71:6162 blocked for more than 143 seconds. Not tainted 6.15.0-rc4-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.71 state:D stack:13736 pid:6162 tgid:6124 ppid:3691 task_flags:0x440040 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x6a6/0x1540 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0xac/0x140 kernel/sched/core.c:6860 __bch2_two_state_lock+0xa2/0x100 fs/bcachefs/two_state_shared_lock.c:7 bch2_two_state_lock fs/bcachefs/two_state_shared_lock.h:55 [inline] bch2_readahead+0x2d6/0x5a0 fs/bcachefs/fs-io-buffered.c:296 read_pages+0x94/0x190 mm/readahead.c:160 page_cache_ra_order+0x225/0x350 mm/readahead.c:515 filemap_get_pages+0x166/0x820 mm/filemap.c:2591 filemap_splice_read+0x1b2/0x3b0 mm/filemap.c:2981 do_splice_read fs/splice.c:979 [inline] splice_direct_to_actor+0xe8/0x2e0 fs/splice.c:1083 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x6f/0xb0 fs/splice.c:1227 do_sendfile+0x21b/0x320 fs/read_write.c:1368 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x8f/0x180 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb264f8e929 RSP: 002b:00007fb2641dd038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fb2651b6160 RCX: 00007fb264f8e929 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 00007fb265010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000e3aa6ea R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fb2651b6160 R15: 00007ffe21c59cc8 Showing all locks held in the system: 7 locks held by kworker/u8:0/12: 1 lock held by khungtaskd/31: #0: ffffffff84786770 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff84786770 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff84786770 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x2e/0x100 kernel/locking/lockdep.c:6764 3 locks held by kworker/u9:0/52: #0: ffff88813ba2cd18 (&rq->__lock){....}-{2:2}, at: raw_spin_rq_lock_nested+0x24/0x100 kernel/sched/core.c:605 #1: ffff88813ba17a48 (&per_cpu_ptr(group->pcpu, cpu)->seq){....}-{0:0}, at: psi_task_switch+0x226/0x280 kernel/sched/psi.c:987 #2: ffff88812e0ca670 (&j->lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #2: ffff88812e0ca670 (&j->lock){....}-{2:2}, at: journal_write_done+0x131/0x4e0 fs/bcachefs/journal_io.c:1659 6 locks held by kworker/u8:3/175: #0: ffff8881154b1548 ((wq_completion)btree_update#9){....}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff8881154b1548 ((wq_completion)btree_update#9){....}-{0:0}, at: process_scheduled_works+0x27f/0x5e0 kernel/workqueue.c:3319 #1: ffffc9000202be48 ((work_completion)(&c->btree_interior_update_work)){....}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000202be48 ((work_completion)(&c->btree_interior_update_work)){....}-{0:0}, at: process_scheduled_works+0x29f/0x5e0 kernel/workqueue.c:3319 #2: ffff888135904230 (&c->btree_trans_barrier){....}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #2: ffff888135904230 (&c->btree_trans_barrier){....}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #2: ffff888135904230 (&c->btree_trans_barrier){....}-{0:0}, at: __bch2_trans_get+0x270/0x3e0 fs/bcachefs/btree_iter.c:3430 #3: ffff88813a0e0140 (bcachefs_btree){....}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff88813a0e0140 (bcachefs_btree){....}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff88813a0e0140 (bcachefs_btree){....}-{0:0}, at: __bch2_trans_get+0x270/0x3e0 fs/bcachefs/btree_iter.c:3430 #4: ffff88813594af08 (journal res){....}-{0:0}, at: bch2_journal_res_get+0x26e/0x2e0 fs/bcachefs/journal.h:406 #5: ffff888135904870 (&c->mark_lock){....}-{0:0}, at: bch2_accounting_mem_insert+0x17e/0x260 fs/bcachefs/disk_accounting.c:372 2 locks held by getty/2341: #0: ffff888105f530a0 (&tty->ldisc_sem){....}-{0:0}, at: tty_ldisc_ref_wait+0x20/0x40 drivers/tty/tty_ldisc.c:243 #1: ffffc90004ab32f0 (&ldata->atomic_read_lock){....}-{3:3}, at: n_tty_read+0x1c9/0x6f0 drivers/tty/n_tty.c:2222 2 locks held by syz-executor/3685: #0: ffff88811b46f0e0 (&type->s_umount_key#51){....}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff88811b46f0e0 (&type->s_umount_key#51){....}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88811b46f0e0 (&type->s_umount_key#51){....}-{3:3}, at: deactivate_super+0x33/0x40 fs/super.c:505 #1: ffff888135e00278 (&c->state_lock){....}-{3:3}, at: __bch2_fs_stop+0x55/0x250 fs/bcachefs/super.c:659 2 locks held by syz.1.71/6160: #0: ffff888123a39408 (sb_writers#12){....}-{0:0}, at: vfs_fallocate+0x183/0x1c0 fs/open.c:337 #1: ffff88811637b988 ( &sb->s_type->i_mutex_key#18){....}-{3:3}, at: inode_lock include/linux/fs.h:867 [inline] &sb->s_type->i_mutex_key#18){....}-{3:3}, at: bch2_fallocate_dispatch+0x75/0x190 fs/bcachefs/fs-io.c:824 1 lock held by syz.1.71/6162: #0: ffff88811637bb28 (mapping.invalidate_lock#3){....}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:922 [inline] #0: ffff88811637bb28 (mapping.invalidate_lock#3){....}-{3:3}, at: page_cache_ra_order+0xfd/0x350 mm/readahead.c:491 2 locks held by syz-executor/6740: #0: ffff888139f160e0 (&type->s_umount_key#51){....}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff888139f160e0 (&type->s_umount_key#51){....}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff888139f160e0 (&type->s_umount_key#51){....}-{3:3}, at: deactivate_super+0x33/0x40 fs/super.c:505 #1: ffff888135900278 (&c->state_lock){....}-{3:3}, at: __bch2_fs_stop+0x55/0x250 fs/bcachefs/super.c:659 3 locks held by syz.6.600/12871: #0: ffff888130700940 (&c->sb_lock){....}-{3:3}, at: bch2_fs_alloc+0x75a/0xce0 fs/bcachefs/super.c:897 #1: ffff888130704870 (&c->mark_lock){....}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0xbb/0x140 fs/bcachefs/replicas.c:600 #2: ffffffff84787738 (rcu_state.exp_mutex){....}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline] #2: ffffffff84787738 (rcu_state.exp_mutex){....}-{3:3}, at: synchronize_rcu_expedited+0x2dd/0x620 kernel/rcu/tree_exp.h:998 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc4-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0xa2/0xf0 lib/dump_stack.c:120 nmi_cpu_backtrace+0x109/0x170 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x8e/0x140 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline] watchdog+0x604/0x630 kernel/hung_task.c:437 kthread+0x200/0x230 kernel/kthread.c:464 ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 3695 Comm: syz-executor Not tainted 6.15.0-rc4-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:io_serial_out+0x15/0x20 drivers/tty/serial/8250/8250_port.c:416 Code: cc 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f b6 8f f9 00 00 00 d3 e6 03 77 40 89 d0 89 f2 ee cc cc cc cc cc 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90003523b60 EFLAGS: 00000002 RAX: 0000000000000020 RBX: ffffffff89a6fff0 RCX: 0000000000000000 RDX: 00000000000003f8 RSI: 00000000000003f8 RDI: ffffffff89a6fff0 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000060 R10: 0000000000000006 R11: ffffffff82249e80 R12: 0000000000000001 R13: ffffffff89878c8a R14: 0000000000000010 R15: ffffffff89878c1c FS: 0000555560962500(0000) GS:ffff8881b612e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555f2055c8 CR3: 0000000107388000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: serial_port_out include/linux/serial_core.h:796 [inline] serial8250_console_putchar drivers/tty/serial/8250/8250_port.c:3306 [inline] serial8250_console_fifo_write drivers/tty/serial/8250/8250_port.c:-1 [inline] serial8250_console_write+0x627/0x700 drivers/tty/serial/8250/8250_port.c:3456 console_emit_next_record kernel/printk/printk.c:3138 [inline] console_flush_all+0x2ea/0x460 kernel/printk/printk.c:3226 __console_flush_and_unlock kernel/printk/printk.c:3285 [inline] console_unlock+0x65/0x100 kernel/printk/printk.c:3325 vprintk_emit+0x24e/0x400 kernel/printk/printk.c:2450 bch2_print_maybe_redirect fs/bcachefs/super.c:123 [inline] __bch2_print+0xac/0xf0 fs/bcachefs/super.c:142 bch2_fs_read_only+0x85/0x500 fs/bcachefs/super.c:333 __bch2_fs_stop+0x5d/0x250 fs/bcachefs/super.c:660 generic_shutdown_super+0x74/0x110 fs/super.c:642 bch2_kill_sb+0x11/0x20 fs/bcachefs/fs.c:2605 deactivate_locked_super+0x33/0x150 fs/super.c:473 cleanup_mnt+0x7c/0x130 fs/namespace.c:1435 task_work_run+0x84/0xb0 kernel/task_work.c:227 resume_user_mode_work+0x52/0x60 include/linux/resume_user_mode.h:50 exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x77/0xc0 kernel/entry/common.c:218 do_syscall_64+0x9c/0x180 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbded8fc57 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fff69ea85d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fcbdee10925 RCX: 00007fcbded8fc57 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff69ea8690 RBP: 00007fff69ea8690 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff69ea9720 R13: 00007fcbdee10925 R14: 000000000003df22 R15: 00007fff69ea9760