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: subvol parent 0 children 0 0 subvol 1 tree 0, fixing done bcachefs (loop0): check_subvols... bcachefs (loop0): subvolume 1 points to missing subvolume root 4096:4294967295, fixing 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: should be at 4528488122877782017 u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir, fixing bcachefs (loop0): hash table key at wrong offset: should be at 6473550778406288699 u64s 7 type dirent 4096:1896155912177158345:U32_MAX len 0 ver 0: file3 -> 536870913 type reg, fixing bcachefs (loop0): hash table key at wrong offset: should be at 9198939996143852045 u64s 7 type dirent 4096:2695648408715017799:U32_MAX len 0 ver 0: file2 -> 536870913 type reg, fixing bcachefs (loop0): hash table key at wrong offset: should be at 2590409212931269227 u64s 7 type dirent 4096:4330382808765833931:U32_MAX len 0 ver 0: file1 -> 536870912 type reg, fixing bcachefs (loop0): hash table key at wrong offset: should be at 3340086394275418373 u64s 8 type dirent 4096:8130059955150870709:U32_MAX len 0 ver 0: lost+found -> 4097 type dir, fixing bcachefs (loop0): hash table key at wrong offset: should be at 1064135990519654632 u64s 8 type dirent 4096:9097378837824744618:U32_MAX len 0 ver 0: file.cold -> 536870914 type reg, fixing bcachefs (loop0): fsck counted subdirectories wrong for inum 4096:4294967295: got 1 should be 2 bcachefs (loop0): directory with wrong i_nlink: got 0, should be 2 /, fixing bcachefs (loop0): check_dirents requires second pass bcachefs (loop0): inode 536870914:4294967295 has wrong backpointer: got 0:1064135990519654632 should be 4096:1064135990519654632, fixing done bcachefs (loop0): check_xattrs... done bcachefs (loop0): check_root... done bcachefs (loop0): check_unreachable_inodes... done bcachefs (loop0): check_subvolume_structure... done bcachefs (loop0): check_directory_structure... done bcachefs (loop0): check_nlinks... bcachefs (loop0): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing done bcachefs (loop0): check_rebalance_work... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): set_fs_needs_rebalance... done bcachefs (loop0): done starting filesystem ------------[ cut here ]------------ kernel BUG at fs/bcachefs/fs.c:1323! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5355 Comm: syz.0.0 Not tainted 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_fill_extent+0x96e/0x970 fs/bcachefs/fs.c:1323 Code: 0f 0b e8 45 a6 7f fd 90 0f 0b e8 3d a6 7f fd e9 f7 fe ff ff e8 33 a6 7f fd 90 0f 0b e8 2b a6 7f fd 90 0f 0b e8 23 a6 7f fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 41 RSP: 0018:ffffc9000d5276a0 EFLAGS: 00010287 RAX: ffffffff8440179d RBX: 0000000000000018 RCX: 0000000000100000 RDX: ffffc9000e2ea000 RSI: 0000000000002f83 RDI: 0000000000002f84 RBP: 0000000000000001 R08: ffff888033e54880 R09: 0000000000000004 R10: 0000000000000012 R11: 0000000000000002 R12: 0000000000000000 R13: ffffc9000d527b28 R14: 0000000000000002 R15: 0000000000000002 FS: 00007fceb957b6c0(0000) GS:ffff88808d20d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd11b3cb000 CR3: 0000000044290000 CR4: 0000000000352ef0 Call Trace: bch2_fiemap+0x2871/0x2a90 fs/bcachefs/fs.c:1538 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x1170/0x1430 fs/ioctl.c:532 __do_sys_ioctl fs/ioctl.c:596 [inline] __se_sys_ioctl+0x82/0x170 fs/ioctl.c:584 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:0x7fceb878ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007fceb957b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fceb89c5fa0 RCX: 00007fceb878ebe9 RDX: 0000200000005dc0 RSI: 00000000c020660b RDI: 0000000000000005 RBP: 00007fceb8811e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fceb89c6038 R14: 00007fceb89c5fa0 R15: 00007ffe2b144948 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_fill_extent+0x96e/0x970 fs/bcachefs/fs.c:1323 Code: 0f 0b e8 45 a6 7f fd 90 0f 0b e8 3d a6 7f fd e9 f7 fe ff ff e8 33 a6 7f fd 90 0f 0b e8 2b a6 7f fd 90 0f 0b e8 23 a6 7f fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 41 RSP: 0018:ffffc9000d5276a0 EFLAGS: 00010287 RAX: ffffffff8440179d RBX: 0000000000000018 RCX: 0000000000100000 RDX: ffffc9000e2ea000 RSI: 0000000000002f83 RDI: 0000000000002f84 RBP: 0000000000000001 R08: ffff888033e54880 R09: 0000000000000004 R10: 0000000000000012 R11: 0000000000000002 R12: 0000000000000000 R13: ffffc9000d527b28 R14: 0000000000000002 R15: 0000000000000002 FS: 00007fceb957b6c0(0000) GS:ffff88808d20d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fceb9559fc8 CR3: 0000000044290000 CR4: 0000000000352ef0