------------[ cut here ]------------ WARNING: CPU: 1 PID: 1471 at fs/btrfs/block-rsv.c:473 btrfs_release_global_block_rsv+0xc6/0xd0 fs/btrfs/block-rsv.c:473 Modules linked in: CPU: 1 PID: 1471 Comm: syz-executor.0 Not tainted 5.16.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:btrfs_release_global_block_rsv+0xc6/0xd0 fs/btrfs/block-rsv.c:473 Code: 0f 0b 90 48 83 bb a0 03 00 00 00 74 a2 90 0f 0b 90 48 83 bb a8 03 00 00 00 74 9e 90 0f 0b 90 48 83 bb 18 04 00 00 00 74 9a 90 <0f> 0b 90 eb 94 0f 1f 44 00 00 41 56 41 55 41 54 55 53 48 8b 46 38 RSP: 0018:ffffc900008ffdd8 EFLAGS: 00010206 RAX: 00000000000e0000 RBX: ffff88817d904000 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff82d8ff75 RDI: 00000000ffffffff RBP: ffff88817a972c00 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000001c01 R12: ffff88817d904130 R13: ffff88817d905130 R14: dead000000000122 R15: dead000000000100 FS: 0000555556206480(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4979c69988 CR3: 00000001791f8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_free_block_groups+0x31d/0x3c0 fs/btrfs/block-group.c:3965 close_ctree+0x2e9/0x32a fs/btrfs/disk-io.c:4623 generic_shutdown_super+0x6c/0x110 fs/super.c:465 kill_anon_super+0x9/0x20 fs/super.c:1059 btrfs_kill_super+0xd/0x20 fs/btrfs/super.c:2348 deactivate_locked_super+0x27/0x90 fs/super.c:335 cleanup_mnt+0x12c/0x190 fs/namespace.c:1137 task_work_run+0x54/0x80 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x199/0x1a0 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x13/0x30 kernel/entry/common.c:300 do_syscall_64+0x44/0x80 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fbddf215e17 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:00007fff455bc038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fbddf215e17 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007fff455bc0f0 RBP: 00007fff455bc0f0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff455bd1b0 R13: 00007fbddf25f3b9 R14: 0000000000015dff R15: 0000000000000005