------------[ cut here ]------------ btrfs_abort_should_print_stack(__error) WARNING: fs/btrfs/block-group.c:2929 at btrfs_create_pending_block_groups+0x13d8/0x15e0 fs/btrfs/block-group.c:2929, CPU#1: syz.3.51/6184 Modules linked in: CPU: 1 UID: 0 PID: 6184 Comm: syz.3.51 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 RIP: 0010:btrfs_create_pending_block_groups+0x13d8/0x15e0 fs/btrfs/block-group.c:2929 Code: 83 fb f4 75 63 e8 f8 07 7a fd eb 65 e8 f1 07 7a fd eb 1a e8 ea 07 7a fd 49 be 00 00 00 00 00 fc ff df eb 09 e8 d9 07 7a fd 90 <0f> 0b 90 f7 db e9 47 fd ff ff e8 c9 07 7a fd eb 10 e8 c2 07 7a fd RSP: 0018:ffffc9000595f7a0 EFLAGS: 00010287 RAX: ffffffff844f0997 RBX: 00000000ffffffe4 RCX: 0000000000080000 RDX: ffffc90010589000 RSI: 000000000000c370 RDI: 000000000000c371 RBP: ffffc9000595fa08 R08: ffff888078fa3e80 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000002 R12: ffff8880528187a0 R13: fffff52000b2bf10 R14: dffffc0000000000 R15: ffff888052818960 FS: 00007fb6c00496c0(0000) GS:ffff88812350a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1c0fd65080 CR3: 0000000036c1d000 CR4: 0000000000350ef0 Call Trace: __btrfs_end_transaction+0x140/0x640 fs/btrfs/transaction.c:1119 btrfs_inc_block_group_ro+0x64b/0x7d0 fs/btrfs/block-group.c:3234 scrub_enumerate_chunks+0x7d1/0x13b0 fs/btrfs/scrub.c:2797 btrfs_scrub_dev+0x6bb/0xf80 fs/btrfs/scrub.c:3170 btrfs_ioctl_scrub+0x23f/0x4c0 fs/btrfs/ioctl.c:3099 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb6bf19fb19 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb6c0049028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb6bf426090 RCX: 00007fb6bf19fb19 RDX: 0000200000000000 RSI: 00000000c400941b RDI: 0000000000000004 RBP: 00007fb6bf237b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb6bf426128 R14: 00007fb6bf426090 R15: 00007ffe37c7c9c8