------------[ cut here ]------------ WARNING: CPU: 1 PID: 9797 at fs/btrfs/file.c:2872 btrfs_replace_file_extents+0x14ae/0x1a60 fs/btrfs/file.c:2872 Modules linked in: CPU: 1 PID: 9797 Comm: syz-executor.4 Not tainted 6.1.0-rc3-syzkaller-00288-gb208b9fbbcba #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:btrfs_replace_file_extents+0x14ae/0x1a60 fs/btrfs/file.c:2872 Code: c6 60 37 db 8a 44 89 e2 31 c0 e8 3f 5f a4 06 e9 66 fd ff ff e8 93 14 fa fd 48 c7 c7 60 36 db 8a 44 89 e6 31 c0 e8 a2 b2 c1 fd <0f> 0b 41 b7 01 45 0f b6 c7 48 89 df 48 c7 c6 a0 38 db 8a ba 38 0b RSP: 0018:ffffc90015947540 EFLAGS: 00010246 RAX: dd33c6e388adf500 RBX: ffff88803aaad9d8 RCX: 0000000000040000 RDX: ffffc9000c689000 RSI: 000000000000343b RDI: 000000000000343c RBP: ffffc90015947710 R08: ffffffff816b9e3d R09: ffffed1017364f13 R10: ffffed1017364f13 R11: 1ffff11017364f12 R12: 00000000fffffff4 R13: 1ffff11007555b45 R14: ffff88803aaada28 R15: 0000000000000000 FS: 00007fe97fab7700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c01b339336 CR3: 000000007ec10000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: insert_prealloc_file_extent fs/btrfs/inode.c:9852 [inline] __btrfs_prealloc_file_range+0x803/0x14d0 fs/btrfs/inode.c:9919 btrfs_prealloc_file_range+0x3c/0x50 fs/btrfs/inode.c:9998 btrfs_zero_range+0xd2a/0x12d0 fs/btrfs/file.c:3308 btrfs_fallocate+0xc54/0x2020 fs/btrfs/file.c:3418 vfs_fallocate+0x515/0x670 fs/open.c:323 ksys_fallocate fs/open.c:346 [inline] __do_sys_fallocate fs/open.c:354 [inline] __se_sys_fallocate fs/open.c:352 [inline] __x64_sys_fallocate+0xb9/0x100 fs/open.c:352 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe97ec8b5a9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007fe97fab7168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fe97edac050 RCX: 00007fe97ec8b5a9 RDX: 0000000000000000 RSI: 0000000100000011 RDI: 0000000000000003 RBP: 00007fe97fab71d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000006 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fff8c06dd6f R14: 00007fe97fab7300 R15: 0000000000022000