------------[ cut here ]------------ WARNING: CPU: 0 PID: 6691 at fs/btrfs/space-info.h:208 btrfs_space_info_update_bytes_may_use+0x2f0/0x75c Modules linked in: CPU: 0 PID: 6691 Comm: syz-executor.0 Not tainted 6.9.0-rc4-syzkaller-g6a71d2909427 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 80401005 (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 : ffff8000a0537820 x29: ffff8000a0537830 x28: 0000000000000000 x27: 1fffe0001a736b0c x26: dfff800000000000 x25: ffff80008ee7d568 x24: 0000000000000001 x23: 0000000000000005 x22: 0000000000009000 x21: 0000000000160000 x20: ffff0000d39b5860 x19: 0000000000000000 x18: 0000000000000000 x17: 0000000000000000 x16: ffff80008ae725bc x15: ffff7000140a6ef8 x14: 1ffff000140a6ef8 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff7000140a6ef8 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000cf9d9e40 x7 : ffff8000823e1d58 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008034cea4 x2 : ffffffffffea0000 x1 : 0000000000160000 x0 : 0000000000009000 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: 491028 hardirqs last enabled at (491027): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (491028): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (490388): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (490388): [] __do_softirq+0xb10/0xd2c kernel/softirq.c:583 softirqs last disabled at (490363): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 ---[ end trace 0000000000000000 ]--- EXT4-fs (loop0): unmounting filesystem 00000000-0000-0000-0000-000000000000. XFS (loop0): Unmounting Filesystem c496e05e-540d-4c72-b591-04d79d8b4eeb