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: CPU: 0 PID: 5095 at fs/btrfs/extent-tree.c:2151 btrfs_run_delayed_refs.cold+0x34/0xa0 fs/btrfs/extent-tree.c:2151 Modules linked in: CPU: 1 PID: 5095 Comm: syz-executor.0 Not tainted 6.2.0-rc7-syzkaller-00011-g05ecb680708a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:btrfs_run_delayed_refs.cold+0x34/0xa0 fs/btrfs/extent-tree.c:2151 Code: da ff ff 31 ff 89 c3 89 c6 88 44 24 27 e8 76 3b b4 f7 84 db 74 3d e8 fd 3e b4 f7 44 89 e6 48 c7 c7 60 2d 94 8a e8 68 ed f4 ff <0f> 0b e8 e7 3e b4 f7 44 89 e1 ba 67 08 00 00 4c 89 ef 44 0f b6 44 RSP: 0018:ffffc90003fef338 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00000000ffffff01 RCX: 0000000000000000 RDX: ffff888025b6ba80 RSI: ffffffff816610ec RDI: fffff520007fde59 RBP: ffff8880210d4000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 00000000ffffffe4 R13: ffff8880776ab540 R14: 0000000000000000 R15: ffff8880776ab540 FS: 00007f7c8b099700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561b56f63078 CR3: 00000000767de000 CR4: 0000000000350ee0 Call Trace: btrfs_commit_transaction+0x1e94/0x36c0 fs/btrfs/transaction.c:2151 btrfs_sync_file+0xe7b/0x13c0 fs/btrfs/file.c:2001 vfs_fsync_range+0x13e/0x230 fs/sync.c:188 generic_write_sync include/linux/fs.h:2885 [inline] btrfs_do_write_iter+0x67d/0x1470 fs/btrfs/file.c:1684 call_write_iter include/linux/fs.h:2189 [inline] do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735 do_iter_write+0x182/0x700 fs/read_write.c:861 vfs_iter_write+0x74/0xa0 fs/read_write.c:902 iter_file_splice_write+0x745/0xc90 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0x114/0x180 fs/splice.c:931 splice_direct_to_actor+0x335/0x8a0 fs/splice.c:886 do_splice_direct+0x1ab/0x280 fs/splice.c:974 do_sendfile+0xb19/0x1270 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x1d0/0x210 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7c8a28c0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7c8b099168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f7c8a3abf80 RCX: 00007f7c8a28c0c9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007f7c8a2e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000880000c R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc6183a11f R14: 00007f7c8b099300 R15: 0000000000022000