------------[ cut here ]------------ WARNING: CPU: 1 PID: 4326 at fs/btrfs/space-info.h:191 btrfs_space_info_update_bytes_may_use+0x2f0/0x774 fs/btrfs/space-info.h:-1 Modules linked in: CPU: 1 PID: 4326 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 82400005 (Nzcv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : btrfs_space_info_update_bytes_may_use+0x2f0/0x774 fs/btrfs/space-info.h:-1 lr : btrfs_space_info_update_bytes_may_use+0x2ec/0x774 fs/btrfs/space-info.h:191 sp : ffff800020977630 x29: ffff800020977640 x28: dfff800000000000 x27: 1fffe0001f668f10 x26: dfff800000000000 x25: ffff80001520d160 x24: 0000000000000002 x23: 0000000000000005 x22: 00000000000ff000 x21: 0000000000100000 x20: ffff0000fb347880 x19: 0000000000000000 x18: ffff800011b8bf60 x17: ffff800018349000 x16: ffff8000082d7e60 x15: ffff800017e2a000 x14: ffff70000412eebc x13: 1ffff0000412eebc x12: 0000000000ff0100 x11: ff0080000a15336c x10: 0000000000000000 x9 : ffff80000a15336c x8 : ffff0000ce509bc0 x7 : 0000000000000000 x6 : 0000000000000000 x5 : ffff8000185d3c38 x4 : 0000000000000008 x3 : ffff8000082eec58 x2 : fffffffffff00000 x1 : 0000000000100000 x0 : 00000000000ff000 Call trace: btrfs_space_info_update_bytes_may_use+0x2f0/0x774 fs/btrfs/space-info.h:-1 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:224 [inline] block_rsv_release_bytes fs/btrfs/block-rsv.c:152 [inline] btrfs_block_rsv_release+0x394/0x460 fs/btrfs/block-rsv.c:296 btrfs_release_global_block_rsv+0x38/0x22c fs/btrfs/block-rsv.c:471 btrfs_free_block_groups+0x91c/0xaf4 fs/btrfs/block-group.c:4268 close_ctree+0x5f0/0xa94 fs/btrfs/disk-io.c:4802 btrfs_put_super+0x70/0x80 fs/btrfs/super.c:397 generic_shutdown_super+0x130/0x324 fs/super.c:501 kill_anon_super+0x4c/0x80 fs/super.c:1128 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2448 deactivate_locked_super+0xac/0x120 fs/super.c:332 deactivate_super+0xe4/0x104 fs/super.c:363 cleanup_mnt+0x390/0x418 fs/namespace.c:1191 __cleanup_mnt+0x20/0x30 fs/namespace.c:1198 task_work_run+0x1ec/0x278 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x1fa0/0x2aa4 arch/arm64/kernel/signal.c:1151 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x98/0x128 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 329958 hardirqs last enabled at (329957): [] kasan_quarantine_put+0xc4/0x200 mm/kasan/quarantine.c:242 hardirqs last disabled at (329958): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (325540): [] softirq_handle_end kernel/softirq.c:439 [inline] softirqs last enabled at (325540): [] handle_softirqs+0xaec/0xc60 kernel/softirq.c:624 softirqs last disabled at (325523): [] __do_softirq+0x14/0x20 kernel/softirq.c:630 ---[ end trace 0000000000000000 ]---