BTRFS info (device loop3): scrub: started on devid 1 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 4743 at fs/btrfs/block-group.c:3715 do_chunk_alloc fs/btrfs/block-group.c:3715 [inline] WARNING: CPU: 0 PID: 4743 at fs/btrfs/block-group.c:3715 btrfs_chunk_alloc+0xdab/0x1010 fs/btrfs/block-group.c:3957 Modules linked in: CPU: 0 PID: 4743 Comm: syz.3.70 Not tainted 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:3715 [inline] RIP: 0010:btrfs_chunk_alloc+0xdab/0x1010 fs/btrfs/block-group.c:3957 Code: fd 48 c7 c7 40 92 d1 8a 89 ee e8 c0 c1 c8 fd 0f 0b e9 44 fd ff ff e8 f4 96 fc fd 48 c7 c7 40 92 d1 8a 44 89 f6 e8 a5 c1 c8 fd <0f> 0b e9 89 fd ff ff e8 d9 96 fc fd 48 c7 c7 40 92 d1 8a 89 ee e8 RSP: 0018:ffffc90005ecf868 EFLAGS: 00010246 RAX: f8e65b26e1bb7e00 RBX: ffff88802de48001 RCX: 0000000000080000 RDX: ffffc900115fc000 RSI: 00000000000308b5 RDI: 00000000000308b6 RBP: 0000000000000000 R08: dffffc0000000000 R09: ffffed10171c4f34 R10: ffffed10171c4f34 R11: 1ffff110171c4f33 R12: ffff888027bd8000 R13: dffffc0000000000 R14: ffffffffffffffe4 R15: ffff88805638d000 FS: 00007f9acfb9c6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c40e4e6 CR3: 00000000589a2000 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:2802 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:0x7f9aced8ebe9 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:00007f9acfb9c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f9acefc6180 RCX: 00007f9aced8ebe9 RDX: 0000200000000000 RSI: 00000000c400941b RDI: 0000000000000007 RBP: 00007f9acee11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9acefc6218 R14: 00007f9acefc6180 R15: 00007ffd76972f18