done bcachefs (loop0): check_extents... done bcachefs (loop0): check_indirect_extents... done bcachefs (loop0): check_dirents... done bcachefs (loop0): check_xattrs... done bcachefs (loop0): check_root... done bcachefs (loop0): check_unreachable_inodes... bcachefs (loop0): unreachable inode: inum: 4097:4294967295 mode=40700 flags=(4300000) journal_seq=25 hash_seed=a9fcff247692d1ca hash_type=siphash bi_size=0 bi_sectors=0 bi_version=0 bi_atime=200535484 bi_ctime=200535484 bi_mtime=200535484 bi_otime=200535484 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=0 bi_dir_offset=0 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295 bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295 bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295 bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295 bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295 ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_iter.c:1828! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5317 Comm: syz.0.0 Not tainted 6.15.0-rc7-syzkaller-00142-g4856ebd99715 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:bch2_btree_path_peek_slot+0xfaf/0xff0 fs/bcachefs/btree_iter.c:1828 Code: f7 ff ff 48 89 74 24 08 be 08 00 00 00 89 54 24 04 e8 a5 92 05 fe 48 8b 74 24 08 8b 54 24 04 e9 23 f7 ff ff e8 22 96 a3 fd 90 <0f> 0b e8 1a 96 a3 fd 90 0f 0b e8 12 96 a3 fd 90 0f 0b e8 0a 96 a3 RSP: 0018:ffffc9000f636980 EFLAGS: 00010246 RAX: ffffffff841c5bae RBX: 0000000000004361 RCX: 0000000000100000 RDX: ffffc9000dd9a000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffffc9000f636a90 R08: ffffc9000f636b47 R09: 0000000000000000 R10: ffffc9000f636b20 R11: fffff52001ec6d69 R12: ffff888052504950 R13: ffff888052504970 R14: ffffc9000f636b20 R15: 1ffff1100a4a092d FS: 00007fa87ebc56c0(0000) GS:ffff88808d6c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555a25cac168 CR3: 0000000036255000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_btree_path_peek_slot_exact fs/bcachefs/btree_iter.h:264 [inline] verify_update_old_key+0x118/0x790 fs/bcachefs/btree_trans_commit.c:49 run_one_trans_trigger fs/bcachefs/btree_trans_commit.c:486 [inline] bch2_trans_commit_run_triggers fs/bcachefs/btree_trans_commit.c:550 [inline] __bch2_trans_commit+0x364/0x8ae0 fs/bcachefs/btree_trans_commit.c:990 bch2_trans_commit fs/bcachefs/btree_update.h:195 [inline] bch2_check_unreachable_inodes+0x45b/0xe90 fs/bcachefs/fsck.c:1416 bch2_run_recovery_pass+0xe2/0x1d0 fs/bcachefs/recovery_passes.c:227 bch2_run_recovery_passes+0x2a0/0xdb0 fs/bcachefs/recovery_passes.c:280 bch2_fs_recovery+0x2399/0x37b0 fs/bcachefs/recovery.c:937 bch2_fs_start+0x70b/0xae0 fs/bcachefs/super.c:1096 bch2_fs_get_tree+0xad7/0x13b0 fs/bcachefs/fs.c:2483 vfs_get_tree+0x8f/0x2b0 fs/super.c:1759 do_new_mount+0x24a/0xa40 fs/namespace.c:3881 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4409 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa87dd9010a 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:00007fa87ebc4e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fa87ebc4ef0 RCX: 00007fa87dd9010a RDX: 0000200000000240 RSI: 0000200000000180 RDI: 00007fa87ebc4eb0 RBP: 0000200000000240 R08: 00007fa87ebc4ef0 R09: 0000000000004058 R10: 0000000000004058 R11: 0000000000000246 R12: 0000200000000180 R13: 00007fa87ebc4eb0 R14: 0000000000005a52 R15: 0000200000000280 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_btree_path_peek_slot+0xfaf/0xff0 fs/bcachefs/btree_iter.c:1828 Code: f7 ff ff 48 89 74 24 08 be 08 00 00 00 89 54 24 04 e8 a5 92 05 fe 48 8b 74 24 08 8b 54 24 04 e9 23 f7 ff ff e8 22 96 a3 fd 90 <0f> 0b e8 1a 96 a3 fd 90 0f 0b e8 12 96 a3 fd 90 0f 0b e8 0a 96 a3 RSP: 0018:ffffc9000f636980 EFLAGS: 00010246 RAX: ffffffff841c5bae RBX: 0000000000004361 RCX: 0000000000100000 RDX: ffffc9000dd9a000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffffc9000f636a90 R08: ffffc9000f636b47 R09: 0000000000000000 R10: ffffc9000f636b20 R11: fffff52001ec6d69 R12: ffff888052504950 R13: ffff888052504970 R14: ffffc9000f636b20 R15: 1ffff1100a4a092d FS: 00007fa87ebc56c0(0000) GS:ffff88808d6c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555a25cac168 CR3: 0000000036255000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400