INFO: task syz-executor253:5850 blocked for more than 143 seconds. Not tainted 6.15.0-rc5-syzkaller-00204-g0e1329d4045c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor253 state:D stack:21192 pid:5850 tgid:5850 ppid:5849 task_flags:0x400140 flags:0x00004006 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 __closure_sync+0x163/0x220 lib/closure.c:146 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:256 [inline] bch2_btree_update_start+0x1193/0x14c0 fs/bcachefs/btree_update_interior.c:1251 bch2_btree_split_leaf+0x13c/0x8f0 fs/bcachefs/btree_update_interior.c:1879 bch2_trans_commit_error+0x1a8/0x1100 fs/bcachefs/btree_trans_commit.c:904 __bch2_trans_commit+0x779c/0x8ae0 fs/bcachefs/btree_trans_commit.c:1069 bch2_trans_commit fs/bcachefs/btree_update.h:195 [inline] bch2_logged_op_start+0x170/0x280 fs/bcachefs/logged_ops.c:93 bch2_truncate+0x128/0x200 fs/bcachefs/io_misc.c:297 bchfs_truncate+0x7b7/0xcc0 fs/bcachefs/fs-io.c:509 notify_change+0xb33/0xe40 fs/attr.c:552 do_truncate+0x19a/0x220 fs/open.c:65 handle_truncate fs/namei.c:3501 [inline] do_open fs/namei.c:3884 [inline] path_openat+0x306c/0x3830 fs/namei.c:4039 do_filp_open+0x1fa/0x410 fs/namei.c:4066 do_sys_openat2+0x121/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_creat fs/open.c:1522 [inline] __se_sys_creat fs/open.c:1516 [inline] __x64_sys_creat+0x8f/0xc0 fs/open.c:1516 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:0x7ff729fd4ad9 RSP: 002b:00007ffc86562e18 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007ff729fd4ad9 RDX: 00007ff729fd4ad9 RSI: 000000000000000e RDI: 00002000000023c0 RBP: 00007ff72a0575f0 R08: 0000555590c214c0 R09: 0000555590c214c0 R10: 000000000000f624 R11: 0000000000000246 R12: 00007ffc86562e40 R13: 00007ffc86563068 R14: 431bde82d7b634db R15: 00007ff72a01d03b Showing all locks held in the system: 1 lock held by khungtaskd/31: #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6764 2 locks held by getty/5574: #0: ffff88814d3be0a0 (&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-executor253/5850: #0: ffff88806f1dc420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:556 #1: ffff888077369078 (&sb->s_type->i_mutex_key#14){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff888077369078 (&sb->s_type->i_mutex_key#14){++++}-{4:4}, at: do_truncate+0x186/0x220 fs/open.c:63 #2: ffff888075680a70 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0xeb/0x200 fs/bcachefs/io_misc.c:295 #3: ffff888075684228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff888075684228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff888075684228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x806/0xda0 fs/bcachefs/btree_iter.c:3385 #4: ffff8880756a6590 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x68f/0x14c0 fs/bcachefs/btree_update_interior.c:1179 2 locks held by bch-copygc/loop/5860: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc5-syzkaller-00204-g0e1329d4045c #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+0x70e/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: 5860 Comm: bch-copygc/loop Not tainted 6.15.0-rc5-syzkaller-00204-g0e1329d4045c #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__sanitizer_cov_trace_switch+0x8a/0x130 kernel/kcov.c:351 Code: 85 c0 0f 84 b4 00 00 00 41 57 41 56 41 54 53 48 8b 54 24 20 65 4c 8b 04 25 08 00 72 92 45 31 c9 eb 08 49 ff c1 4c 39 c8 74 77 <4e> 8b 54 ce 10 65 44 8b 1d d9 2a b2 10 41 81 e3 00 01 ff 00 74 13 RSP: 0018:ffffc900044ff958 EFLAGS: 00000246 RAX: 0000000000000002 RBX: 1ffff1100ea85850 RCX: 0000000000000005 RDX: ffffffff841dfb4d RSI: ffffffff8e55a360 RDI: 0000000000000001 RBP: 0000000000000000 R08: ffff88802ffcbc00 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed100fbfe701 R12: 0000000000000000 R13: 0000000000000001 R14: ffff88807542c268 R15: ffff88807542c282 FS: 0000000000000000(0000) GS:ffff888126200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b01d422168 CR3: 00000000326d2000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btree_node_unlock+0x8d/0x240 fs/bcachefs/btree_locking.h:131 __bch2_btree_path_unlock fs/bcachefs/btree_locking.h:158 [inline] __bch2_trans_unlock fs/bcachefs/btree_locking.c:728 [inline] bch2_trans_unlock+0x1d3/0x4b0 fs/bcachefs/btree_locking.c:811 bch2_trans_unlock_long+0x15/0x20 fs/bcachefs/btree_locking.c:818 bch2_copygc_thread+0x4b2/0xd40 fs/bcachefs/movinggc.c:374 kthread+0x70e/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