------------[ cut here ]------------ kernel BUG at fs/bcachefs/quota.c:232! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 7090 Comm: syz.0.94 Not tainted 6.15.0-rc7-syzkaller-gd7fa1af5b33e #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : bch2_quota_check_limit+0xb2c/0xb50 fs/bcachefs/quota.c:232 lr : bch2_quota_check_limit+0xb2c/0xb50 fs/bcachefs/quota.c:232 sp : ffff8000a1d473b0 x29: ffff8000a1d473c0 x28: dfff800000000000 x27: 0000000000000001 x26: fffffffffffffff0 x25: ffff0000f9580000 x24: fffffffffffffff0 x23: ffff0000eebf1400 x22: 0000000000000000 x21: 0000000000000000 x20: 0000000000000000 x19: ffff8000a1d474e0 x18: 00000000ffffffff x17: ffff800092f39000 x16: ffff80008adbe9e4 x15: 0000000000000001 x14: 1ffff000143a8e28 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000005c227 x9 : ffff8000a4bca000 x8 : 000000000005c228 x7 : ffff8000829d61c4 x6 : 0000000000000001 x5 : fffffffffffffff0 x4 : 0000000000000000 x3 : ffff8000a1d474e0 x2 : ffff0000eebf1400 x1 : fffffffffffffff0 x0 : 0000000000000000 Call trace: bch2_quota_check_limit+0xb2c/0xb50 fs/bcachefs/quota.c:232 (P) bch2_quota_acct+0x360/0x6a4 fs/bcachefs/quota.c:299 __bch2_i_sectors_acct+0x218/0x3c4 fs/bcachefs/fs-io.c:178 bch2_i_sectors_acct fs/bcachefs/fs-io.h:138 [inline] bchfs_truncate+0x684/0xa70 fs/bcachefs/fs-io.c:510 bch2_setattr+0x198/0x20c fs/bcachefs/fs.c:1245 notify_change+0x9a4/0xc50 fs/attr.c:552 do_truncate+0x178/0x1f0 fs/open.c:65 vfs_truncate+0x398/0x444 fs/open.c:115 do_sys_truncate+0xe4/0x1a8 fs/open.c:138 __do_sys_truncate fs/open.c:150 [inline] __se_sys_truncate fs/open.c:148 [inline] __arm64_sys_truncate+0x5c/0x74 fs/open.c:148 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Code: aa1303e0 97894e28 17fffed8 97750695 (d4210000) ---[ end trace 0000000000000000 ]---