BTRFS info (device loop0): balance: start -s ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: fs/btrfs/block-group.c:2918 at btrfs_create_pending_block_groups+0x14ae/0x1b40 fs/btrfs/block-group.c:2918, CPU#0: syz.0.0/5333 Modules linked in: CPU: 0 UID: 0 PID: 5333 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+0x14b0/0x1b40 fs/btrfs/block-group.c:2918 Code: 06 6e ae fd e9 fc 01 00 00 e8 bc 79 93 fd 84 c0 74 22 e8 f3 6d ae fd e9 e9 01 00 00 e8 e9 6d ae fd 48 8d 3d 42 2e 23 0c 89 de <67> 48 0f b9 3a e9 bc fc ff ff e8 b1 dd 92 07 41 89 c4 31 ff 89 c6 RSP: 0018:ffffc900032df700 EFLAGS: 00010283 RAX: ffffffff84175cc7 RBX: 00000000ffffffe4 RCX: 0000000000100000 RDX: ffffc90021003000 RSI: 00000000ffffffe4 RDI: ffffffff903a8b10 RBP: ffffc900032df970 R08: ffff8880002f0000 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000002 R12: dffffc0000000000 R13: fffff5200065befc R14: 0000000000000000 R15: ffff8880411a4001 FS: 00007f40767d46c0(0000) GS:ffff88808c885000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f40767d3ff8 CR3: 0000000042a3f000 CR4: 0000000000352ef0 Call Trace: __btrfs_end_transaction+0x140/0x650 fs/btrfs/transaction.c:1091 btrfs_inc_block_group_ro+0x647/0x7c0 fs/btrfs/block-group.c:3219 btrfs_relocate_block_group+0x3bb/0xc40 fs/btrfs/relocation.c:5377 btrfs_relocate_chunk+0x115/0x820 fs/btrfs/volumes.c:3598 __btrfs_balance+0x1db0/0x2ae0 fs/btrfs/volumes.c:4509 btrfs_balance+0xaf3/0x11b0 fs/btrfs/volumes.c:4896 btrfs_ioctl_balance+0x3d3/0x610 fs/btrfs/ioctl.c:3453 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+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f407a39cdd9 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:00007f40767d3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f407a616090 RCX: 00007f407a39cdd9 RDX: 0000200000000200 RSI: 00000000c4009420 RDI: 0000000000000006 RBP: 00007f407a432d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f407a616128 R14: 00007f407a616090 R15: 00007ffed24fbf18 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 6e outsb %ds:(%rsi),(%dx) 1: ae scas %es:(%rdi),%al 2: fd std 3: e9 fc 01 00 00 jmp 0x204 8: e8 bc 79 93 fd call 0xfd9379c9 d: 84 c0 test %al,%al f: 74 22 je 0x33 11: e8 f3 6d ae fd call 0xfdae6e09 16: e9 e9 01 00 00 jmp 0x204 1b: e8 e9 6d ae fd call 0xfdae6e09 20: 48 8d 3d 42 2e 23 0c lea 0xc232e42(%rip),%rdi # 0xc232e69 27: 89 de mov %ebx,%esi * 29: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2e: e9 bc fc ff ff jmp 0xfffffcef 33: e8 b1 dd 92 07 call 0x792dde9 38: 41 89 c4 mov %eax,%r12d 3b: 31 ff xor %edi,%edi 3d: 89 c6 mov %eax,%esi