------------[ cut here ]------------ WARNING: CPU: 1 PID: 7061 at fs/btrfs/space-info.h:208 btrfs_space_info_update_bytes_may_use+0x2f0/0x75c Modules linked in: CPU: 1 PID: 7061 Comm: syz-executor.3 Not tainted 6.9.0-rc3-syzkaller-gb5d2afe8745b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_space_info_update_bytes_may_use+0x2f0/0x75c lr : btrfs_space_info_update_bytes_may_use+0x2ec/0x75c sp : ffff800099bd7820 x29: ffff800099bd7830 x28: 0000000000000000 x27: 1fffe000198c1c0c x26: dfff800000000000 x25: ffff80008ee7d568 x24: 0000000000000002 x23: 0000000000000005 x22: 000000000015f000 x21: 0000000000160000 x20: ffff0000cc60e060 x19: 0000000000000000 x18: 0000000000000000 x17: ffff80012501f000 x16: ffff80008ae71340 x15: ffff70001337aef8 x14: 1ffff0001337aef8 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff70001337aef8 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000d2b23c80 x7 : ffff8000823e0310 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008034cea4 x2 : ffffffffffea0000 x1 : 0000000000160000 x0 : 000000000015f000 Call trace: btrfs_space_info_update_bytes_may_use+0x2f0/0x75c btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:240 [inline] block_rsv_release_bytes fs/btrfs/block-rsv.c:153 [inline] btrfs_block_rsv_release+0x414/0x4ec fs/btrfs/block-rsv.c:294 btrfs_release_global_block_rsv+0x38/0x22c fs/btrfs/block-rsv.c:450 btrfs_free_block_groups+0xa88/0xe4c fs/btrfs/block-group.c:4424 close_ctree+0x5f4/0xb44 fs/btrfs/disk-io.c:4387 btrfs_put_super+0x70/0x80 fs/btrfs/super.c:73 generic_shutdown_super+0x128/0x2b8 fs/super.c:641 kill_anon_super+0x4c/0x7c fs/super.c:1225 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2091 deactivate_locked_super+0xc4/0x12c fs/super.c:472 deactivate_super+0xe0/0x100 fs/super.c:505 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 265626 hardirqs last enabled at (265625): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (265626): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (263520): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (263518): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop3): last unmount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d