bcachefs (loop1): alloc_read... done bcachefs (loop1): stripes_read... done bcachefs (loop1): snapshots_read... done bcachefs (loop1): check_allocations... ------------[ cut here ]------------ kernel BUG at fs/bcachefs/buckets.h:96! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 11069 Comm: syz-executor.1 Tainted: G W 6.10.0-rc2-next-20240604-syzkaller #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:gc_bucket+0x250/0x260 fs/bcachefs/buckets.h:96 Code: 8c e8 84 42 63 fd e9 29 ff ff ff 89 f9 80 e1 07 fe c1 38 c1 0f 8c 36 ff ff ff e8 3b d4 ec fd e9 2c ff ff ff e8 b1 e5 86 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 90 90 90 90 90 90 RSP: 0018:ffffc9000347e208 EFLAGS: 00010246 RAX: ffffffff840fa54f RBX: 000000000001007c RCX: 0000000000040000 RDX: ffffc90009029000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff88802e3d8000 R08: ffffffff840fa4b1 R09: 0000000000000000 R10: ffffc9000347efd0 R11: fffff5200068fdfc R12: ffff88807f75b130 R13: ffff88807f75b118 R14: 000000000001007c R15: 0000000000000080 FS: 00007fe2e06196c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5dbebb59a8 CR3: 000000005dfd2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_gc_alloc_start fs/bcachefs/btree_gc.c:899 [inline] bch2_check_allocations+0xc63/0xb9d0 fs/bcachefs/btree_gc.c:1109 bch2_run_recovery_pass+0xf0/0x1e0 fs/bcachefs/recovery_passes.c:183 bch2_run_recovery_passes+0x19e/0x820 fs/bcachefs/recovery_passes.c:226 bch2_fs_recovery+0x238b/0x3730 fs/bcachefs/recovery.c:846 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1017 bch2_fs_open+0xa8d/0xdf0 fs/bcachefs/super.c:2113 bch2_mount fs/bcachefs/fs.c:1908 [inline] bch2_fs_get_tree+0x75e/0x14d0 fs/bcachefs/fs.c:2069 vfs_get_tree+0x90/0x2a0 fs/super.c:1780 do_new_mount+0x2be/0xb40 fs/namespace.c:3352 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875 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:0x7fe2df87e66a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe2e0618ef8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fe2e0618f80 RCX: 00007fe2df87e66a RDX: 0000000020005d80 RSI: 0000000020005dc0 RDI: 00007fe2e0618f40 RBP: 0000000020005d80 R08: 00007fe2e0618f80 R09: 0000000000000400 R10: 0000000000000400 R11: 0000000000000206 R12: 0000000020005dc0 R13: 00007fe2e0618f40 R14: 0000000000005e05 R15: 0000000020005e00 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gc_bucket+0x250/0x260 fs/bcachefs/buckets.h:96 Code: 8c e8 84 42 63 fd e9 29 ff ff ff 89 f9 80 e1 07 fe c1 38 c1 0f 8c 36 ff ff ff e8 3b d4 ec fd e9 2c ff ff ff e8 b1 e5 86 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 90 90 90 90 90 90 RSP: 0018:ffffc9000347e208 EFLAGS: 00010246 RAX: ffffffff840fa54f RBX: 000000000001007c RCX: 0000000000040000 RDX: ffffc90009029000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff88802e3d8000 R08: ffffffff840fa4b1 R09: 0000000000000000 R10: ffffc9000347efd0 R11: fffff5200068fdfc R12: ffff88807f75b130 R13: ffff88807f75b118 R14: 000000000001007c R15: 0000000000000080 FS: 00007fe2e06196c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5dbebb59a8 CR3: 000000005dfd2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400