mode=40755 flags=(16300000) journal_seq=4 hash_seed=28e4f092a4fc58ee hash_type=siphash bi_size=0 bi_sectors=0 bi_version=0 bi_atime=200535484 bi_ctime=2780562352 bi_mtime=2780562352 bi_otime=200535484 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=1 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, continuing bcachefs (loop0): check_inode(): error fsck_errors_not_fixed bcachefs (loop0): bch2_check_inodes(): error fsck_errors_not_fixed bcachefs (loop0): check_snapshots... done bcachefs (loop0): check_subvols... bcachefs (loop0): running recovery pass reconstruct_snapshots (21), currently at check_subvols (24) - rewinding bcachefs (loop0): bch2_check_subvols(): error restart_recovery bcachefs (loop0): reconstruct_snapshots... bcachefs (loop0): snapshot node 4294905343 from tree 4294905343 missing, recreating bcachefs (loop0): snapshot node 4294967295 from tree 4294967295 missing, recreating done bcachefs (loop0): check_inodes... 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: 5352 Comm: syz.0.0 Not tainted 6.17.0-rc2-syzkaller-00028-gbe48bcf004f9 #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: d2 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 b7 39 d2 fd e9 0c fb ff ff e8 5d 52 6d fd 90 <0f> 0b e8 55 52 6d fd 90 0f 0b e8 4d 52 6d fd 90 0f 0b e8 45 52 6d RSP: 0018:ffffc9000d26f278 EFLAGS: 00010283 RAX: ffffffff845267d3 RBX: ffffc9000d26f3a0 RCX: 0000000000100000 RDX: ffffc9000e392000 RSI: 000000000001e375 RDI: 000000000001e376 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffffffffffff8 R10: dffffc0000000000 R11: fffffbfff1f47487 R12: fffffffffffffff8 R13: fffffffffffffff8 R14: 0000000000000000 R15: ffff8880400fd800 FS: 00007f79a656f6c0(0000) GS:ffff88808d210000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7ef3b63000 CR3: 000000003e40e000 CR4: 0000000000352ef0 Call Trace: bch2_quota_acct+0x3ed/0x750 fs/bcachefs/quota.c:299 __bch2_i_sectors_acct+0x2b3/0x4a0 fs/bcachefs/fs-io.c:180 bch2_i_sectors_acct fs/bcachefs/fs-io.h:138 [inline] bchfs_truncate+0x8f3/0xc20 fs/bcachefs/fs-io.c:512 notify_change+0xb36/0xe40 fs/attr.c:552 do_truncate+0x1a4/0x220 fs/open.c:68 handle_truncate fs/namei.c:3508 [inline] do_open fs/namei.c:3891 [inline] path_openat+0x306c/0x3830 fs/namei.c:4046 do_filp_open+0x1fa/0x410 fs/namei.c:4073 do_sys_openat2+0x121/0x1c0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_creat fs/open.c:1528 [inline] __se_sys_creat fs/open.c:1522 [inline] __x64_sys_creat+0x8f/0xc0 fs/open.c:1522 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:0x7f79a578ebe9 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:00007f79a656f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f79a59b5fa0 RCX: 00007f79a578ebe9 RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000200000000100 RBP: 00007f79a5811e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f79a59b6038 R14: 00007f79a59b5fa0 R15: 00007fffc1230ef8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_quota_check_limit+0xd64/0xd90 fs/bcachefs/quota.c:232 Code: d2 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 b7 39 d2 fd e9 0c fb ff ff e8 5d 52 6d fd 90 <0f> 0b e8 55 52 6d fd 90 0f 0b e8 4d 52 6d fd 90 0f 0b e8 45 52 6d RSP: 0018:ffffc9000d26f278 EFLAGS: 00010283 RAX: ffffffff845267d3 RBX: ffffc9000d26f3a0 RCX: 0000000000100000 RDX: ffffc9000e392000 RSI: 000000000001e375 RDI: 000000000001e376 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffffffffffff8 R10: dffffc0000000000 R11: fffffbfff1f47487 R12: fffffffffffffff8 R13: fffffffffffffff8 R14: 0000000000000000 R15: ffff8880400fd800 FS: 00007f79a656f6c0(0000) GS:ffff88808d210000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f79a654dfc8 CR3: 000000003e40e000 CR4: 0000000000352ef0