loop3: detected capacity change from 0 to 32768 BTRFS info (device loop3): using xxhash64 (xxhash64-generic) checksum algorithm BTRFS info (device loop3): using free space tree BTRFS info (device loop3): enabling ssd optimizations ------------[ cut here ]------------ WARNING: CPU: 1 PID: 23187 at fs/btrfs/inode.c:454 cow_file_range_inline+0x87c/0x9a0 fs/btrfs/inode.c:454 Modules linked in: CPU: 1 PID: 23187 Comm: syz-executor.3 Not tainted 6.1.0-rc2-syzkaller-00061-g337a0a0b63f1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:cow_file_range_inline+0x87c/0x9a0 fs/btrfs/inode.c:454 Code: 49 8b 3e 48 c7 c6 40 f8 da 8a 89 da 31 c0 e8 dd 97 a6 06 eb 1a e8 34 9c fc fd 48 c7 c7 40 f7 da 8a 89 de 31 c0 e8 84 3a c4 fd <0f> 0b 41 b7 01 4c 8b 64 24 08 4c 8b 2c 24 45 0f b6 c7 4c 8b 7c 24 RSP: 0018:ffffc9001487ed00 EFLAGS: 00010246 RAX: 73f46f053bc9db00 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc9000d7c2000 RSI: 0000000000002613 RDI: 0000000000002614 RBP: ffffc9001487ee30 R08: ffffffff816b8d3d R09: ffffed1017364f13 R10: ffffed1017364f13 R11: 1ffff11017364f12 R12: 1ffff1100e8df29d R13: ffff88807ee90001 R14: ffff8880746f94e8 R15: 00000000fffffff4 FS: 00007f57aa46d700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055cf58b57110 CR3: 0000000074196000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: cow_file_range+0x391/0xfa0 fs/btrfs/inode.c:1219 btrfs_run_delalloc_range+0xed4/0x11a0 fs/btrfs/inode.c:2229 writepage_delalloc+0x25e/0x540 fs/btrfs/extent_io.c:1968 __extent_writepage+0x5d6/0x14d0 fs/btrfs/extent_io.c:2272 extent_write_cache_pages+0x9e7/0x12d0 fs/btrfs/extent_io.c:3186 extent_writepages+0x228/0x550 fs/btrfs/extent_io.c:3308 do_writepages+0x3c3/0x680 mm/page-writeback.c:2469 filemap_fdatawrite_wbc+0x11e/0x170 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] filemap_fdatawrite_range+0x175/0x200 mm/filemap.c:439 btrfs_fdatawrite_range fs/btrfs/file.c:4140 [inline] start_ordered_ops fs/btrfs/file.c:2026 [inline] btrfs_sync_file+0x39e/0x1140 fs/btrfs/file.c:2102 generic_write_sync include/linux/fs.h:2883 [inline] btrfs_do_write_iter+0xa6f/0x1370 fs/btrfs/file.c:1975 call_write_iter include/linux/fs.h:2191 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7dc/0xc50 fs/read_write.c:584 ksys_write+0x177/0x2a0 fs/read_write.c:637 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:0x7f57a928b5f9 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:00007f57aa46d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f57a93abf80 RCX: 00007f57a928b5f9 RDX: 0000000000000001 RSI: 0000000020003180 RDI: 0000000000000003 RBP: 00007f57aa46d1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffd08df0a9f R14: 00007f57aa46d300 R15: 0000000000022000