bcachefs (loop3): 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! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 7129 Comm: syz.3.356 Not tainted 6.12.0-rc6-syzkaller-00272-gda4373fbcf00 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:__bch2_btree_node_hash_insert+0x12ed/0x1310 fs/bcachefs/btree_cache.c:280 Code: ea fd e9 9d f5 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c f2 f7 ff ff 48 89 df e8 de e9 ea fd e9 e5 f7 ff ff e8 04 24 81 fd 90 <0f> 0b e8 fc 23 81 fd 90 0f 0b e8 f4 23 81 fd 90 0f 0b e8 3c b0 b3 RSP: 0018:ffffc900034de6a0 EFLAGS: 00010246 RAX: ffffffff8413b65c RBX: ffff8880332d8228 RCX: 0000000000040000 RDX: ffffc9000bf81000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900034de7d0 R08: ffff8880332d81d7 R09: 1ffff1100665b03a R10: dffffc0000000000 R11: ffffed100665b03b R12: 1ffff1100665b045 R13: dffffc0000000000 R14: ffff88802a901a80 R15: ffff8880332d8000 FS: 00007f5f61d546c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555720d5808 CR3: 00000000298e8000 CR4: 0000000000350ef0 Call Trace: set_node_max+0x542/0x710 fs/bcachefs/btree_gc.c:188 btree_repair_node_end fs/bcachefs/btree_gc.c:299 [inline] bch2_btree_repair_topology_recurse+0x5630/0x6750 fs/bcachefs/btree_gc.c:425 bch2_check_topology+0x68f/0xb20 fs/bcachefs/btree_gc.c:550 bch2_run_recovery_pass+0xf2/0x1e0 fs/bcachefs/recovery_passes.c:185 bch2_run_recovery_passes+0x3a7/0x880 fs/bcachefs/recovery_passes.c:238 bch2_fs_recovery+0x25cc/0x39d0 fs/bcachefs/recovery.c:861 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1036 bch2_fs_get_tree+0xd68/0x1710 fs/bcachefs/fs.c:2170 vfs_get_tree+0x92/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3507 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5f60f7feba Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5f61d53e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f5f61d53ef0 RCX: 00007f5f60f7feba RDX: 0000000020000180 RSI: 0000000020000000 RDI: 00007f5f61d53eb0 RBP: 0000000020000180 R08: 00007f5f61d53ef0 R09: 0000000000800808 R10: 0000000000800808 R11: 0000000000000246 R12: 0000000020000000 R13: 00007f5f61d53eb0 R14: 000000000000598e R15: 0000000020000380 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__bch2_btree_node_hash_insert+0x12ed/0x1310 fs/bcachefs/btree_cache.c:280 Code: ea fd e9 9d f5 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c f2 f7 ff ff 48 89 df e8 de e9 ea fd e9 e5 f7 ff ff e8 04 24 81 fd 90 <0f> 0b e8 fc 23 81 fd 90 0f 0b e8 f4 23 81 fd 90 0f 0b e8 3c b0 b3 RSP: 0018:ffffc900034de6a0 EFLAGS: 00010246 RAX: ffffffff8413b65c RBX: ffff8880332d8228 RCX: 0000000000040000 RDX: ffffc9000bf81000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900034de7d0 R08: ffff8880332d81d7 R09: 1ffff1100665b03a R10: dffffc0000000000 R11: ffffed100665b03b R12: 1ffff1100665b045 R13: dffffc0000000000 R14: ffff88802a901a80 R15: ffff8880332d8000 FS: 00007f5f61d546c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ca32024068 CR3: 00000000298e8000 CR4: 0000000000350ef0