Ratelimiting new instances of previous error done bcachefs (loop0): going read-write bcachefs (loop0): journal_replay... done bcachefs (loop0): check_alloc_info... bcachefs (loop0): hole in alloc btree missing in freespace btree device 0 buckets 26-27, fixing done bcachefs (loop0): check_lrus... 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 4/128 buckets done bcachefs (loop0): check_alloc_to_lru_refs... done bcachefs (loop0): bucket_gens_init... done bcachefs (loop0): reconstruct_snapshots... bcachefs (loop0): snapshot node 4294967295 from tree 4294967295 missing, recreating done bcachefs (loop0): check_snapshot_trees... done bcachefs (loop0): check_snapshots... done bcachefs (loop0): check_subvols... bcachefs (loop0): subvolume 1 is not set as snapshot but is not master subvolume, fixing done bcachefs (loop0): check_subvol_children... done bcachefs (loop0): delete_dead_snapshots... done bcachefs (loop0): check_inodes... done bcachefs (loop0): check_extents... bcachefs (loop0): inode 4100:4294967295 has incorrect i_sectors: got 0, should be 8, fixing done bcachefs (loop0): check_indirect_extents... done bcachefs (loop0): check_dirents... bcachefs (loop0): dirent points to missing inode: u64s 8 type dirent 4096:8130059955150870709:U32_MAX len 0 ver 0: lost+found -> 4097 type dir, not fixing bcachefs (loop0): incorrect d_type: got lnk, should be reg: u64s 7 type dirent 4098:5675548428000973578:U32_MAX len 0 ver 0: file1 -> 4100 type lnk, not 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... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): set_fs_needs_rebalance... done bcachefs (loop0): reading quotas bcachefs (loop0): quotas done bcachefs (loop0): done starting filesystem ------------[ cut here ]------------ kernel BUG at fs/bcachefs/quota.c:232! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5315 Comm: syz.0.0 Not tainted 6.15.0-rc7-syzkaller-00014-gd608703fcdd9 #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_quota_check_limit+0xd64/0xd90 fs/bcachefs/quota.c:232 Code: dd fd e9 19 fb ff ff 48 8b 0c 24 80 e1 07 38 c1 0f 8c 1a fb ff ff 48 8b 3c 24 e8 e7 c0 dd fd e9 0c fb ff ff e8 4d c6 7b fd 90 <0f> 0b e8 45 c6 7b fd 90 0f 0b e8 3d c6 7b fd 90 0f 0b e8 35 c6 7b RSP: 0018:ffffc9000d3375f8 EFLAGS: 00010293 RAX: ffffffff84442b83 RBX: ffffc9000d337720 RCX: ffff88801f702440 RDX: 0000000000000000 RSI: fffffffffffffff0 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffffffffffff0 R10: dffffc0000000000 R11: fffffbfff1efe66f R12: fffffffffffffff0 R13: fffffffffffffff0 R14: 0000000000000000 R15: ffff888052093000 FS: 00007f365a6906c0(0000) GS:ffff88808d6c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7b1ca1e000 CR3: 0000000036522000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_quota_acct+0x3ed/0x750 fs/bcachefs/quota.c:299 __bch2_i_sectors_acct+0x2b9/0x4d0 fs/bcachefs/fs-io.c:178 bch2_i_sectors_acct fs/bcachefs/fs-io.h:138 [inline] __bchfs_fallocate+0x15e5/0x1870 fs/bcachefs/fs-io.c:751 bchfs_fallocate+0x33f/0x680 fs/bcachefs/fs-io.c:789 bch2_fallocate_dispatch+0x345/0x4e0 fs/bcachefs/fs-io.c:836 vfs_fallocate+0x6a3/0x830 fs/open.c:338 ksys_fallocate fs/open.c:362 [inline] __do_sys_fallocate fs/open.c:367 [inline] __se_sys_fallocate fs/open.c:365 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:365 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:0x7f365978e969 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:00007f365a690038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f36599b5fa0 RCX: 00007f365978e969 RDX: 0000000000000003 RSI: 0000000000000010 RDI: 0000000000000004 RBP: 00007f3659810ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000007c27 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f36599b5fa0 R15: 00007ffd0754f4a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_quota_check_limit+0xd64/0xd90 fs/bcachefs/quota.c:232 Code: dd fd e9 19 fb ff ff 48 8b 0c 24 80 e1 07 38 c1 0f 8c 1a fb ff ff 48 8b 3c 24 e8 e7 c0 dd fd e9 0c fb ff ff e8 4d c6 7b fd 90 <0f> 0b e8 45 c6 7b fd 90 0f 0b e8 3d c6 7b fd 90 0f 0b e8 35 c6 7b RSP: 0018:ffffc9000d3375f8 EFLAGS: 00010293 RAX: ffffffff84442b83 RBX: ffffc9000d337720 RCX: ffff88801f702440 RDX: 0000000000000000 RSI: fffffffffffffff0 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffffffffffff0 R10: dffffc0000000000 R11: fffffbfff1efe66f R12: fffffffffffffff0 R13: fffffffffffffff0 R14: 0000000000000000 R15: ffff888052093000 FS: 00007f365a6906c0(0000) GS:ffff88808d6c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd0754ecc0 CR3: 0000000036522000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400