BTRFS error (device loop0): failed to run delayed ref for logical 5255168 num_bytes 4096 type 178 action 1 ref_mod 1: -28 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: fs/btrfs/extent-tree.c:2162 at btrfs_run_delayed_refs+0x30b/0x3a0 fs/btrfs/extent-tree.c:2162, CPU#0: syz.0.0/5346 Modules linked in: CPU: 0 UID: 0 PID: 5346 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/0x3a0 fs/btrfs/extent-tree.c:2162 Code: 85 e4 75 07 e8 a3 5d ea fd eb 7a e8 4c 81 cf fd 84 c0 74 20 e8 93 5d ea fd eb 6a e8 8c 5d ea fd 48 8d 3d 35 03 1e 0c 44 89 fe <67> 48 0f b9 3a e9 0b ff ff ff e8 13 eb be 07 41 89 c4 31 ff 89 c6 RSP: 0018:ffffc9000b95f178 EFLAGS: 00010293 RAX: ffffffff83da2964 RBX: ffff888047786000 RCX: ffff888000c88000 RDX: 0000000000000000 RSI: 00000000ffffffe4 RDI: ffffffff8ff82ca0 RBP: 0000000000000000 R08: ffff888000c88000 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: ffff888042ba8001 R13: ffff888040656000 R14: dffffc0000000000 R15: 00000000ffffffe4 FS: 00007f55b01976c0(0000) GS:ffff88808ccea000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f55a41ff000 CR3: 0000000042648000 CR4: 0000000000352ef0 Call Trace: btrfs_commit_transaction+0x2b1/0x3c50 fs/btrfs/transaction.c:2230 btrfs_sync_file+0xdee/0x1210 fs/btrfs/file.c:1819 generic_write_sync include/linux/fs.h:2618 [inline] btrfs_do_write_iter+0x69f/0x830 fs/btrfs/file.c:1470 iter_file_splice_write+0x99b/0x1100 fs/splice.c:738 do_splice_from fs/splice.c:938 [inline] direct_splice_actor+0x101/0x160 fs/splice.c:1161 splice_direct_to_actor+0x53a/0xc70 fs/splice.c:1105 do_splice_direct_actor fs/splice.c:1204 [inline] do_splice_direct+0x195/0x290 fs/splice.c:1230 do_sendfile+0x535/0x7d0 fs/read_write.c:1370 __do_sys_sendfile64 fs/read_write.c:1431 [inline] __se_sys_sendfile64+0x144/0x1a0 fs/read_write.c:1417 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f55af39aeb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f55b0197028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f55af616180 RCX: 00007f55af39aeb9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005 RBP: 00007f55af408c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0001000200201005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f55af616218 R14: 00007f55af616180 R15: 00007ffc5a98f398 ---------------- Code disassembly (best guess): 0: 85 e4 test %esp,%esp 2: 75 07 jne 0xb 4: e8 a3 5d ea fd call 0xfdea5dac 9: eb 7a jmp 0x85 b: e8 4c 81 cf fd call 0xfdcf815c 10: 84 c0 test %al,%al 12: 74 20 je 0x34 14: e8 93 5d ea fd call 0xfdea5dac 19: eb 6a jmp 0x85 1b: e8 8c 5d ea fd call 0xfdea5dac 20: 48 8d 3d 35 03 1e 0c lea 0xc1e0335(%rip),%rdi # 0xc1e035c 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 eb be 07 call 0x7beeb4c 39: 41 89 c4 mov %eax,%r12d 3c: 31 ff xor %edi,%edi 3e: 89 c6 mov %eax,%esi