------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: fs/btrfs/block-group.c:4106 at do_chunk_alloc fs/btrfs/block-group.c:4106 [inline], CPU#0: kworker/u4:8/1078 WARNING: fs/btrfs/block-group.c:4106 at btrfs_chunk_alloc+0x101d/0x15e0 fs/btrfs/block-group.c:4347, CPU#0: kworker/u4:8/1078 Modules linked in: CPU: 0 UID: 0 PID: 1078 Comm: kworker/u4:8 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:4106 [inline] RIP: 0010:btrfs_chunk_alloc+0x101f/0x15e0 fs/btrfs/block-group.c:4347 Code: 97 07 b2 fd e9 6d 01 00 00 e8 8d 11 97 fd 84 c0 74 22 e8 84 07 b2 fd e9 5a 01 00 00 e8 7a 07 b2 fd 48 8d 3d 23 c1 07 0c 89 de <67> 48 0f b9 3a e9 b3 fc ff ff e8 f2 e3 9b 07 41 89 c6 31 ff 89 c6 RSP: 0018:ffffc900056076f0 EFLAGS: 00010293 RAX: ffffffff841393f6 RBX: ffffffffffffffe4 RCX: ffff888032fa2480 RDX: 0000000000000000 RSI: 00000000ffffffe4 RDI: ffffffff901b5520 RBP: 0000000000000000 R08: ffff888032fa2480 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: 1ffff11006c36716 R13: ffff888048454188 R14: ffff888036578001 R15: ffff8880335fe000 FS: 0000000000000000(0000) GS:ffff88808ca58000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000173000 CR3: 0000000011df1000 CR4: 0000000000352ef0 Call Trace: flush_space+0x353/0xd80 fs/btrfs/space-info.c:896 do_async_reclaim_metadata_space+0x3fc/0x960 fs/btrfs/space-info.c:1187 btrfs_async_reclaim_metadata_space+0x89/0xe0 fs/btrfs/space-info.c:1254 process_one_work kernel/workqueue.c:3275 [inline] process_scheduled_works+0xb02/0x1830 kernel/workqueue.c:3358 worker_thread+0xa50/0xfc0 kernel/workqueue.c:3439 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: b2 fd mov $0xfd,%dl 2: e9 6d 01 00 00 jmp 0x174 7: e8 8d 11 97 fd call 0xfd971199 c: 84 c0 test %al,%al e: 74 22 je 0x32 10: e8 84 07 b2 fd call 0xfdb20799 15: e9 5a 01 00 00 jmp 0x174 1a: e8 7a 07 b2 fd call 0xfdb20799 1f: 48 8d 3d 23 c1 07 0c lea 0xc07c123(%rip),%rdi # 0xc07c149 26: 89 de mov %ebx,%esi * 28: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2d: e9 b3 fc ff ff jmp 0xfffffce5 32: e8 f2 e3 9b 07 call 0x79be429 37: 41 89 c6 mov %eax,%r14d 3a: 31 ff xor %edi,%edi 3c: 89 c6 mov %eax,%esi