BTRFS info (device loop1): enabling ssd optimizations ------------[ cut here ]------------ WARNING: CPU: 1 PID: 17479 at fs/btrfs/inode.c:436 cow_file_range_inline+0x76a/0x9a0 fs/btrfs/inode.c:436 Modules linked in: CPU: 1 PID: 17479 Comm: syz-executor.1 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+0x76a/0x9a0 fs/btrfs/inode.c:436 Code: c7 c6 40 f8 da 8a 89 da 31 c0 e8 33 98 a6 06 4c 8b 2c 24 eb 1a e8 46 9d fc fd 48 c7 c7 40 f7 da 8a 89 de 31 c0 e8 96 3b c4 fd <0f> 0b 41 b4 01 45 0f b6 c4 4c 8b 7c 24 10 4c 89 ff 48 c7 c6 20 20 RSP: 0018:ffffc90016cae7e0 EFLAGS: 00010246 RAX: df58e2e965baa900 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc90004924000 RSI: 0000000000002664 RDI: 0000000000002665 RBP: ffffc90016cae910 R08: ffffffff816b8dfd R09: ffffed1017364f13 R10: ffffed1017364f13 R11: 1ffff11017364f12 R12: ffff88807a4b4001 R13: ffff88803e028000 R14: ffff88808391ecc8 R15: 1ffff11010723d99 FS: 00007fbf89556700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c005e1b380 CR3: 000000001727d000 CR4: 00000000003506f0 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_write_and_wait_range+0x1b3/0x2b0 mm/filemap.c:674 __iomap_dio_rw+0xafd/0x20d0 fs/iomap/direct-io.c:573 iomap_dio_rw+0x42/0xa0 fs/iomap/direct-io.c:690 btrfs_dio_rw+0x9c/0xe0 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+0x1ff/0x5d0 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+0x279/0x3d0 fs/splice.c:974 do_sendfile+0x5fb/0xf80 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x14f/0x1b0 fs/read_write.c:1309 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:0x7fbf8888b5a9 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:00007fbf89556168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fbf889abf80 RCX: 00007fbf8888b5a9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000004 RBP: 00007fbf895561d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fff7ca495ef R14: 00007fbf89556300 R15: 0000000000022000