------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 5018 at fs/btrfs/extent-tree.c:3055 __btrfs_free_extent+0x19ea/0x2c30 fs/btrfs/extent-tree.c:3055 Modules linked in: CPU: 1 PID: 5018 Comm: syz-executor815 Not tainted 6.5.0-rc7-syzkaller-00013-g53663f4103ff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:__btrfs_free_extent+0x19ea/0x2c30 fs/btrfs/extent-tree.c:3055 Code: 00 e8 ca 19 1a fe 0f 1f 44 00 00 bb 01 00 00 00 e9 f5 f7 ff ff e8 b6 19 1a fe 8b 74 24 58 48 c7 c7 40 f3 b4 8a e8 06 db e0 fd <0f> 0b e9 eb f0 ff ff e8 9a 19 1a fe 48 8b 54 24 30 48 b8 00 00 00 RSP: 0018:ffffc9000346ef90 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888019b56180 RSI: ffffffff814be3c6 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888077ae20b0 R13: ffff888074cec568 R14: 00000000ffffffe4 R15: 0000000000623000 FS: 00007f8dd82846c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffeefe39ffc CR3: 000000007a5cc000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: run_delayed_tree_ref fs/btrfs/extent-tree.c:1678 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1702 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1948 [inline] __btrfs_run_delayed_refs+0xd3d/0x3b80 fs/btrfs/extent-tree.c:2009 btrfs_run_delayed_refs+0x1a1/0x510 fs/btrfs/extent-tree.c:2121 btrfs_commit_transaction+0x81a/0x3fd0 fs/btrfs/transaction.c:2163 btrfs_sync_file+0xfa1/0x1310 fs/btrfs/file.c:1988 vfs_fsync_range+0x141/0x220 fs/sync.c:188 generic_write_sync include/linux/fs.h:2499 [inline] iomap_dio_complete+0x812/0x9e0 fs/iomap/direct-io.c:123 btrfs_direct_write fs/btrfs/file.c:1539 [inline] btrfs_do_write_iter+0xa00/0x11a0 fs/btrfs/file.c:1667 call_write_iter include/linux/fs.h:1877 [inline] do_iter_readv_writev+0x21e/0x3c0 fs/read_write.c:735 do_iter_write+0x17f/0x830 fs/read_write.c:860 vfs_iter_write+0x7a/0xb0 fs/read_write.c:901 iter_file_splice_write+0x698/0xbf0 fs/splice.c:739 do_splice_from fs/splice.c:936 [inline] direct_splice_actor+0x118/0x180 fs/splice.c:1145 splice_direct_to_actor+0x347/0xa30 fs/splice.c:1091 do_splice_direct+0x1af/0x280 fs/splice.c:1197 do_sendfile+0xb88/0x1390 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x1d6/0x220 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f8dd82c8759 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1a 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:00007f8dd8284218 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f8dd8354628 RCX: 00007f8dd82c8759 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007f8dd8354620 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000880000c R11: 0000000000000246 R12: 00007f8dd832174c R13: 0000000020000600 R14: 00007f8dd831c1a0 R15: 0030656c69662f2e