BTRFS error (device loop4): failed to run delayed ref for logical 5390336 num_bytes 61440 type 178 action 1 ref_mod 1: -2 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: CPU: 1 PID: 25271 at fs/btrfs/extent-tree.c:2226 btrfs_run_delayed_refs+0x2b3/0x2c0 fs/btrfs/extent-tree.c:2226 Modules linked in: CPU: 1 PID: 25271 Comm: syz-executor.4 Not tainted 6.7.0-rc4-syzkaller-00009-gbee0e7762ad2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:btrfs_run_delayed_refs+0x2b3/0x2c0 fs/btrfs/extent-tree.c:2226 Code: 38 c1 0f 8c d5 fd ff ff 48 89 df e8 c7 bd 5b fe e9 c8 fd ff ff e8 1d b6 ff fd 90 48 c7 c7 60 b5 aa 8b 89 de e8 ce 93 c5 fd 90 <0f> 0b 90 90 eb 9a 0f 1f 80 00 00 00 00 f3 0f 1e fa 55 48 89 e5 41 RSP: 0018:ffffc900056c7578 EFLAGS: 00010246 RAX: b0de3b38e5519b00 RBX: 00000000fffffffe RCX: 0000000000040000 RDX: ffffc9000bbfd000 RSI: 000000000001fb66 RDI: 000000000001fb67 RBP: ffff888027550001 R08: ffffffff81545a92 R09: 1ffff92000ad8e04 R10: dffffc0000000000 R11: fffff52000ad8e05 R12: 0000000000000000 R13: ffff8880757f8500 R14: dffffc0000000000 R15: ffff8880757f84a0 FS: 00007f6951d366c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3b727bcd58 CR3: 000000002841e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_commit_transaction+0x4ba/0x3740 fs/btrfs/transaction.c:2237 btrfs_sync_file+0xf50/0x1330 fs/btrfs/file.c:2004 generic_write_sync include/linux/fs.h:2653 [inline] btrfs_do_write_iter+0xbc5/0x1190 fs/btrfs/file.c:1694 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x792/0xb20 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f695107cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6951d360c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f695119bf80 RCX: 00007f695107cae9 RDX: 000000000000f000 RSI: 0000000020000200 RDI: 0000000000000007 RBP: 00007f69510c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f695119bf80 R15: 00007fffd643e1d8