BTRFS info (device loop3): at unmount dio bytes count 45056 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 1927 at fs/btrfs/block-group.c:159 btrfs_put_block_group fs/btrfs/block-group.c:167 [inline] WARNING: CPU: 1 PID: 1927 at fs/btrfs/block-group.c:159 btrfs_put_block_group+0xa7/0xb0 fs/btrfs/block-group.c:146 Modules linked in: CPU: 1 PID: 1927 Comm: syz-executor.3 Not tainted 6.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:btrfs_put_block_group fs/btrfs/block-group.c:159 [inline] RIP: 0010:btrfs_put_block_group+0xa7/0xb0 fs/btrfs/block-group.c:146 Code: eb a8 5b 48 81 c7 a8 01 00 00 be 03 00 00 00 e9 2f ef 18 00 0f 0b 48 8b 03 48 89 de 48 8d b8 d8 15 00 00 e8 4b 72 00 00 eb a3 <0f> 0b eb 8c 0f 1f 44 00 00 41 55 41 54 49 89 fc 55 53 48 83 ec 08 RSP: 0018:ffffc90001cc7da8 EFLAGS: 00010206 RAX: 0000000000000000 RBX: ffff8881093f5400 RCX: ffff8881093f55c0 RDX: 0000000000000001 RSI: ffffffff82f7fcce RDI: ffff8881093f5400 RBP: ffff8881093f5400 R08: 0000000000000000 R09: 0000607dc8014390 R10: ffffc90001cc7d68 R11: 0000000000000002 R12: ffff88810c2e8138 R13: ffff88810c2e8178 R14: ffff8881093f5580 R15: dead000000000100 FS: 00005555569a7480(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f72ae48f000 CR3: 0000000109f2f000 CR4: 0000000000350ee0 Call Trace: btrfs_free_block_groups+0x2fe/0x4f0 fs/btrfs/block-group.c:4301 close_ctree+0x3c1/0x5f0 fs/btrfs/disk-io.c:4401 generic_shutdown_super+0x70/0x130 fs/super.c:499 kill_anon_super+0xd/0x30 fs/super.c:1110 btrfs_kill_super+0x11/0x20 fs/btrfs/super.c:2138 deactivate_locked_super+0x28/0x90 fs/super.c:330 cleanup_mnt+0xb8/0x150 fs/namespace.c:1254 task_work_run+0x55/0x80 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x16e/0x180 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:297 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6793c7de17 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:00007ffe85df8bf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f6793c7de17