------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: fs/btrfs/block-group.c:4012 at do_chunk_alloc fs/btrfs/block-group.c:4012 [inline], CPU#0: kworker/u4:17/2960 WARNING: fs/btrfs/block-group.c:4012 at btrfs_chunk_alloc+0x101d/0x15d0 fs/btrfs/block-group.c:4253, CPU#0: kworker/u4:17/2960 Modules linked in: CPU: 0 UID: 0 PID: 2960 Comm: kworker/u4:17 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_metadata_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:4012 [inline] RIP: 0010:btrfs_chunk_alloc+0x101f/0x15d0 fs/btrfs/block-group.c:4253 Code: b7 de c1 fd e9 6d 01 00 00 e8 0d 8d a7 fd 84 c0 74 22 e8 a4 de c1 fd e9 5a 01 00 00 e8 9a de c1 fd 48 8d 3d 33 85 d7 0b 89 de <67> 48 0f b9 3a e9 b3 fc ff ff e8 b2 da 79 07 41 89 c6 31 ff 89 c6 RSP: 0018:ffffc900032ef730 EFLAGS: 00010293 RAX: ffffffff8400c9c6 RBX: ffffffffffffffe4 RCX: ffff888040e10000 RDX: 0000000000000000 RSI: 00000000ffffffe4 RDI: ffffffff8fd84f00 RBP: 0000000000000000 R08: ffff888040e10000 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: 1ffff1100836e816 R13: ffff888012013060 R14: ffff888041c64001 R15: ffff888041f12800 FS: 0000000000000000(0000) GS:ffff88808cf1d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005607293c0168 CR3: 000000003669a000 CR4: 0000000000352ef0 Call Trace: flush_space+0x353/0xd30 fs/btrfs/space-info.c:898 do_async_reclaim_metadata_space+0x11e/0x350 fs/btrfs/space-info.c:1189 btrfs_async_reclaim_metadata_space+0x89/0xe0 fs/btrfs/space-info.c:1256 process_one_work kernel/workqueue.c:3257 [inline] process_scheduled_works+0xaec/0x17a0 kernel/workqueue.c:3340 worker_thread+0x89f/0xd90 kernel/workqueue.c:3421 kthread+0x726/0x8b0 kernel/kthread.c:463 ret_from_fork+0x51b/0xa40 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 ---------------- Code disassembly (best guess): 0: b7 de mov $0xde,%bh 2: c1 fd e9 sar $0xe9,%ebp 5: 6d insl (%dx),%es:(%rdi) 6: 01 00 add %eax,(%rax) 8: 00 e8 add %ch,%al a: 0d 8d a7 fd 84 or $0x84fda78d,%eax f: c0 74 22 e8 a4 shlb $0xa4,-0x18(%rdx,%riz,1) 14: de c1 faddp %st,%st(1) 16: fd std 17: e9 5a 01 00 00 jmp 0x176 1c: e8 9a de c1 fd call 0xfdc1debb 21: 48 8d 3d 33 85 d7 0b lea 0xbd78533(%rip),%rdi # 0xbd7855b 28: 89 de mov %ebx,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 b3 fc ff ff jmp 0xfffffce7 34: e8 b2 da 79 07 call 0x779daeb 39: 41 89 c6 mov %eax,%r14d 3c: 31 ff xor %edi,%edi 3e: 89 c6 mov %eax,%esi