------------[ cut here ]------------ WARNING: CPU: 0 PID: 5834 at fs/btrfs/space-info.h:198 btrfs_space_info_update_bytes_may_use+0x2c0/0x704 Modules linked in: CPU: 0 PID: 5834 Comm: syz-executor.2 Not tainted 6.4.0-syzkaller-10173-ga901a3568fd2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_space_info_update_bytes_may_use+0x2c0/0x704 lr : btrfs_space_info_update_bytes_may_use+0x2bc/0x704 sp : ffff8000954d74e0 x29: ffff8000954d74f0 x28: 0000000000000000 x27: 1fffe0001913d70c x26: dfff800000000000 x25: ffff80008d05d3d8 x24: 0000000000000001 x23: 0000000000000005 x22: 000000000015f000 x21: 0000000000160000 x20: ffff0000c89eb860 x19: 0000000000000000 x18: ffff8000954d7220 x17: ffff80008d05d000 x16: ffff800089cd0ee8 x15: ffff700012a9ae90 x14: 1ffff00012a9ae90 x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000000001 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000ca00b780 x7 : 0000000000000000 x6 : 0000000000000000 x5 : ffff80008ff91400 x4 : 0000000000000008 x3 : ffff80008032301c x2 : ffffffffffea0000 x1 : 0000000000160000 x0 : 000000000015f000 Call trace: btrfs_space_info_update_bytes_may_use+0x2c0/0x704 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:230 [inline] block_rsv_release_bytes fs/btrfs/block-rsv.c:154 [inline] btrfs_block_rsv_release+0x3dc/0x4a8 fs/btrfs/block-rsv.c:293 btrfs_release_global_block_rsv+0x38/0x22c fs/btrfs/block-rsv.c:438 btrfs_free_block_groups+0x938/0xcfc fs/btrfs/block-group.c:4307 close_ctree+0x5b8/0xdb4 fs/btrfs/disk-io.c:4401 btrfs_put_super+0x40/0x50 fs/btrfs/super.c:82 generic_shutdown_super+0x130/0x328 fs/super.c:499 kill_anon_super+0x4c/0x74 fs/super.c:1110 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2138 deactivate_locked_super+0xac/0x124 fs/super.c:330 deactivate_super+0xe0/0x100 fs/super.c:361 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1254 __cleanup_mnt+0x20/0x30 fs/namespace.c:1261 task_work_run+0x230/0x2e0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2180/0x3c90 arch/arm64/kernel/signal.c:1305 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:144 [inline] el0_svc+0x94/0x160 arch/arm64/kernel/entry-common.c:648 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 150752 hardirqs last enabled at (150751): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:240 hardirqs last disabled at (150752): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (149690): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (149690): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (149589): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---