------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: fs/btrfs/block-group.c:4175 at do_chunk_alloc fs/btrfs/block-group.c:4175 [inline], CPU#0: kworker/u4:2/30 WARNING: fs/btrfs/block-group.c:4175 at btrfs_chunk_alloc+0x1079/0x1660 fs/btrfs/block-group.c:4416, CPU#0: kworker/u4:2/30 Modules linked in: CPU: 0 UID: 0 PID: 30 Comm: kworker/u4:2 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 Workqueue: events_unbound btrfs_async_reclaim_data_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:4175 [inline] RIP: 0010:btrfs_chunk_alloc+0x107c/0x1660 fs/btrfs/block-group.c:4416 Code: 58 ae fd e9 80 01 00 00 e8 31 6b 93 fd 84 c0 74 23 e8 48 58 ae fd e9 6d 01 00 00 e8 3e 58 ae fd 48 8d 3d d7 7b 22 0c 44 89 f6 <67> 48 0f b9 3a e9 97 fc ff ff e8 75 51 8d 07 89 c3 31 ff 89 c6 e8 RSP: 0018:ffffc900003877d0 EFLAGS: 00010293 RAX: ffffffff8416f8f2 RBX: ffff888046fd5a70 RCX: ffff88801f14a540 RDX: 0000000000000000 RSI: 00000000ffffffe4 RDI: ffffffff903974d0 RBP: 0000000000000000 R08: ffff88801f14a540 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: 1ffff110024c1216 R13: ffff888041c40001 R14: ffffffffffffffe4 R15: ffff888040af8800 FS: 0000000000000000(0000) GS:ffff88808c8ae000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f97b3773350 CR3: 000000001327c000 CR4: 0000000000352ef0 Call Trace: flush_space+0x3df/0xde0 fs/btrfs/space-info.c:908 do_async_reclaim_data_space+0x137/0x550 fs/btrfs/space-info.c:1448 btrfs_async_reclaim_data_space+0x41/0x90 fs/btrfs/space-info.c:1512 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3397 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3478 kthread+0x389/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess): 0: 58 pop %rax 1: ae scas %es:(%rdi),%al 2: fd std 3: e9 80 01 00 00 jmp 0x188 8: e8 31 6b 93 fd call 0xfd936b3e d: 84 c0 test %al,%al f: 74 23 je 0x34 11: e8 48 58 ae fd call 0xfdae585e 16: e9 6d 01 00 00 jmp 0x188 1b: e8 3e 58 ae fd call 0xfdae585e 20: 48 8d 3d d7 7b 22 0c lea 0xc227bd7(%rip),%rdi # 0xc227bfe 27: 44 89 f6 mov %r14d,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 97 fc ff ff jmp 0xfffffccb 34: e8 75 51 8d 07 call 0x78d51ae 39: 89 c3 mov %eax,%ebx 3b: 31 ff xor %edi,%edi 3d: 89 c6 mov %eax,%esi 3f: e8 .byte 0xe8