BTRFS error (device loop2): failed to run delayed ref for logical 5402624 num_bytes 61440 type 178 action 1 ref_mod 1: -2 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: fs/btrfs/extent-tree.c:2247 at btrfs_run_delayed_refs+0x30b/0x3b0 fs/btrfs/extent-tree.c:2247, CPU#0: kworker/u8:4/59 Modules linked in: CPU: 0 UID: 0 PID: 59 Comm: kworker/u8:4 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:btrfs_run_delayed_refs+0x30e/0x3b0 fs/btrfs/extent-tree.c:2247 Code: 85 e4 75 07 e8 93 b3 e1 fd eb 7a e8 fc c0 c6 fd 84 c0 74 20 e8 83 b3 e1 fd eb 6a e8 7c b3 e1 fd 48 8d 3d 15 d6 36 0c 44 89 fe <67> 48 0f b9 3a e9 0b ff ff ff e8 93 bb cb 07 41 89 c4 31 ff 89 c6 RSP: 0018:ffffc9000211f7b8 EFLAGS: 00010293 RAX: ffffffff83e40c54 RBX: ffff8880786965c8 RCX: ffff88801cb81e80 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: ffffffff901ae270 RBP: 0000000000000000 R08: ffff88801cb81e80 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: ffff888031adc001 R13: ffff8880782bf000 R14: dffffc0000000000 R15: 00000000fffffffe FS: 0000000000000000(0000) GS:ffff888125454000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005590ab78f950 CR3: 0000000032ef9000 CR4: 0000000000350ef0 Call Trace: 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:3276 [inline] process_scheduled_works+0xb6e/0x18c0 kernel/workqueue.c:3359 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3440 kthread+0x388/0x470 kernel/kthread.c:436 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: 85 e4 test %esp,%esp 2: 75 07 jne 0xb 4: e8 93 b3 e1 fd call 0xfde1b39c 9: eb 7a jmp 0x85 b: e8 fc c0 c6 fd call 0xfdc6c10c 10: 84 c0 test %al,%al 12: 74 20 je 0x34 14: e8 83 b3 e1 fd call 0xfde1b39c 19: eb 6a jmp 0x85 1b: e8 7c b3 e1 fd call 0xfde1b39c 20: 48 8d 3d 15 d6 36 0c lea 0xc36d615(%rip),%rdi # 0xc36d63c 27: 44 89 fe mov %r15d,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 0b ff ff ff jmp 0xffffff3f 34: e8 93 bb cb 07 call 0x7cbbbcc 39: 41 89 c4 mov %eax,%r12d 3c: 31 ff xor %edi,%edi 3e: 89 c6 mov %eax,%esi