------------[ cut here ]------------ WARNING: CPU: 0 PID: 4489 at fs/btrfs/block-group.c:3692 do_chunk_alloc fs/btrfs/block-group.c:3692 [inline] WARNING: CPU: 0 PID: 4489 at fs/btrfs/block-group.c:3692 btrfs_chunk_alloc+0xdab/0x1010 fs/btrfs/block-group.c:3934 Modules linked in: CPU: 0 PID: 4489 Comm: syz.4.14 Not tainted 6.1.147-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3692 [inline] RIP: 0010:btrfs_chunk_alloc+0xdab/0x1010 fs/btrfs/block-group.c:3934 Code: fd 48 c7 c7 a0 8b d1 8a 89 ee e8 f0 3a c9 fd 0f 0b e9 44 fd ff ff e8 a4 18 fd fd 48 c7 c7 a0 8b d1 8a 44 89 f6 e8 d5 3a c9 fd <0f> 0b e9 89 fd ff ff e8 89 18 fd fd 48 c7 c7 a0 8b d1 8a 89 ee e8 RSP: 0018:ffffc9000477f868 EFLAGS: 00010246 RAX: 7302178dbcba8100 RBX: ffff88805544c001 RCX: 0000000000080000 RDX: ffffc9001033e000 RSI: 000000000001a4d6 RDI: 000000000001a4d7 RBP: 0000000000000000 R08: dffffc0000000000 R09: ffffed10171c4f34 R10: ffffed10171c4f34 R11: 1ffff110171c4f33 R12: ffff88807ac55000 R13: dffffc0000000000 R14: ffffffffffffffe4 R15: ffff8880554d6000 FS: 00007f776ed9f6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f776ed9ef98 CR3: 00000000560e2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_inc_block_group_ro+0x410/0x700 fs/btrfs/block-group.c:2779 scrub_enumerate_chunks+0x80e/0x1680 fs/btrfs/scrub.c:4007 btrfs_scrub_dev+0x7d2/0x1180 fs/btrfs/scrub.c:4411 btrfs_ioctl_scrub+0x225/0x350 fs/btrfs/ioctl.c:4109 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f776df8eb69 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:00007f776ed9f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f776e1b6160 RCX: 00007f776df8eb69 RDX: 0000200000000000 RSI: 00000000c400941b RDI: 0000000000000007 RBP: 00007f776e011df1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f776e1b6160 R15: 00007fffa5375128