INFO: task syz-executor422:5853 blocked for more than 143 seconds. Not tainted 6.15.0-rc3-syzkaller-00032-ga79be02bba5c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor422 state:D stack:18288 pid:5853 tgid:5853 ppid:5851 task_flags:0x400140 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b33/0x51f0 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x163/0x360 kernel/sched/core.c:6860 __closure_sync+0x1c0/0x2a0 lib/closure.c:146 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:254 [inline] bch2_btree_update_start+0x12bd/0x16c0 fs/bcachefs/btree_update_interior.c:1251 bch2_btree_split_leaf+0x12d/0x8a0 fs/bcachefs/btree_update_interior.c:1864 bch2_trans_commit_error+0x1b3/0x1480 fs/bcachefs/btree_trans_commit.c:904 __bch2_trans_commit+0x8886/0x9da0 fs/bcachefs/btree_trans_commit.c:1069 bch2_trans_commit fs/bcachefs/btree_update.h:195 [inline] bch2_logged_op_start+0x22d/0x3f0 fs/bcachefs/logged_ops.c:93 bch2_truncate+0x1eb/0x340 fs/bcachefs/io_misc.c:297 bchfs_truncate+0x97b/0xc60 fs/bcachefs/fs-io.c:494 notify_change+0xbca/0xe90 fs/attr.c:552 do_truncate+0x222/0x310 fs/open.c:65 handle_truncate fs/namei.c:3501 [inline] do_open fs/namei.c:3884 [inline] path_openat+0x2e4f/0x35d0 fs/namei.c:4039 do_filp_open+0x284/0x4e0 fs/namei.c:4066 do_sys_openat2+0x12b/0x1d0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x249/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa2021c7e09 RSP: 002b:00007fffa65e8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000200000000040 RCX: 00007fa2021c7e09 RDX: 000000000008aa42 RSI: 0000200000000040 RDI: 00000000ffffff9c RBP: 00000000000016dc R08: 000000000000f624 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000246 R12: 00007fffa65e8cc0 R13: 00007fffa65e8da0 R14: 431bde82d7b634db R15: 00007fa20221101d Showing all locks held in the system: 1 lock held by khungtaskd/31: #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764 2 locks held by getty/5587: #0: ffff8880316ef0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900036e32f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x5bb/0x1700 drivers/tty/n_tty.c:2222 5 locks held by syz-executor422/5853: #0: ffff888035ae2420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556 #1: ffff8880689b88e0 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff8880689b88e0 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x20e/0x310 fs/open.c:63 #2: ffff88806a700a70 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0x1ae/0x340 fs/bcachefs/io_misc.c:295 #3: ffff88806a704228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff88806a704228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff88806a704228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3382 #4: ffff88806a726590 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x68a/0x16c0 fs/bcachefs/btree_update_interior.c:1179 3 locks held by bch-copygc/loop/5863: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc3-syzkaller-00032-ga79be02bba5c #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x4ab/0x4e0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 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+0x1058/0x10a0 kernel/hung_task.c:437 kthread+0x7b7/0x940 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: 5863 Comm: bch-copygc/loop Not tainted 6.15.0-rc3-syzkaller-00032-ga79be02bba5c #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__asan_memset+0x31/0x50 mm/kasan/shadow.c:87 Code: 53 48 89 d3 41 89 f6 48 89 fd 48 8b 4c 24 18 48 89 d6 ba 01 00 00 00 e8 5d e6 ff ff 84 c0 74 12 48 89 ef 44 89 f6 48 89 da 5b <41> 5e 5d e9 67 81 fd 09 31 c0 5b 41 5e 5d c3 cc cc cc cc 66 66 66 RSP: 0018:ffffc900041a6268 EFLAGS: 00000202 RAX: 1ffff92000834c01 RBX: 0000000000000003 RCX: ffffffff844c240b RDX: 000000000000000c RSI: 0000000000000000 RDI: ffffc900041a6380 RBP: ffffc900041a6380 R08: ffffc900041a638b R09: 1ffff92000834c71 R10: dffffc0000000000 R11: fffff52000834c72 R12: ffffc900041a6380 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffc900041a6560 FS: 0000000000000000(0000) GS:ffff8881250cf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056410e023ae8 CR3: 0000000033246000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __bkey_unpack_pos+0x7b/0x790 fs/bcachefs/bkey.c:295 bkey_unpack_pos_format_checked fs/bcachefs/bkey.h:449 [inline] bkey_unpack_pos fs/bcachefs/bkey.h:457 [inline] __bch2_bkey_cmp_packed_format_checked_inlined fs/bcachefs/bkey_cmp.h:103 [inline] __bch2_bkey_cmp_packed_format_checked+0x336/0x800 fs/bcachefs/bkey.c:1020 bkey_cmp_p_or_unp fs/bcachefs/bset.h:291 [inline] bkey_iter_cmp_p_or_unp fs/bcachefs/bset.h:400 [inline] bch2_bset_search_linear fs/bcachefs/bset.c:1189 [inline] bch2_btree_node_iter_init+0x23a1/0x42e0 fs/bcachefs/bset.c:1334 __btree_path_level_init fs/bcachefs/btree_iter.c:603 [inline] bch2_btree_path_level_init+0x4e4/0xa00 fs/bcachefs/btree_iter.c:623 btree_path_lock_root fs/bcachefs/btree_iter.c:773 [inline] bch2_btree_path_traverse_one+0x10af/0x2970 fs/bcachefs/btree_iter.c:1189 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:248 [inline] __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2243 [inline] bch2_btree_iter_peek_max+0xb9b/0x61a0 fs/bcachefs/btree_iter.c:2347 bch2_btree_iter_peek fs/bcachefs/btree_iter.h:409 [inline] __bch2_move_data_phys+0xcbf/0x2830 fs/bcachefs/move.c:797 bch2_evacuate_bucket+0x1d9/0x2e0 fs/bcachefs/move.c:946 bch2_copygc+0x4058/0x4db0 fs/bcachefs/movinggc.c:240 bch2_copygc_thread+0x705/0xc00 fs/bcachefs/movinggc.c:398 kthread+0x7b7/0x940 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