------------[ cut here ]------------ WARNING: CPU: 1 PID: 5975 at fs/btrfs/space-info.h:198 btrfs_space_info_update_bytes_may_use+0x2c0/0x704 Modules linked in: CPU: 1 PID: 5975 Comm: syz-executor376 Not tainted 6.4.0-rc7-syzkaller-ge40939bbfc68 #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 : ffff8000966c74e0 x29: ffff8000966c74f0 x28: 0000000000000000 x27: 1fffe0001b8b750c x26: dfff800000000000 x25: ffff80008debd358 x24: 0000000000000002 x23: 0000000000000005 x22: 000000000015f000 x21: 0000000000160000 x20: ffff0000dc5ba860 x19: 0000000000000000 x18: 1fffe0001963a30f x17: ffff80008debd000 x16: ffff80008a443320 x15: 0000000000000000 x14: 1ffff00011bd80ac x13: dfff800000000000 x12: ffff700012cd8e90 x11: 0000000000000001 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000dc458000 x7 : ffff80008232d358 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008032a638 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/0xccc fs/btrfs/block-group.c:4274 close_ctree+0x5b8/0xdbc fs/btrfs/disk-io.c:4652 btrfs_put_super+0x40/0x50 fs/btrfs/super.c:82 generic_shutdown_super+0x130/0x328 fs/super.c:500 kill_anon_super+0x4c/0x74 fs/super.c:1107 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2144 deactivate_locked_super+0xac/0x124 fs/super.c:331 deactivate_super+0xe0/0x100 fs/super.c:362 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1177 __cleanup_mnt+0x20/0x30 fs/namespace.c:1184 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: 66626 hardirqs last enabled at (66625): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:240 hardirqs last disabled at (66626): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (66446): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (66446): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:600 softirqs last disabled at (65709): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---