RDX: 0000000020000080 RSI: 0000000040305828 RDI: 0000000000000004 RBP: 00007fc3c2b5b120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007fc3c38f8f80 R15: 00007ffcb903e118 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4029 at fs/btrfs/file.c:2985 btrfs_replace_file_extents+0x11d7/0x17f0 fs/btrfs/file.c:2985 Modules linked in: CPU: 0 PID: 4029 Comm: syz-executor.0 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:btrfs_replace_file_extents+0x11d7/0x17f0 fs/btrfs/file.c:2985 Code: e8 5e 0d 1b fe 4c 8b 6c 24 08 0f 1f 44 00 00 e8 4f 0d 1b fe eb 16 e8 48 0d 1b fe 48 c7 c7 80 66 ca 8a 44 89 e6 e8 19 b7 e6 fd <0f> 0b 4c 89 ef 48 c7 c6 60 68 ca 8a ba a9 0b 00 00 44 89 e1 e8 e0 RSP: 0018:ffffc90002c472e0 EFLAGS: 00010246 RAX: 842516c58e0f0d00 RBX: 0000000000000000 RCX: ffff888029718000 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90002c47490 R08: ffffffff81668a3c R09: ffffed1017224f24 R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000fffffff4 R13: ffff8880746c2370 R14: ffff8880746c23c8 R15: 1ffff1100e8d8479 FS: 00007fc3c2b5b6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055902481feb8 CR3: 000000007df38000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: insert_prealloc_file_extent fs/btrfs/inode.c:10398 [inline] __btrfs_prealloc_file_range+0x782/0x1440 fs/btrfs/inode.c:10466 btrfs_prealloc_file_range+0x3c/0x50 fs/btrfs/inode.c:10556 btrfs_fallocate+0x1a5e/0x1dd0 fs/btrfs/file.c:3630 vfs_fallocate+0x54a/0x6b0 fs/open.c:308 do_vfs_ioctl+0x2317/0x2b70 fs/ioctl.c:853 __do_sys_ioctl fs/ioctl.c:872 [inline] __se_sys_ioctl+0x81/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fc3c37d9959 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:00007fc3c2b5b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc3c38f8f80 RCX: 00007fc3c37d9959 RDX: 0000000020000080 RSI: 0000000040305828 RDI: 0000000000000004 RBP: 00007fc3c2b5b120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007fc3c38f8f80 R15: 00007ffcb903e118