------------[ cut here ]------------ btrfs_abort_should_print_stack(__error) WARNING: fs/btrfs/block-group.c:2941 at btrfs_create_pending_block_groups+0x13f6/0x15e0 fs/btrfs/block-group.c:2941, CPU#0: syz.0.0/5356 Modules linked in: CPU: 0 UID: 0 PID: 5356 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:btrfs_create_pending_block_groups+0x13f6/0x15e0 fs/btrfs/block-group.c:2941 Code: 00 fc ff df eb 09 e8 39 37 79 fd 90 0f 0b 90 f7 db e9 47 fd ff ff e8 29 37 79 fd eb 10 e8 22 37 79 fd eb 09 e8 1b 37 79 fd 90 <0f> 0b 90 48 8b 5c 24 18 44 89 e1 f7 d9 e9 47 fc ff ff e8 03 37 79 RSP: 0018:ffffc9000e6d77a0 EFLAGS: 00010287 RAX: ffffffff844fefe5 RBX: ffff888051be8001 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 00000000000072b7 RDI: 00000000000072b8 RBP: ffffc9000e6d7a10 R08: ffff88803591a580 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000002 R12: 00000000ffffffe4 R13: fffff52001cdaf10 R14: dffffc0000000000 R15: ffff88800c17a1d0 FS: 00007fde5dfa46c0(0000) GS:ffff88808aa01000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f50880b2000 CR3: 0000000013e52000 CR4: 0000000000352ef0 Call Trace: btrfs_commit_transaction+0x2c6/0x3010 fs/btrfs/transaction.c:2288 btrfs_quota_enable+0x1274/0x1f70 fs/btrfs/qgroup.c:1241 btrfs_ioctl_quota_ctl+0x186/0x1f0 fs/btrfs/ioctl.c:3581 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:0x7fde5d19f559 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:00007fde5dfa3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fde5d426090 RCX: 00007fde5d19f559 RDX: 0000200000006380 RSI: 00000000c0109428 RDI: 0000000000000008 RBP: 00007fde5d236b50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fde5d426128 R14: 00007fde5d426090 R15: 00007ffdc6bc6268