bcachefs (loop0): hash table key at wrong offset: btree xattrs inode 1073741824 offset 945502502804528484, hashed to 5031234116402795709 u64s 7 type xattr 1073741824:945502502804528484:U32_MAX len 0 ver 0: user.xattr2:xattr2, not fixing bcachefs (loop0): hash table key at wrong offset: btree xattrs inode 1073741824 offset 3442546108204556527, hashed to 2204381935775449461 u64s 7 type xattr 1073741824:3442546108204556527:U32_MAX len 0 ver 0: user.xattr1:xattr1, not fixing done bcachefs (loop0): check_root... done bcachefs (loop0): check_unreachable_inodes... bcachefs (loop0): unreachable inode: inum: 4096:4294967295 mode=40600 flags=(7300000) journal_seq=24 hash_seed=76eacaea58753da9 hash_type=siphash bi_size=0 bi_sectors=0 bi_version=0 bi_atime=33561019805671087 bi_ctime=33561019805671087 bi_mtime=33561019805671087 bi_otime=33561019805671087 bi_uid=0 bi_gid=0 bi_nlink=2 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: 5313 Comm: syz.0.0 Not tainted 6.15.0-syzkaller #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 05 86 05 fe 48 8b 74 24 08 8b 54 24 04 e9 23 f7 ff ff e8 c2 8a a3 fd 90 <0f> 0b e8 ba 8a a3 fd 90 0f 0b e8 b2 8a a3 fd 90 0f 0b e8 aa 8a a3 RSP: 0018:ffffc9000d6de980 EFLAGS: 00010293 RAX: ffffffff841c670e RBX: 0000000000004361 RCX: ffff88801fad0000 RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000000000000000 RBP: ffffc9000d6dea90 R08: ffffc9000d6deb47 R09: 0000000000000000 R10: ffffc9000d6deb20 R11: fffff52001adbd69 R12: ffff888051e1c7b8 R13: ffff888051e1c7d8 R14: ffffc9000d6deb20 R15: 1ffff1100a3c38fa FS: 00007f7e887f36c0(0000) GS:ffff88808d6c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7b3a3fb000 CR3: 00000000340c3000 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+0xdf/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:0x7f7e8799010a 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:00007f7e887f2e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f7e887f2ef0 RCX: 00007f7e8799010a RDX: 00002000000000c0 RSI: 0000200000000000 RDI: 00007f7e887f2eb0 RBP: 00002000000000c0 R08: 00007f7e887f2ef0 R09: 0000000003218411 R10: 0000000003218411 R11: 0000000000000246 R12: 0000200000000000 R13: 00007f7e887f2eb0 R14: 000000000000f634 R15: 0000200000000100 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 05 86 05 fe 48 8b 74 24 08 8b 54 24 04 e9 23 f7 ff ff e8 c2 8a a3 fd 90 <0f> 0b e8 ba 8a a3 fd 90 0f 0b e8 b2 8a a3 fd 90 0f 0b e8 aa 8a a3 RSP: 0018:ffffc9000d6de980 EFLAGS: 00010293 RAX: ffffffff841c670e RBX: 0000000000004361 RCX: ffff88801fad0000 RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000000000000000 RBP: ffffc9000d6dea90 R08: ffffc9000d6deb47 R09: 0000000000000000 R10: ffffc9000d6deb20 R11: fffff52001adbd69 R12: ffff888051e1c7b8 R13: ffff888051e1c7d8 R14: ffffc9000d6deb20 R15: 1ffff1100a3c38fa FS: 00007f7e887f36c0(0000) GS:ffff88808d6c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7b3a3fb000 CR3: 00000000340c3000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400