BTRFS error (device loop0): failed to run delayed ref for logical 5378048 num_bytes 65536 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: syz.0.0/5320 Modules linked in: CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 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 RIP: 0010:btrfs_run_delayed_refs+0x30e/0x3b0 fs/btrfs/extent-tree.c:2247 Code: 85 e4 75 07 e8 c3 66 e0 fd eb 7a e8 7c 6a c5 fd 84 c0 74 20 e8 b3 66 e0 fd eb 6a e8 ac 66 e0 fd 48 8d 3d 45 8e 35 0c 44 89 fe <67> 48 0f b9 3a e9 0b ff ff ff e8 f3 6d cb 07 41 89 c4 31 ff 89 c6 RSP: 0018:ffffc9000f5ef838 EFLAGS: 00010293 RAX: ffffffff83e549f4 RBX: ffff888047ad3940 RCX: ffff888000ee0000 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: ffffffff901ad840 RBP: 0000000000000000 R08: ffff888000ee0000 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: ffff8880429c8001 R13: ffff888043116000 R14: dffffc0000000000 R15: 00000000fffffffe FS: 0000000000000000(0000) GS:ffff88808ca51000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055bff27cd348 CR3: 000000000e54c000 CR4: 0000000000352ef0 Call Trace: btrfs_commit_transaction+0x29a/0x31a0 fs/btrfs/transaction.c:2254 sync_filesystem+0x1cf/0x230 fs/sync.c:66 generic_shutdown_super+0x77/0x2d0 fs/super.c:625 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 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x70f/0x23c0 kernel/exit.c:976 do_group_exit+0x21b/0x2d0 kernel/exit.c:1118 __do_sys_exit_group kernel/exit.c:1129 [inline] __se_sys_exit_group kernel/exit.c:1127 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1127 x64_sys_call+0x221a/0x2240 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd15c99c799 Code: Unable to access opcode bytes at 0x7fd15c99c76f. RSP: 002b:00007ffd696491e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fd15c99c799 RDX: 0000000000000064 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000003 R08: 0000000000000000 R09: 00007fd15cbe63e0 R10: 0000000000000006 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd15cbe63e0 R14: 0000000000000003 R15: 00007ffd696492a0 ---------------- Code disassembly (best guess): 0: 85 e4 test %esp,%esp 2: 75 07 jne 0xb 4: e8 c3 66 e0 fd call 0xfde066cc 9: eb 7a jmp 0x85 b: e8 7c 6a c5 fd call 0xfdc56a8c 10: 84 c0 test %al,%al 12: 74 20 je 0x34 14: e8 b3 66 e0 fd call 0xfde066cc 19: eb 6a jmp 0x85 1b: e8 ac 66 e0 fd call 0xfde066cc 20: 48 8d 3d 45 8e 35 0c lea 0xc358e45(%rip),%rdi # 0xc358e6c 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 f3 6d cb 07 call 0x7cb6e2c 39: 41 89 c4 mov %eax,%r12d 3c: 31 ff xor %edi,%edi 3e: 89 c6 mov %eax,%esi