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=4096 bi_dir_offset=8130059955150870709 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing 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 -> 65537 type dir, fixing done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): set_fs_needs_rebalance... done bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean bcachefs (loop0): check_extents_to_backpointers... done bcachefs (loop0): check_snapshots... done bcachefs (loop0): check_subvols... done bcachefs (loop0): check_inodes... done bcachefs (loop0): check_dirents... bcachefs (loop0): directory with wrong i_nlink: got 2, should be 1 /, fixing done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): set_fs_needs_rebalance... done bcachefs (loop0): Second fsck run was not clean 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: 5356 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_quota_check_limit+0xd64/0xd90 fs/bcachefs/quota.c:232 Code: d1 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 77 d7 d1 fd e9 0c fb ff ff e8 dd db 6c fd 90 <0f> 0b e8 d5 db 6c fd 90 0f 0b e8 cd db 6c fd 90 0f 0b e8 c5 db 6c RSP: 0018:ffffc9000d507ab8 EFLAGS: 00010283 RAX: ffffffff8452de23 RBX: ffffc9000d507be0 RCX: 0000000000100000 RDX: ffffc9000e2fa000 RSI: 0000000000006b85 RDI: 0000000000006b86 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffffffffffff8 R10: dffffc0000000000 R11: fffffbfff1f878e7 R12: fffffffffffffff8 R13: fffffffffffffff8 R14: 0000000000000000 R15: ffff8880403f3800 FS: 00007f46d18506c0(0000) GS:ffff88808d007000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7395ff9000 CR3: 00000000409f2000 CR4: 0000000000352ef0 Call Trace: bch2_quota_acct+0x3ed/0x750 fs/bcachefs/quota.c:299 bch2_evict_inode+0x176/0x520 fs/bcachefs/fs.c:2178 evict+0x501/0x9c0 fs/inode.c:810 do_unlinkat+0x39f/0x560 fs/namei.c:4657 __do_sys_unlink fs/namei.c:4696 [inline] __se_sys_unlink fs/namei.c:4694 [inline] __x64_sys_unlink+0x47/0x50 fs/namei.c:4694 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:0x7f46d098eec9 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:00007f46d1850038 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007f46d0be5fa0 RCX: 00007f46d098eec9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000080 RBP: 00007f46d0a11f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f46d0be6038 R14: 00007f46d0be5fa0 R15: 00007ffe606c41e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_quota_check_limit+0xd64/0xd90 fs/bcachefs/quota.c:232 Code: d1 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 77 d7 d1 fd e9 0c fb ff ff e8 dd db 6c fd 90 <0f> 0b e8 d5 db 6c fd 90 0f 0b e8 cd db 6c fd 90 0f 0b e8 c5 db 6c RSP: 0018:ffffc9000d507ab8 EFLAGS: 00010283 RAX: ffffffff8452de23 RBX: ffffc9000d507be0 RCX: 0000000000100000 RDX: ffffc9000e2fa000 RSI: 0000000000006b85 RDI: 0000000000006b86 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffffffffffff8 R10: dffffc0000000000 R11: fffffbfff1f878e7 R12: fffffffffffffff8 R13: fffffffffffffff8 R14: 0000000000000000 R15: ffff8880403f3800 FS: 00007f46d18506c0(0000) GS:ffff88808d007000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000409f2000 CR4: 0000000000352ef0