------------[ cut here ]------------ WARNING: CPU: 0 PID: 5457 at fs/btrfs/ordered-data.c:1138 btrfs_split_ordered_extent+0x541/0x6b0 Modules linked in: CPU: 0 PID: 5457 Comm: syz-executor.0 Not tainted 6.3.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:btrfs_split_ordered_extent+0x541/0x6b0 fs/btrfs/ordered-data.c:1138 Code: 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 c7 c7 e0 46 2a 8a 48 c7 c6 60 42 2a 8a ba 6c 04 00 00 e8 34 46 62 06 e9 26 fc ff ff <0f> 0b eb 11 0f 0b e9 df fb ff ff 0f 0b eb 06 0f 0b eb 02 0f 0b b8 RSP: 0018:ffffc9000423ee68 EFLAGS: 00010287 RAX: 1ffff110034d8801 RBX: ffff88801a6c4008 RCX: ffffffff833827d6 RDX: 0000000000000000 RSI: ffffffff8a37fde0 RDI: ffffffff8a37fda0 RBP: 0000000000001000 R08: dffffc0000000000 R09: fffffbfff1a7b25e R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000000000 R14: ffff88801a6c4000 R15: ffff8880746d16f8 FS: 00007f3a635fe700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f270506d3b0 CR3: 000000007b9c4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_extract_ordered_extent+0x111/0xa00 fs/btrfs/inode.c:2621 btrfs_dio_submit_io+0x19e/0x290 fs/btrfs/inode.c:7728 iomap_dio_submit_bio fs/iomap/direct-io.c:75 [inline] iomap_dio_bio_iter+0xb4f/0x10d0 fs/iomap/direct-io.c:354 __iomap_dio_rw+0x1039/0x1ab0 fs/iomap/direct-io.c:595 btrfs_dio_write+0xa6/0xf0 fs/btrfs/inode.c:7761 btrfs_direct_write fs/btrfs/file.c:1529 [inline] btrfs_do_write_iter+0x723/0xeb0 fs/btrfs/file.c:1674 do_iter_write+0x668/0xad0 fs/read_write.c:861 iter_file_splice_write+0x7c4/0xfc0 fs/splice.c:778 do_splice_from fs/splice.c:856 [inline] direct_splice_actor+0xe2/0x1a0 fs/splice.c:1022 splice_direct_to_actor+0x42e/0xa60 fs/splice.c:977 do_splice_direct+0x268/0x3a0 fs/splice.c:1065 do_sendfile+0x4f5/0xc20 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x143/0x190 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3a6b68c169 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:00007f3a635fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f3a6b7ac050 RCX: 00007f3a6b68c169 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 00007f3a6b6e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1e69518f R14: 00007f3a635fe300 R15: 0000000000022000