fragmentation 0 bp_start 8 , fixing done bcachefs (loop0): check_lrus... bcachefs (loop0): incorrect lru entry: lru fragmentation time 134217728 u64s 5 type set 18446462598867058688:34:0 len 0 ver 0 for u64s 13 type alloc_v4 0:34:0 len 0 ver 0: gen 0 oldest_gen 0 data_type need_discard journal_seq_nonempty 5 journal_seq_empty 134217728 need_discard 1 need_inc_gen 1 dirty_sectors 0 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 1 io_time[WRITE] 512 fragmentation 0 bp_start 8 , fixing done bcachefs (loop0): check_btree_backpointers... done bcachefs (loop0): check_backpointers_to_extents... done bcachefs (loop0): check_extents_to_backpointers... bcachefs (loop0): scanning for missing backpointers in 3/128 buckets done bcachefs (loop0): check_alloc_to_lru_refs... done bcachefs (loop0): bucket_gens_init... done bcachefs (loop0): check_snapshot_trees... done bcachefs (loop0): check_snapshots... bcachefs (loop0): snapshot points to missing/incorrect tree: u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing bcachefs (loop0): snapshot points to missing/incorrect tree: u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing done bcachefs (loop0): check_subvols... done bcachefs (loop0): check_subvol_children... done bcachefs (loop0): delete_dead_snapshots... done bcachefs (loop0): check_inodes... done bcachefs (loop0): check_extents... done bcachefs (loop0): check_indirect_extents... done bcachefs (loop0): check_dirents... bcachefs (loop0): hash table key at wrong offset: btree dirents inode 4096 offset 6229884513039707068, hashed to 2263426191451115502 u64s 7 type dirent 4096:6229884513039707068:U32_MAX len 0 ver 0: ÍËle2 -> 2165878814 -> 1056964609 type subvol, fixing bcachefs (loop0): hash table key at wrong offset: btree dirents inode 4096 offset 6229884513039707068, hashed to 2263426191451115502 u64s 7 type dirent 4096:6229884513039707068:U32_MAX len 0 ver 0: ÍËle2 -> 2165878814 -> 1056964609 type subvol, fixing ------------[ cut here ]------------ kernel BUG at fs/bcachefs/fsck.c:979! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted 6.15.0-rc3-syzkaller-00001-g9d7a0577c9db #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_fsck_update_backpointers+0x4ed/0x4f0 fs/bcachefs/fsck.c:979 Code: e9 2b fc ff ff 89 d9 80 e1 07 38 c1 0f 8c 62 fc ff ff 48 89 df e8 63 c6 b7 fd e9 55 fc ff ff e8 29 70 ba 07 e8 04 8d 4d fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e RSP: 0018:ffffc9000d366460 EFLAGS: 00010246 RAX: ffffffff8475301c RBX: 0000000000000010 RCX: 0000000000100000 RDX: ffffc9000e2c2000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffffc9000d366600 R08: ffffffff84752c79 R09: 0000000000000000 R10: ffffc9000d366530 R11: fffff52001a6ccaf R12: ffffc9000d367290 R13: dffffc0000000000 R14: ffff888042e19800 R15: ffff88805487c000 FS: 00007f9af9c8a6c0(0000) GS:ffff88808c59a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562020389078 CR3: 00000000441ac000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __bch2_str_hash_check_key+0x202c/0x3b50 fs/bcachefs/str_hash.c:257 bch2_str_hash_check_key fs/bcachefs/str_hash.h:415 [inline] check_dirent fs/bcachefs/fsck.c:2177 [inline] bch2_check_dirents+0x2d45/0x3b90 fs/bcachefs/fsck.c:2272 bch2_run_recovery_pass+0xf0/0x1e0 fs/bcachefs/recovery_passes.c:226 bch2_run_recovery_passes+0x2ad/0xa90 fs/bcachefs/recovery_passes.c:285 bch2_fs_recovery+0x292a/0x3e20 fs/bcachefs/recovery.c:936 bch2_fs_start+0x310/0x620 fs/bcachefs/super.c:1065 bch2_fs_get_tree+0x113e/0x18f0 fs/bcachefs/fs.c:2253 vfs_get_tree+0x90/0x2b0 fs/super.c:1759 do_new_mount+0x2cf/0xb70 fs/namespace.c:3881 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount+0x38c/0x400 fs/namespace.c:4409 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9af8d8f90a 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:00007f9af9c89e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f9af9c89ef0 RCX: 00007f9af8d8f90a RDX: 000020000000f640 RSI: 0000200000000200 RDI: 00007f9af9c89eb0 RBP: 000020000000f640 R08: 00007f9af9c89ef0 R09: 0000000002a18414 R10: 0000000002a18414 R11: 0000000000000246 R12: 0000200000000200 R13: 00007f9af9c89eb0 R14: 000000000000f651 R15: 00002000000004c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_fsck_update_backpointers+0x4ed/0x4f0 fs/bcachefs/fsck.c:979 Code: e9 2b fc ff ff 89 d9 80 e1 07 38 c1 0f 8c 62 fc ff ff 48 89 df e8 63 c6 b7 fd e9 55 fc ff ff e8 29 70 ba 07 e8 04 8d 4d fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e RSP: 0018:ffffc9000d366460 EFLAGS: 00010246 RAX: ffffffff8475301c RBX: 0000000000000010 RCX: 0000000000100000 RDX: ffffc9000e2c2000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffffc9000d366600 R08: ffffffff84752c79 R09: 0000000000000000 R10: ffffc9000d366530 R11: fffff52001a6ccaf R12: ffffc9000d367290 R13: dffffc0000000000 R14: ffff888042e19800 R15: ffff88805487c000 FS: 00007f9af9c8a6c0(0000) GS:ffff88808c59a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562020389078 CR3: 00000000441ac000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400