BTRFS error (device loop5): failed to run delayed ref for logical 5390336 num_bytes 1052672 type 178 action 1 ref_mod 1: -2 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: fs/btrfs/extent-tree.c:2192 at btrfs_run_delayed_refs+0x30b/0x3b0 fs/btrfs/extent-tree.c:2192, CPU#0: syz-executor/9830 Modules linked in: CPU: 0 UID: 0 PID: 9830 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026 RIP: 0010:btrfs_run_delayed_refs+0x30e/0x3b0 fs/btrfs/extent-tree.c:2192 Code: 85 e4 75 07 e8 c3 4b f1 fd eb 7a e8 8c 59 d6 fd 84 c0 74 20 e8 b3 4b f1 fd eb 6a e8 ac 4b f1 fd 48 8d 3d 05 8d 7f 0b 44 89 fe <67> 48 0f b9 3a e9 0b ff ff ff e8 13 c3 3f 07 41 89 c4 31 ff 89 c6 RSP: 0018:ffffc90004d57998 EFLAGS: 00010293 RAX: ffffffff83d1f4e4 RBX: ffff88803e132708 RCX: ffff888029de9e00 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: ffffffff8f5181f0 RBP: 0000000000000000 R08: ffff888029de9e00 R09: 0000000000000003 R10: 0000000000000100 R11: 00000000fffffffb R12: ffff88804a348001 R13: ffff88803764f000 R14: dffffc0000000000 R15: 00000000fffffffe FS: 000055557a688500(0000) GS:ffff88812659c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb9d96a5eaf CR3: 0000000074f34000 CR4: 00000000003526f0 Call Trace: btrfs_commit_transaction+0x29a/0x31a0 fs/btrfs/transaction.c:2238 sync_filesystem+0x1ce/0x250 fs/sync.c:66 generic_shutdown_super+0x6f/0x2d0 fs/super.c:624 kill_anon_super+0x3b/0x70 fs/super.c:1292 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2127 deactivate_locked_super+0xbc/0x130 fs/super.c:476 cleanup_mnt+0x437/0x4d0 fs/namespace.c:1312 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x32d/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f652a92d1d7 Code: a2 c7 05 bc e3 24 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffdcaf71138 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f652a9c1c3b RCX: 00007f652a92d1d7 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdcaf711f0 RBP: 00007ffdcaf711f0 R08: 00007ffdcaf721f0 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffdcaf72280 R13: 00007f652a9c1c3b R14: 0000000000096d48 R15: 00007ffdcaf722c0 ---------------- Code disassembly (best guess): 0: 85 e4 test %esp,%esp 2: 75 07 jne 0xb 4: e8 c3 4b f1 fd call 0xfdf14bcc 9: eb 7a jmp 0x85 b: e8 8c 59 d6 fd call 0xfdd6599c 10: 84 c0 test %al,%al 12: 74 20 je 0x34 14: e8 b3 4b f1 fd call 0xfdf14bcc 19: eb 6a jmp 0x85 1b: e8 ac 4b f1 fd call 0xfdf14bcc 20: 48 8d 3d 05 8d 7f 0b lea 0xb7f8d05(%rip),%rdi # 0xb7f8d2c 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 13 c3 3f 07 call 0x73fc34c 39: 41 89 c4 mov %eax,%r12d 3c: 31 ff xor %edi,%edi 3e: 89 c6 mov %eax,%esi