------------[ cut here ]------------ WARNING: CPU: 0 PID: 6726 at fs/btrfs/volumes.c:3253 btrfs_remove_chunk+0x1322/0x1840 fs/btrfs/volumes.c:3253 Modules linked in: CPU: 0 PID: 6726 Comm: syz.2.535 Not tainted 5.15.186-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:btrfs_remove_chunk+0x1322/0x1840 fs/btrfs/volumes.c:3253 Code: e9 5b fb ff ff e8 8e ca 2f fe 0f 1f 44 00 00 e8 84 ca 2f fe eb 16 e8 7d ca 2f fe 48 c7 c7 40 80 4b 8a 44 89 f6 e8 4e bf 56 06 <0f> 0b 4c 89 e7 48 c7 c6 a0 83 4b 8a ba b5 0c 00 00 e9 20 fb ff ff RSP: 0018:ffffc90003d1f8c0 EFLAGS: 00010246 RAX: 61732c140aad1b00 RBX: ffff8880261d0001 RCX: 0000000000080000 RDX: ffffc9000f04c000 RSI: 0000000000031d40 RDI: 0000000000031d41 RBP: ffffc90003d1fa70 R08: dffffc0000000000 R09: ffffed1017204f24 R10: ffffed1017204f24 R11: 1ffff11017204f23 R12: ffff888060437580 R13: dffffc0000000000 R14: ffffffffffffffe4 R15: 1ffff1100544a480 FS: 00007fd60aa866c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000a02000 CR3: 000000007c5bd000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000003ca0 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: btrfs_delete_unused_bgs+0x822/0x8d0 fs/btrfs/block-group.c:1432 btrfs_remount+0xe80/0x15b0 fs/btrfs/super.c:2000 reconfigure_super+0x219/0x880 fs/super.c:938 do_remount fs/namespace.c:2670 [inline] path_mount+0xd3e/0x1020 fs/namespace.c:3336 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fd60cc3f929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd60aa86038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd60ce67080 RCX: 00007fd60cc3f929 RDX: 0000000000000000 RSI: 0000200000000100 RDI: 0000000000000000 RBP: 00007fd60ccc1b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000021 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fd60ce67080 R15: 00007ffdf889e978