------------[ 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:10/1089 WARNING: fs/btrfs/extent-tree.c:3105 at __btrfs_free_extent+0x3a28/0x4350 fs/btrfs/extent-tree.c:3474, CPU#0: kworker/u4:10/1089 Modules linked in: CPU: 0 UID: 0 PID: 1089 Comm: kworker/u4:10 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 e6 fe c3 fd 84 c0 0f 84 f3 00 00 00 e8 59 f7 de fd e9 a9 05 00 00 e8 4f f7 de fd 48 8d 3d 58 11 34 0c 44 89 ee <67> 48 0f b9 3a e9 af e2 ff ff e8 36 f7 de fd eb 05 e8 2f f7 de fd RSP: 0018:ffffc90005717280 EFLAGS: 00010293 RAX: ffffffff83e6ae31 RBX: ffff8880473ba750 RCX: ffff8880369324c0 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: ffffffff901abf90 RBP: ffffc90005717430 R08: ffff8880369324c0 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: ffff88804232f8f0 R13: 00000000fffffffe R14: 0000000000000000 R15: ffff888041f70001 FS: 0000000000000000(0000) GS:ffff88808ca59000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007febfbd90d00 CR3: 0000000040f69000 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): 0: c0 05 00 00 e8 e6 fe rolb $0xfe,-0x19180000(%rip) # 0xe6e80007 7: c3 ret 8: fd std 9: 84 c0 test %al,%al b: 0f 84 f3 00 00 00 je 0x104 11: e8 59 f7 de fd call 0xfddef76f 16: e9 a9 05 00 00 jmp 0x5c4 1b: e8 4f f7 de fd call 0xfddef76f 20: 48 8d 3d 58 11 34 0c lea 0xc341158(%rip),%rdi # 0xc34117f 27: 44 89 ee mov %r13d,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 af e2 ff ff jmp 0xffffe2e3 34: e8 36 f7 de fd call 0xfddef76f 39: eb 05 jmp 0x40 3b: e8 2f f7 de fd call 0xfddef76f