bcachefs (loop2): dropping and reconstructing all alloc info bcachefs (loop2): check_topology... done bcachefs (loop2): alloc_read... done bcachefs (loop2): stripes_read... done bcachefs (loop2): snapshots_read... done bcachefs (loop2): check_allocations... ------------[ cut here ]------------ kernel BUG at fs/bcachefs/sb-members.c:418! invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 0 PID: 3333 Comm: syz.2.15 Not tainted 6.9.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__bch2_dev_btree_bitmap_mark fs/bcachefs/sb-members.c:418 [inline] RIP: 0010:bch2_dev_btree_bitmap_mark+0x3ca/0x3d0 fs/bcachefs/sb-members.c:435 Code: 65 fe ff ff 48 83 c4 50 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc 90 0f 0b 90 e9 80 fc ff ff 90 0f 0b 90 0f 0b 90 0f 0b 90 <0f> 0b 90 0f 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90002ea3478 EFLAGS: 00010206 RAX: ffff888106788ea8 RBX: 0000000000000033 RCX: 000000000000000d RDX: ffff8881033cc1d0 RSI: 00000000ffffffc8 RDI: 000000000001b001 RBP: 0000000000000000 R08: 000000000000003f R09: ffff88810db80000 R10: 0000042098000000 R11: 0000000000001b00 R12: ffff8881033cc1a8 R13: 0000000000000100 R14: ffff8881033cc180 R15: 0000042098000000 FS: 00007fabf51ff6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffed52f1fd8 CR3: 000000010e3e4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_gc_mark_key+0x1e9c/0x1f60 fs/bcachefs/btree_gc.c:852 bch2_gc_btree_init fs/bcachefs/btree_gc.c:995 [inline] bch2_gc_btrees fs/bcachefs/btree_gc.c:1028 [inline] bch2_gc+0x1171/0x3250 fs/bcachefs/btree_gc.c:1596 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:182 [inline] bch2_run_recovery_passes+0xaf/0x210 fs/bcachefs/recovery_passes.c:225 bch2_fs_recovery+0x9b3/0x1160 fs/bcachefs/recovery.c:799 bch2_fs_start+0x1b9/0x270 fs/bcachefs/super.c:1045 bch2_fs_open+0x404/0x530 fs/bcachefs/super.c:2106 bch2_mount+0x277/0x5c0 fs/bcachefs/fs.c:1903 legacy_get_tree+0x2d/0x60 fs/fs_context.c:662 vfs_get_tree+0x2a/0xf0 fs/super.c:1779 do_new_mount+0x15a/0x3a0 fs/namespace.c:3352 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x14b/0x1c0 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xe2/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fabf577feba 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:00007fabf51fee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fabf51feef0 RCX: 00007fabf577feba RDX: 00000000200000c0 RSI: 0000000020000000 RDI: 00007fabf51feeb0 RBP: 00000000200000c0 R08: 00007fabf51feef0 R09: 0000000000808016 R10: 0000000000808016 R11: 0000000000000246 R12: 0000000020000000 R13: 00007fabf51feeb0 R14: 0000000000005903 R15: 0000000020000100 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__bch2_dev_btree_bitmap_mark fs/bcachefs/sb-members.c:418 [inline] RIP: 0010:bch2_dev_btree_bitmap_mark+0x3ca/0x3d0 fs/bcachefs/sb-members.c:435 Code: 65 fe ff ff 48 83 c4 50 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc 90 0f 0b 90 e9 80 fc ff ff 90 0f 0b 90 0f 0b 90 0f 0b 90 <0f> 0b 90 0f 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90002ea3478 EFLAGS: 00010206 RAX: ffff888106788ea8 RBX: 0000000000000033 RCX: 000000000000000d RDX: ffff8881033cc1d0 RSI: 00000000ffffffc8 RDI: 000000000001b001 RBP: 0000000000000000 R08: 000000000000003f R09: ffff88810db80000 R10: 0000042098000000 R11: 0000000000001b00 R12: ffff8881033cc1a8 R13: 0000000000000100 R14: ffff8881033cc180 R15: 0000042098000000 FS: 00007fabf51ff6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffed52f1fd8 CR3: 000000010e3e4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400