------------[ 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:8/1049 WARNING: fs/btrfs/extent-tree.c:3105 at __btrfs_free_extent+0x3a28/0x4350 fs/btrfs/extent-tree.c:3474, CPU#0: kworker/u4:8/1049 Modules linked in: CPU: 0 UID: 0 PID: 1049 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_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 36 15 c4 fd 84 c0 0f 84 f3 00 00 00 e8 d9 0b df fd e9 a9 05 00 00 e8 cf 0b df fd 48 8d 3d f8 10 34 0c 44 89 ee <67> 48 0f b9 3a e9 af e2 ff ff e8 b6 0b df fd eb 05 e8 af 0b df fd RSP: 0018:ffffc900053f7280 EFLAGS: 00010293 RAX: ffffffff83e69061 RBX: ffff88804882b750 RCX: ffff888036204900 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: ffffffff901aa160 RBP: ffffc900053f7430 R08: ffff888036204900 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: ffff888043f9d790 R13: 00000000fffffffe R14: 0000000000000000 R15: ffff888038088001 FS: 0000000000000000(0000) GS:ffff88808ca5b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e64b7c7348 CR3: 00000000443c4000 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), 1 bytes skipped: 0: 05 00 00 e8 36 add $0x36e80000,%eax 5: 15 c4 fd 84 c0 adc $0xc084fdc4,%eax a: 0f 84 f3 00 00 00 je 0x103 10: e8 d9 0b df fd call 0xfddf0bee 15: e9 a9 05 00 00 jmp 0x5c3 1a: e8 cf 0b df fd call 0xfddf0bee 1f: 48 8d 3d f8 10 34 0c lea 0xc3410f8(%rip),%rdi # 0xc34111e 26: 44 89 ee mov %r13d,%esi * 29: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2e: e9 af e2 ff ff jmp 0xffffe2e2 33: e8 b6 0b df fd call 0xfddf0bee 38: eb 05 jmp 0x3f 3a: e8 af 0b df fd call 0xfddf0bee