BTRFS info (device loop0): last unmount of filesystem 24c7a497-3402-47dd-bef8-82358f5f30e0 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1472 at fs/btrfs/space-info.h:122 btrfs_space_info_update_bytes_may_use+0xb3/0x1b0 fs/btrfs/space-info.h:122 Modules linked in: CPU: 0 PID: 1472 Comm: syz-executor.0 Not tainted 6.1.81-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 RIP: 0010:btrfs_space_info_update_bytes_may_use+0xb3/0x1b0 fs/btrfs/space-info.h:122 Code: 05 3a 4a 25 02 76 3e 89 c0 48 0f a3 05 2e 48 25 02 73 09 e8 4f 2b a2 ff 84 c0 74 38 49 8b 46 60 48 85 db 79 0b 4c 39 e8 73 06 <0f> 0b 31 c0 eb 03 48 01 d8 49 89 46 60 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc90001eabcb8 EFLAGS: 00010287 RAX: 00000000000df000 RBX: fffffffffff20000 RCX: 0000000000000005 RDX: fffffffffff20000 RSI: ffffffff83300a8b RDI: ffffffff831c04fc RBP: ffff888106f3ac00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 000000000000ae42 R12: ffff8881092bc000 R13: 00000000000e0000 R14: ffff888106f3ac00 R15: 00000000000e0000 FS: 00005555555da480(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb869ac5440 CR3: 000000010deea000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:154 [inline] block_rsv_release_bytes fs/btrfs/block-rsv.c:152 [inline] btrfs_block_rsv_release+0x14a/0x180 fs/btrfs/block-rsv.c:296 btrfs_release_global_block_rsv+0x19/0xd0 fs/btrfs/block-rsv.c:469 btrfs_free_block_groups+0x32c/0x480 fs/btrfs/block-group.c:4182 close_ctree+0x2a8/0x551 fs/btrfs/disk-io.c:4760 generic_shutdown_super+0x6c/0x130 fs/super.c:501 kill_anon_super+0xe/0x20 fs/super.c:1117 btrfs_kill_super+0xd/0x20 fs/btrfs/super.c:2449 deactivate_locked_super+0x26/0x80 fs/super.c:332 cleanup_mnt+0xf5/0x140 fs/namespace.c:1186 task_work_run+0x79/0xa0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xa9/0xc0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x64/0xd0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x28/0x1f0 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd89487de17 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffdbf2a07d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fd89487de17 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffdbf2a0890 RBP: 00007ffdbf2a0890 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffdbf2a1950 R13: 00007fd8948c73b9 R14: 000000000000b315 R15: 0000000000000003