bcachefs (loop2): alloc_read... done bcachefs (loop2): stripes_read... done bcachefs (loop2): snapshots_read... done bcachefs (loop2): check_allocations... done bcachefs (loop2): going read-write bcachefs (loop2): journal_replay... done bcachefs (loop2): check_alloc_info... done bcachefs (loop2): check_lrus... done bcachefs (loop2): check_btree_backpointers... done bcachefs (loop2): check_backpointers_to_extents... ------------[ cut here ]------------ kernel BUG at fs/bcachefs/bkey_types.h:210! invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 1 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:bkey_s_c_to_backpointer fs/bcachefs/bkey_types.h:210 [inline] RIP: 0010:bch2_check_backpointers_to_extents_pass fs/bcachefs/backpointers.c:919 [inline] RIP: 0010:bch2_check_backpointers_to_extents+0xc1b/0xc30 fs/bcachefs/backpointers.c:960 Code: ff e9 6b ff ff ff 48 c7 c7 48 ca 8b 83 e8 cd c8 02 00 89 c6 89 05 85 e7 2c 07 e9 27 f4 ff ff 4c 89 ef 89 ee e8 26 5e 02 00 90 <0f> 0b e8 4e 90 3e 01 90 0f 0b 90 0f 0b 0f 1f 84 00 00 00 00 00 90 RSP: 0018:ffffc900039b7790 EFLAGS: 00010297 RAX: ffffc900039b7880 RBX: ffffc900039b7850 RCX: 0000000000000000 RDX: ffff88810f720198 RSI: 0000000000882000 RDI: 0000000000000000 RBP: 0000000000000008 R08: 000000000000000d R09: 0000000000000001 R10: 0000000000000000 R11: ffffc900039b7850 R12: ffff88810f720198 R13: ffff88810e3b4000 R14: ffffffffffffffff R15: ffffc900039b7880 FS: 00007f02fc70f6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2517e4e000 CR3: 0000000105b30000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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:0x7f02fb97feba 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:00007f02fc70ee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f02fc70eef0 RCX: 00007f02fb97feba RDX: 00000000200058c0 RSI: 0000000020001040 RDI: 00007f02fc70eeb0 RBP: 00000000200058c0 R08: 00007f02fc70eef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020001040 R13: 00007f02fc70eeb0 R14: 00000000000058ba R15: 0000000020000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bkey_s_c_to_backpointer fs/bcachefs/bkey_types.h:210 [inline] RIP: 0010:bch2_check_backpointers_to_extents_pass fs/bcachefs/backpointers.c:919 [inline] RIP: 0010:bch2_check_backpointers_to_extents+0xc1b/0xc30 fs/bcachefs/backpointers.c:960 Code: ff e9 6b ff ff ff 48 c7 c7 48 ca 8b 83 e8 cd c8 02 00 89 c6 89 05 85 e7 2c 07 e9 27 f4 ff ff 4c 89 ef 89 ee e8 26 5e 02 00 90 <0f> 0b e8 4e 90 3e 01 90 0f 0b 90 0f 0b 0f 1f 84 00 00 00 00 00 90 RSP: 0018:ffffc900039b7790 EFLAGS: 00010297 RAX: ffffc900039b7880 RBX: ffffc900039b7850 RCX: 0000000000000000 RDX: ffff88810f720198 RSI: 0000000000882000 RDI: 0000000000000000 RBP: 0000000000000008 R08: 000000000000000d R09: 0000000000000001 R10: 0000000000000000 R11: ffffc900039b7850 R12: ffff88810f720198 R13: ffff88810e3b4000 R14: ffffffffffffffff R15: ffffc900039b7880 FS: 00007f02fc70f6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2517e4e000 CR3: 0000000105b30000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400