------------[ cut here ]------------ WARNING: CPU: 1 PID: 5521 at fs/btrfs/space-info.h:199 btrfs_space_info_update_bytes_may_use+0x21e/0x5b0 Modules linked in: CPU: 1 PID: 5521 Comm: syz-executor.0 Not tainted 6.3.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:btrfs_space_info_update_bytes_may_use+0x21e/0x5b0 Code: 0d 0f 90 af 7c 0f 84 fd 00 00 00 4d 85 f6 79 28 43 80 3c 27 00 74 08 4c 89 ef e8 2d c3 6b fe 48 8b 44 24 18 49 39 45 00 73 0e <0f> 0b 45 31 f6 43 80 3c 27 00 75 1c eb 22 43 80 3c 27 00 74 08 4c RSP: 0018:ffffc900046bf9f8 EFLAGS: 00010287 RAX: 00000000000e0000 RBX: 0000000000000001 RCX: 0000000080000002 RDX: 0000000000000000 RSI: ffffffff898a78c0 RDI: ffffffff89db8860 RBP: 0000000000000005 R08: dffffc0000000000 R09: fffffbfff19b5e16 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8880259b4860 R14: fffffffffff20000 R15: 1ffff11004b3690c FS: 00005555574bb400(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560990e37950 CR3: 000000001a599000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_block_rsv_release+0x363/0x430 btrfs_release_global_block_rsv+0x2b/0x190 btrfs_free_block_groups+0x9f2/0xc80 close_ctree+0x672/0xb80 generic_shutdown_super+0x113/0x2d0 kill_anon_super+0x36/0x60 btrfs_kill_super+0x3c/0x50 deactivate_locked_super+0x75/0xd0 cleanup_mnt+0x358/0x3e0 task_work_run+0x20a/0x290 exit_to_user_mode_loop+0xd1/0xf0 exit_to_user_mode_prepare+0xb1/0x140 syscall_exit_to_user_mode+0x54/0x2d0 do_syscall_64+0x4d/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f26cbe8ca17 Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 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 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffee18acde8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f26cbe8ca17 RDX: 00007ffee18aceb9 RSI: 000000000000000a RDI: 00007ffee18aceb0 RBP: 00007ffee18aceb0 R08: 00000000ffffffff R09: 00007ffee18acc80 R10: 00005555574bc8b3 R11: 0000000000000246 R12: 00007f26cbee5826 R13: 00007ffee18adf70 R14: 00005555574bc810 R15: 00007ffee18adfb0