BTRFS info (device loop0): balance: start -s ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: fs/btrfs/block-group.c:2790 at btrfs_create_pending_block_groups+0x1270/0x1870 fs/btrfs/block-group.c:2790, CPU#0: syz.0.0/5326 Modules linked in: CPU: 0 UID: 0 PID: 5326 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+0x1273/0x1870 fs/btrfs/block-group.c:2790 Code: 5a bd fd e9 f8 01 00 00 e8 4a 7e a2 fd 84 c0 74 23 e8 91 5a bd fd e9 e5 01 00 00 e8 87 5a bd fd 48 8d 3d 50 91 f1 0b 44 89 f6 <67> 48 0f b9 3a e9 d3 fd ff ff e8 0e d8 91 07 41 89 c7 31 ff 89 c6 RSP: 0018:ffffc9000e7f76e0 EFLAGS: 00010287 RAX: ffffffff84072c69 RBX: ffff888042308001 RCX: 0000000000100000 RDX: ffffc900200b1000 RSI: 00000000ffffffe4 RDI: ffffffff8ff8bdc0 RBP: ffffc9000e7f7948 R08: ffff888000b7a4c0 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000002 R12: 0000000000000000 R13: fffff52001cfeef8 R14: 00000000ffffffe4 R15: ffff888037d18000 FS: 00007f2593d1c6c0(0000) GS:ffff88808ccea000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0a4c5f2b60 CR3: 000000001fbe3000 CR4: 0000000000352ef0 Call Trace: __btrfs_end_transaction+0x140/0x640 fs/btrfs/transaction.c:1079 btrfs_inc_block_group_ro+0x63e/0x6f0 fs/btrfs/block-group.c:3086 btrfs_relocate_block_group+0x3f1/0xc70 fs/btrfs/relocation.c:3923 btrfs_relocate_chunk+0x12f/0x5c0 fs/btrfs/volumes.c:3426 __btrfs_balance+0x1921/0x2520 fs/btrfs/volumes.c:4199 btrfs_balance+0xac2/0x11b0 fs/btrfs/volumes.c:4573 btrfs_ioctl_balance+0x3d3/0x610 fs/btrfs/ioctl.c:3525 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:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2592d9aeb9 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:00007f2593d1c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f2593016090 RCX: 00007f2592d9aeb9 RDX: 0000200000000200 RSI: 00000000c4009420 RDI: 000000000000000a RBP: 00007f2592e08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2593016128 R14: 00007f2593016090 R15: 00007ffe3a364418 ---------------- Code disassembly (best guess): 0: 5a pop %rdx 1: bd fd e9 f8 01 mov $0x1f8e9fd,%ebp 6: 00 00 add %al,(%rax) 8: e8 4a 7e a2 fd call 0xfda27e57 d: 84 c0 test %al,%al f: 74 23 je 0x34 11: e8 91 5a bd fd call 0xfdbd5aa7 16: e9 e5 01 00 00 jmp 0x200 1b: e8 87 5a bd fd call 0xfdbd5aa7 20: 48 8d 3d 50 91 f1 0b lea 0xbf19150(%rip),%rdi # 0xbf19177 27: 44 89 f6 mov %r14d,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 d3 fd ff ff jmp 0xfffffe07 34: e8 0e d8 91 07 call 0x791d847 39: 41 89 c7 mov %eax,%r15d 3c: 31 ff xor %edi,%edi 3e: 89 c6 mov %eax,%esi