------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: fs/btrfs/extent-tree.c:3105 at do_free_extent_accounting fs/btrfs/extent-tree.c:3105 [inline], CPU#0: kworker/u4:9/1080 WARNING: fs/btrfs/extent-tree.c:3105 at __btrfs_free_extent+0x3a28/0x4350 fs/btrfs/extent-tree.c:3474, CPU#0: kworker/u4:9/1080 Modules linked in: CPU: 0 UID: 0 PID: 1080 Comm: kworker/u4:9 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:3105 [inline] RIP: 0010:__btrfs_free_extent+0x3a2b/0x4350 fs/btrfs/extent-tree.c:3474 Code: c0 05 00 00 e8 96 16 c4 fd 84 c0 0f 84 f3 00 00 00 e8 39 0d df fd e9 a9 05 00 00 e8 2f 0d df fd 48 8d 3d 58 15 34 0c 44 89 ee <67> 48 0f b9 3a e9 af e2 ff ff e8 16 0d df fd eb 05 e8 0f 0d df fd RSP: 0018:ffffc90001627280 EFLAGS: 00010293 RAX: ffffffff83e68f01 RBX: ffff888011af3060 RCX: ffff88803674a480 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: ffffffff901aa460 RBP: ffffc90001627430 R08: ffff88803674a480 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: ffff888012e0d8f0 R13: 00000000fffffffe R14: 0000000000000000 R15: ffff888040fe0001 FS: 0000000000000000(0000) GS:ffff88808ca5b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000000ea000 CR3: 000000001ef33000 CR4: 0000000000352ef0 Call Trace: run_one_delayed_ref fs/btrfs/extent-tree.c:-1 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2003 [inline] __btrfs_run_delayed_refs+0x15e7/0x4240 fs/btrfs/extent-tree.c:2078 btrfs_run_delayed_refs+0xe6/0x3b0 fs/btrfs/extent-tree.c:2190 flush_space+0x28d/0xd80 fs/btrfs/space-info.c:-1 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: 00 00 add %al,(%rax) 2: e8 96 16 c4 fd call 0xfdc4169d 7: 84 c0 test %al,%al 9: 0f 84 f3 00 00 00 je 0x102 f: e8 39 0d df fd call 0xfddf0d4d 14: e9 a9 05 00 00 jmp 0x5c2 19: e8 2f 0d df fd call 0xfddf0d4d 1e: 48 8d 3d 58 15 34 0c lea 0xc341558(%rip),%rdi # 0xc34157d 25: 44 89 ee mov %r13d,%esi * 28: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2d: e9 af e2 ff ff jmp 0xffffe2e1 32: e8 16 0d df fd call 0xfddf0d4d 37: eb 05 jmp 0x3e 39: e8 0f 0d df fd call 0xfddf0d4d