INFO: task syz.0.153:7214 blocked for more than 143 seconds. Not tainted 6.15.0-rc6-syzkaller-00346-g5723cc3450bc #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.153 state:D stack:27480 pid:7214 tgid:7192 ppid:5824 task_flags:0x400040 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x168f/0x4c70 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x165/0x360 kernel/sched/core.c:6860 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6917 rwsem_down_write_slowpath+0xbec/0x1030 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1ab/0x1f0 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:867 [inline] __blockdev_direct_IO+0x318/0x3310 fs/direct-io.c:1140 blockdev_direct_IO include/linux/fs.h:3422 [inline] jfs_direct_IO+0x119/0x220 fs/jfs/inode.c:331 generic_file_read_iter+0x31c/0x510 mm/filemap.c:2871 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x4d0/0x980 fs/read_write.c:570 ksys_read+0x145/0x250 fs/read_write.c:713 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb71a18e969 RSP: 002b:00007fb71af4e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fb71a3b6080 RCX: 00007fb71a18e969 RDX: 0000000000001000 RSI: 0000200000001400 RDI: 0000000000000004 RBP: 00007fb71a210ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fb71a3b6080 R15: 00007fff1ae1e838 Showing all locks held in the system: 4 locks held by kworker/1:0H/25: #0: ffff8880b89399d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:605 #1: ffff8880b8923b08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x39e/0x6d0 kernel/sched/psi.c:987 #2: ffff8880667cba18 (&stats->lock){..-.}-{3:3}, at: __bch2_time_stats_update+0x55/0x390 fs/bcachefs/time_stats.c:130 #3: ffff88807cac4140 (bcachefs_btree){+.+.}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff88807cac4140 (bcachefs_btree){+.+.}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff88807cac4140 (bcachefs_btree){+.+.}-{0:0}, at: __bch2_trans_get+0x806/0xda0 fs/bcachefs/btree_iter.c:3391 1 lock held by khungtaskd/31: #0: ffffffff8df3dee0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8df3dee0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8df3dee0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6764 4 locks held by kworker/u8:2/36: #0: ffff8881412b2148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff8881412b2148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9b1/0x17a0 kernel/workqueue.c:3319 #1: ffffc90000ad7c60 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90000ad7c60 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ec/0x17a0 kernel/workqueue.c:3319 #2: ffff88804ede00e0 (&type->s_umount_key#74){++++}-{4:4}, at: super_trylock_shared+0x20/0xf0 fs/super.c:562 #3: ffff88805b464250 (&jfs_ip->commit_mutex){+.+.}-{4:4}, at: jfs_commit_inode+0x1ca/0x530 fs/jfs/inode.c:102 7 locks held by kworker/u8:4/62: #0: ffff88805555a948 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88805555a948 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_scheduled_works+0x9b1/0x17a0 kernel/workqueue.c:3319 #1: ffffc90001547c60 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90001547c60 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ec/0x17a0 kernel/workqueue.c:3319 #2: ffff888024e04140 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked fs/bcachefs/btree_locking.h:198 [inline] #2: ffff888024e04140 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0xa60/0x1f10 fs/bcachefs/btree_iter.c:3288 #3: ffff888066784228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff888066784228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff888066784228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220 fs/bcachefs/btree_iter.c:3208 #4: ffff8880667caf08 (journal res){.+.+}-{0:0}, at: bch2_journal_res_get+0x6a9/0x8f0 fs/bcachefs/journal.h:406 #5: ffff888066784860 (&c->mark_lock){++++}-{0:0}, at: bch2_accounting_mem_insert+0x425/0xaa0 fs/bcachefs/disk_accounting.c:372 #6: ffffffff8df439b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #6: ffffffff8df439b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b7/0x730 kernel/rcu/tree_exp.h:998 2 locks held by getty/5580: #0: ffff888030c6f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002ffe2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222 5 locks held by syz.0.153/7193: 2 locks held by syz.0.153/7214: #0: ffff8880227f3978 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x247/0x320 fs/file.c:1213 #1: ffff88805b464f38 (&sb->s_type->i_mutex_key#37){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff88805b464f38 (&sb->s_type->i_mutex_key#37){+.+.}-{4:4}, at: __blockdev_direct_IO+0x318/0x3310 fs/direct-io.c:1140 2 locks held by syz.4.170/7343: #0: ffff88804ede00e0 (&type->s_umount_key#74){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff88804ede00e0 (&type->s_umount_key#74){++++}-{4:4}, at: super_lock+0x2a9/0x3b0 fs/super.c:120 #1: ffff888024c7e7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline] #1: ffff888024c7e7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x19f/0xa10 fs/fs-writeback.c:2831 2 locks held by syz-executor/8070: #0: ffff88805c7600e0 (&type->s_umount_key#57){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff88805c7600e0 (&type->s_umount_key#57){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88805c7600e0 (&type->s_umount_key#57){++++}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:505 #1: ffffffff8df43880 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x570 kernel/rcu/tree.c:3774 2 locks held by syz-executor/8476: #0: ffff8880528b00e0 (&type->s_umount_key#80){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff8880528b00e0 (&type->s_umount_key#80){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff8880528b00e0 (&type->s_umount_key#80){++++}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:505 #1: ffff888066780278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfe/0x5a0 fs/bcachefs/super.c:627 1 lock held by syz-executor/8716: #0: ffffffff8df439b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline] #0: ffffffff8df439b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f4/0x730 kernel/rcu/tree_exp.h:998 6 locks held by bch-reclaim/loo/9015: #0: ffff8880667cad28 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16b/0x4f0 fs/bcachefs/journal_reclaim.c:772 #1: ffff888066784228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #1: ffff888066784228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #1: ffff888066784228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x806/0xda0 fs/bcachefs/btree_iter.c:3391 #2: ffff8880667845d0 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1829/0x19a0 fs/bcachefs/btree_write_buffer.c:569 #3: ffff888056430140 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked fs/bcachefs/btree_locking.h:198 [inline] #3: ffff888056430140 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0xa60/0x1f10 fs/bcachefs/btree_iter.c:3288 #4: ffff8880667a6590 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x68f/0x14c0 fs/bcachefs/btree_update_interior.c:1179 #5: ffff88806679dab8 (&wp->lock){+.+.}-{4:4}, at: bch2_trans_mutex_lock_norelock fs/bcachefs/alloc_foreground.c:41 [inline] #5: ffff88806679dab8 (&wp->lock){+.+.}-{4:4}, at: writepoint_find fs/bcachefs/alloc_foreground.c:1242 [inline] #5: ffff88806679dab8 (&wp->lock){+.+.}-{4:4}, at: bch2_alloc_sectors_start_trans+0x29f/0x1f90 fs/bcachefs/alloc_foreground.c:1348 4 locks held by dhcpcd-run-hook/9054: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc6-syzkaller-00346-g5723cc3450bc #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x17a/0x300 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+0xfee/0x1030 kernel/hung_task.c:437 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 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: 13 Comm: kworker/u8:1 Not tainted 6.15.0-rc6-syzkaller-00346-g5723cc3450bc #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: btree_update btree_interior_update_work RIP: 0010:__sanitizer_cov_trace_const_cmp1+0x83/0x90 kernel/kcov.c:302 Code: 8d 52 28 4d 39 ca 77 22 89 ff 89 f6 49 ff c0 4c 89 01 48 c7 44 11 08 01 00 00 00 48 89 7c 11 10 48 89 74 11 18 48 89 44 11 20 cc cc cc cc cc 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc900001268b8 EFLAGS: 00000093 RAX: ffffffff8b4bccc6 RBX: 000000000000003c RCX: 0000000000000000 RDX: ffff88801b680000 RSI: 0000000000000065 RDI: 0000000000000000 RBP: ffffc90000126b3e R08: ffff88801b680000 R09: 0000000000000008 R10: 0000000000000007 R11: 0000000000000000 R12: ffff888047807700 R13: 000000000000003c R14: ffffc90000126b02 R15: 0000000000000065 FS: 0000000000000000(0000) GS:ffff8881261f6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0be6232e9c CR3: 000000002fbc0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: string_nocheck lib/vsprintf.c:640 [inline] string+0x1d6/0x2b0 lib/vsprintf.c:721 vsnprintf+0x739/0xf00 lib/vsprintf.c:2852 vprintk_store+0x3c7/0xd00 kernel/printk/printk.c:2279 vprintk_emit+0x21e/0x7a0 kernel/printk/printk.c:2426 _printk+0xcf/0x120 kernel/printk/printk.c:2475 __bch2_print_string_as_lines fs/bcachefs/util.c:275 [inline] bch2_print_string_as_lines+0x83/0x150 fs/bcachefs/util.c:286 __bch2_fsck_err+0xbaa/0xed0 fs/bcachefs/error.c:562 __need_discard_or_freespace_err+0x13d/0x1d0 fs/bcachefs/alloc_background.c:678 bch2_bucket_do_index+0x412/0x5d0 fs/bcachefs/alloc_background.c:729 bch2_trigger_alloc+0x1229/0x3fd0 fs/bcachefs/alloc_background.c:885 run_one_trans_trigger fs/bcachefs/btree_trans_commit.c:-1 [inline] bch2_trans_commit_run_triggers fs/bcachefs/btree_trans_commit.c:550 [inline] __bch2_trans_commit+0xa6d/0x8ae0 fs/bcachefs/btree_trans_commit.c:990 bch2_trans_commit fs/bcachefs/btree_update.h:195 [inline] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:705 [inline] btree_interior_update_work+0xe9e/0x25e0 fs/bcachefs/btree_update_interior.c:843 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xade/0x17a0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245