bcachefs (loop2): set_node_max(): u64s 11 type btree_ptr_v2 18446744073709027327:18374686479671623680:50331647 len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0 -> SPOS_MAX ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_cache.c:280! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 UID: 0 PID: 11827 Comm: syz.2.2297 Not tainted 6.12.0-rc7-syzkaller-ga2995abceafa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __bch2_btree_node_hash_insert+0xf30/0xfa8 fs/bcachefs/btree_cache.c:280 lr : __bch2_btree_node_hash_insert+0xf30/0xfa8 fs/bcachefs/btree_cache.c:280 sp : ffff8000a3a56190 x29: ffff8000a3a56200 x28: ffff0000fe101a80 x27: ffff0000d3900228 x26: 0000000000000001 x25: dfff800000000000 x24: 1fffe0001a720045 x23: ffff0000d3900000 x22: ffff0000ce9f5d00 x21: ffff0000fe101a80 x20: dfff800000000000 x19: ffff0000d3900000 x18: 0000000000000008 x17: 0000000000010010 x16: 2285c34bed0abe32 x15: 0000000000000000 x14: ffffffffffffffff x13: 000000000001f001 x12: 0000000000000000 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff8000a437a000 x8 : 0000000000040000 x7 : 0000000000000000 x6 : 000000000012010b x5 : ffff0000d39001d8 x4 : ffff0000ce9f5d58 x3 : ffff8000827dd26c x2 : 0000000000000058 x1 : ffff0000d3900000 x0 : ffff0000fe101a80 Call trace: __bch2_btree_node_hash_insert+0xf30/0xfa8 fs/bcachefs/btree_cache.c:280 (P) __bch2_btree_node_hash_insert+0xf30/0xfa8 fs/bcachefs/btree_cache.c:280 (L) set_node_max+0x80c/0xc6c fs/bcachefs/btree_gc.c:188 btree_repair_node_end fs/bcachefs/btree_gc.c:299 [inline] bch2_btree_repair_topology_recurse+0x3994/0x4710 fs/bcachefs/btree_gc.c:425 bch2_check_topology+0x3a8/0x624 fs/bcachefs/btree_gc.c:550 bch2_run_recovery_pass+0xe4/0x1d4 fs/bcachefs/recovery_passes.c:185 bch2_run_recovery_passes+0x30c/0x73c fs/bcachefs/recovery_passes.c:238 bch2_fs_recovery+0x32d8/0x55dc fs/bcachefs/recovery.c:861 bch2_fs_start+0x30c/0x53c fs/bcachefs/super.c:1036 bch2_fs_get_tree+0x938/0x1030 fs/bcachefs/fs.c:2170 vfs_get_tree+0x90/0x28c fs/super.c:1814 do_new_mount+0x278/0x900 fs/namespace.c:3507 path_mount+0x590/0xe04 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Code: aa1603e0 978c2751 17fffe31 97771eb9 (d4210000) ---[ end trace 0000000000000000 ]---