------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: fs/btrfs/extent-tree.c:3181 at do_free_extent_accounting fs/btrfs/extent-tree.c:3181 [inline], CPU#0: kworker/u4:5/74 WARNING: fs/btrfs/extent-tree.c:3181 at __btrfs_free_extent+0x3c6e/0x4570 fs/btrfs/extent-tree.c:3554, CPU#0: kworker/u4:5/74 Modules linked in: CPU: 0 UID: 0 PID: 74 Comm: kworker/u4:5 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_free_extent_accounting fs/btrfs/extent-tree.c:3181 [inline] RIP: 0010:__btrfs_free_extent+0x3c70/0x4570 fs/btrfs/extent-tree.c:3554 Code: e9 c8 05 00 00 e8 10 86 c2 fd 84 c0 0f 84 f2 00 00 00 e8 03 6a dd fd e9 b1 05 00 00 e8 f9 69 dd fd 48 8d 3d 12 82 54 0c 89 de <67> 48 0f b9 3a e9 c1 e0 ff ff e8 e1 69 dd fd eb 05 e8 da 69 dd fd RSP: 0018:ffffc90000b5f260 EFLAGS: 00010293 RAX: ffffffff83e7b9c7 RBX: 00000000fffffffe RCX: ffff888000300000 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: ffffffff903c3be0 RBP: ffffc90000b5f410 R08: ffff888000300000 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: dffffc0000000000 R13: ffff8880472f5be8 R14: 0000000000000000 R15: ffff8880366d8001 FS: 0000000000000000(0000) GS:ffff88808c826000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe6f0b51c80 CR3: 0000000037dfb000 CR4: 0000000000352ef0 Call Trace: run_delayed_tree_ref fs/btrfs/extent-tree.c:1824 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1851 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2058 [inline] __btrfs_run_delayed_refs+0x1870/0x4710 fs/btrfs/extent-tree.c:2133 btrfs_run_delayed_refs+0xe6/0x3b0 fs/btrfs/extent-tree.c:2245 flush_space+0x574/0xe20 fs/btrfs/space-info.c:-1 do_async_reclaim_metadata_space+0x3fc/0x960 fs/btrfs/space-info.c:1211 btrfs_async_reclaim_metadata_space+0x89/0xe0 fs/btrfs/space-info.c:1278 process_one_work kernel/workqueue.c:3302 [inline] process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3385 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3466 kthread+0x388/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: e9 c8 05 00 00 jmp 0x5cd 5: e8 10 86 c2 fd call 0xfdc2861a a: 84 c0 test %al,%al c: 0f 84 f2 00 00 00 je 0x104 12: e8 03 6a dd fd call 0xfddd6a1a 17: e9 b1 05 00 00 jmp 0x5cd 1c: e8 f9 69 dd fd call 0xfddd6a1a 21: 48 8d 3d 12 82 54 0c lea 0xc548212(%rip),%rdi # 0xc54823a 28: 89 de mov %ebx,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 c1 e0 ff ff jmp 0xffffe0f5 34: e8 e1 69 dd fd call 0xfddd6a1a 39: eb 05 jmp 0x40 3b: e8 da 69 dd fd call 0xfddd6a1a