loop5: detected capacity change from 0 to 32768 BTRFS info (device loop5): using xxhash64 (xxhash64-generic) checksum algorithm BTRFS info (device loop5): using free space tree BTRFS info (device loop5): enabling ssd optimizations ------------[ cut here ]------------ WARNING: CPU: 0 PID: 20803 at fs/btrfs/inode.c:444 cow_file_range_inline+0x7f0/0x9a0 fs/btrfs/inode.c:444 Modules linked in: CPU: 0 PID: 20803 Comm: syz-executor.5 Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:cow_file_range_inline+0x7f0/0x9a0 fs/btrfs/inode.c:444 Code: 48 c7 c6 40 ed f9 8a 89 da 31 c0 e8 a7 e2 b1 06 e9 a9 fe ff ff e8 40 bf f5 fd 48 c7 c7 40 ec f9 8a 89 de 31 c0 e8 50 c1 bc fd <0f> 0b 41 b7 01 45 0f b6 c7 4c 8b 7c 24 10 4c 89 ff 48 c7 c6 20 15 RSP: 0018:ffffc900162067e0 EFLAGS: 00010246 RAX: 1c1498c9e4437200 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc9000d6d8000 RSI: 000000000000240d RDI: 000000000000240e RBP: ffffc90016206910 R08: ffffffff816ced5d R09: ffffed1017344f13 R10: ffffed1017344f13 R11: 1ffff11017344f12 R12: 1ffff11012fb8c9d R13: ffff888073b23020 R14: ffff888097dc64e8 R15: 00000000fffffff4 FS: 00007f9079823700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9078b14069 CR3: 000000001cf9b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: cow_file_range+0x3a3/0xfc0 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+0x993/0x1230 fs/btrfs/extent_io.c:3186 extent_writepages+0x244/0x570 fs/btrfs/extent_io.c:3308 do_writepages+0x3c3/0x690 mm/page-writeback.c:2469 filemap_fdatawrite_wbc+0x11e/0x170 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] filemap_write_and_wait_range+0x1c1/0x2c0 mm/filemap.c:674 __iomap_dio_rw+0xb25/0x20e0 fs/iomap/direct-io.c:573 iomap_dio_rw+0x42/0xa0 fs/iomap/direct-io.c:690 btrfs_dio_rw+0xb8/0x100 fs/btrfs/inode.c:8085 btrfs_direct_read fs/btrfs/file.c:4038 [inline] btrfs_file_read_iter+0x399/0x690 fs/btrfs/file.c:4077 call_read_iter include/linux/fs.h:2185 [inline] generic_file_splice_read+0x24e/0x650 fs/splice.c:309 do_splice_to fs/splice.c:793 [inline] splice_direct_to_actor+0x41b/0xc00 fs/splice.c:865 do_splice_direct+0x2a0/0x3f0 fs/splice.c:974 do_sendfile+0x641/0xfd0 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x178/0x1e0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9078a8b5a9 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:00007f9079823168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f9078babf80 RCX: 00007f9078a8b5a9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000004 RBP: 00007f90798231d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffd7531adcf R14: 00007f9079823300 R15: 0000000000022000