------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 5012 at fs/btrfs/extent-tree.c:3055 __btrfs_free_extent+0x19ea/0x2c30 fs/btrfs/extent-tree.c:3055 Modules linked in: CPU: 1 PID: 5012 Comm: syz-executor919 Not tainted 6.5.0-rc5-syzkaller-00029-g14f9643dc90a #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 ea 24 1a fe 0f 1f 44 00 00 bb 01 00 00 00 e9 f5 f7 ff ff e8 d6 24 1a fe 8b 74 24 58 48 c7 c7 40 e7 b4 8a e8 26 e6 e0 fd <0f> 0b e9 eb f0 ff ff e8 ba 24 1a fe 48 8b 54 24 30 48 b8 00 00 00 RSP: 0018:ffffc900033aef90 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888028e88040 RSI: ffffffff814be346 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff88807d7146e0 R13: ffff88807785abf8 R14: 00000000ffffffe4 R15: 0000000000623000 FS: 00007fa2da5286c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5808a4c0f0 CR3: 0000000021ae1000 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:0x7fa2da56a3c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 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:00007fa2da528218 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fa2da5f76c8 RCX: 00007fa2da56a3c9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fa2da5f76c0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000880000c R11: 0000000000000246 R12: 00007fa2da5c460c R13: 0000000020000600 R14: 00007fa2da5bf060 R15: 0030656c69662f2e