================================================================== BUG: KCSAN: data-race in filemap_fault / generic_write_end write to 0xffff88810a1f21b8 of 8 bytes by task 6029 on cpu 0: i_size_write include/linux/fs.h:905 [inline] generic_write_end+0xb4/0x360 fs/buffer.c:2241 ext4_da_write_end+0x4df/0x690 fs/ext4/inode.c:3010 generic_perform_write+0x253/0x3d0 mm/filemap.c:3934 ext4_buffered_write_iter+0x234/0x3e0 fs/ext4/file.c:289 ext4_file_write_iter+0xd7/0x10e0 do_iter_write+0x4ae/0x770 fs/read_write.c:860 vfs_iter_write+0x50/0x70 fs/read_write.c:901 iter_file_splice_write+0x456/0x7d0 fs/splice.c:795 do_splice_from fs/splice.c:873 [inline] direct_splice_actor+0x84/0xa0 fs/splice.c:1039 splice_direct_to_actor+0x2ee/0x5f0 fs/splice.c:994 do_splice_direct+0x104/0x180 fs/splice.c:1082 do_sendfile+0x3b8/0x950 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88810a1f21b8 of 8 bytes by task 6037 on cpu 1: i_size_read include/linux/fs.h:883 [inline] filemap_fault+0x94/0xb70 mm/filemap.c:3255 __do_fault mm/memory.c:4176 [inline] do_cow_fault mm/memory.c:4560 [inline] do_fault mm/memory.c:4661 [inline] do_pte_missing mm/memory.c:3647 [inline] handle_pte_fault mm/memory.c:4947 [inline] __handle_mm_fault mm/memory.c:5089 [inline] handle_mm_fault+0x1b38/0x2c60 mm/memory.c:5243 do_user_addr_fault arch/x86/mm/fault.c:1440 [inline] handle_page_fault arch/x86/mm/fault.c:1534 [inline] exc_page_fault+0x67e/0x780 arch/x86/mm/fault.c:1590 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 rep_movs_alternative+0x5f/0xb0 arch/x86/lib/copy_user_64.S:73 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline] copyout+0x73/0x90 lib/iov_iter.c:170 _copy_to_iter+0x27d/0x940 lib/iov_iter.c:536 copy_page_to_iter+0x1a8/0x310 lib/iov_iter.c:742 copy_folio_to_iter include/linux/uio.h:197 [inline] filemap_read+0x438/0x680 mm/filemap.c:2742 generic_file_read_iter+0x76/0x320 mm/filemap.c:2837 ext4_file_read_iter+0x1cc/0x290 do_iter_read+0x4b1/0x760 fs/read_write.c:795 vfs_readv fs/read_write.c:915 [inline] do_preadv+0x159/0x230 fs/read_write.c:1007 __do_sys_preadv fs/read_write.c:1057 [inline] __se_sys_preadv fs/read_write.c:1052 [inline] __x64_sys_preadv+0x58/0x60 fs/read_write.c:1052 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000000124000 -> 0x0000000000124aec Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 6037 Comm: syz-executor.3 Not tainted 6.3.0-syzkaller-13466-gfc4354c6e5c2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 ==================================================================