------------[ 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: 6957 Comm: syz.3.66 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 : ffff80009c196ff0 x29: ffff80009c197000 x28: dfff800000000000 x27: 0000000000000001 x26: fffffffffffffff8 x25: ffff0000f4700000 x24: fffffffffffffff8 x23: ffff0000cf58b800 x22: 0000000000000000 x21: 0000000000000000 x20: 0000000000000000 x19: ffff80009c197120 x18: 00000000ffffffff x17: ffff800092f39000 x16: ffff80008adbe9e4 x15: 0000000000000001 x14: 1ffff00013832db0 x13: 0000000000000000 x12: 0000000000000000 x11: ffff700013832db1 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000cb9c0000 x7 : ffff8000829d61c4 x6 : 0000000000000001 x5 : fffffffffffffff8 x4 : 0000000000000000 x3 : ffff80009c197120 x2 : ffff0000cf58b800 x1 : fffffffffffffff8 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 handle_truncate fs/namei.c:3501 [inline] do_open fs/namei.c:3884 [inline] path_openat+0x25a0/0x2c40 fs/namei.c:4039 do_filp_open+0x18c/0x36c fs/namei.c:4066 do_sys_openat2+0x11c/0x1b4 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __arm64_sys_openat+0x120/0x158 fs/open.c:1455 __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 ]---