bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 bcachefs (loop0): initializing new filesystem ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_trans_commit.c:1027! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 7352 Comm: syz.0.412 Not tainted 6.16.0-rc6-next-20250716-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:do_bch2_trans_commit_to_journal_replay+0x10bf/0x10e0 fs/bcachefs/btree_trans_commit.c:1027 Code: 48 c7 c1 5e 9d 99 8d 49 89 c0 e8 1c 4c 2b 00 4c 89 ff e8 b4 b5 0d 00 48 8b 7c 24 68 e8 ca 1b 00 00 90 0f 0b e8 02 75 91 fd 90 <0f> 0b e8 fa 74 91 fd eb ad e8 f3 74 91 fd eb a6 e8 ec 74 91 fd 90 RSP: 0018:ffffc90003a16840 EFLAGS: 00010283 RAX: ffffffff842e31ce RBX: 00000000fffff7ab RCX: 0000000000080000 RDX: ffffc9000b8a1000 RSI: 00000000000583be RDI: 00000000000583bf RBP: ffff88806e370000 R08: ffff8880504049e3 R09: 1ffff1100a08093c R10: dffffc0000000000 R11: ffffed100a08093d R12: ffff88806e370028 R13: 0000000000000000 R14: ffff88806e3700d2 R15: ffff8880589e68d0 FS: 00007fdc7bf9b6c0(0000) GS:ffff888125be2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f71ebee56c0 CR3: 000000007b69a000 CR4: 00000000003526f0 Call Trace: __bch2_trans_commit+0x1c4f/0x8f10 fs/bcachefs/btree_trans_commit.c:1060 bch2_trans_commit fs/bcachefs/btree_update.h:270 [inline] bch2_trans_mark_metadata_bucket+0x57f/0x1270 fs/bcachefs/buckets.c:1059 bch2_trans_mark_metadata_sectors fs/bcachefs/buckets.c:1076 [inline] __bch2_trans_mark_dev_sb fs/bcachefs/buckets.c:1116 [inline] bch2_trans_mark_dev_sb+0x3e8/0x7c0 fs/bcachefs/buckets.c:1145 bch2_trans_mark_dev_sbs_flags+0x49c/0x500 fs/bcachefs/buckets.c:1154 bch2_fs_initialize+0x4ab/0xdf0 fs/bcachefs/recovery.c:1190 bch2_fs_start+0x92a/0xbf0 fs/bcachefs/super.c:1217 bch2_fs_get_tree+0xb39/0x1540 fs/bcachefs/fs.c:2456 vfs_get_tree+0x8f/0x2b0 fs/super.c:1804 do_new_mount+0x2a2/0x9e0 fs/namespace.c:3805 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4344 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4321 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdc7b1900ca 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:00007fdc7bf9ae68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fdc7bf9aef0 RCX: 00007fdc7b1900ca RDX: 0000200000000140 RSI: 0000200000000100 RDI: 00007fdc7bf9aeb0 RBP: 0000200000000140 R08: 00007fdc7bf9aef0 R09: 0000000002800000 R10: 0000000002800000 R11: 0000000000000246 R12: 0000200000000100 R13: 00007fdc7bf9aeb0 R14: 0000000000005a7a R15: 0000200000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:do_bch2_trans_commit_to_journal_replay+0x10bf/0x10e0 fs/bcachefs/btree_trans_commit.c:1027 Code: 48 c7 c1 5e 9d 99 8d 49 89 c0 e8 1c 4c 2b 00 4c 89 ff e8 b4 b5 0d 00 48 8b 7c 24 68 e8 ca 1b 00 00 90 0f 0b e8 02 75 91 fd 90 <0f> 0b e8 fa 74 91 fd eb ad e8 f3 74 91 fd eb a6 e8 ec 74 91 fd 90 RSP: 0018:ffffc90003a16840 EFLAGS: 00010283 RAX: ffffffff842e31ce RBX: 00000000fffff7ab RCX: 0000000000080000 RDX: ffffc9000b8a1000 RSI: 00000000000583be RDI: 00000000000583bf RBP: ffff88806e370000 R08: ffff8880504049e3 R09: 1ffff1100a08093c R10: dffffc0000000000 R11: ffffed100a08093d R12: ffff88806e370028 R13: 0000000000000000 R14: ffff88806e3700d2 R15: ffff8880589e68d0 FS: 00007fdc7bf9b6c0(0000) GS:ffff888125ce2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa4a0982178 CR3: 000000007b69a000 CR4: 00000000003526f0