================================================================== BUG: KCSAN: data-race in filemap_fault / generic_write_end write to 0xffff8881061b13d0 of 8 bytes by task 5229 on cpu 0: i_size_write include/linux/fs.h:873 [inline] generic_write_end+0x96/0x180 fs/buffer.c:2183 ext4_da_write_end+0x59b/0x730 fs/ext4/inode.c:3110 generic_perform_write+0x23e/0x3a0 mm/filemap.c:3687 ext4_buffered_write_iter+0x2f2/0x3f0 fs/ext4/file.c:269 ext4_file_write_iter+0x2e7/0x11d0 fs/ext4/file.c:519 call_write_iter include/linux/fs.h:2116 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x69d/0x770 fs/read_write.c:605 ksys_write+0xce/0x180 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:667 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881061b13d0 of 8 bytes by task 5240 on cpu 1: i_size_read include/linux/fs.h:851 [inline] filemap_fault+0x88/0x7b0 mm/filemap.c:2987 ext4_filemap_fault+0x4b/0x60 fs/ext4/inode.c:6194 __do_fault mm/memory.c:3678 [inline] do_shared_fault mm/memory.c:4034 [inline] do_fault mm/memory.c:4112 [inline] handle_pte_fault mm/memory.c:4367 [inline] __handle_mm_fault mm/memory.c:4502 [inline] handle_mm_fault+0xf76/0x1a70 mm/memory.c:4600 do_user_addr_fault+0x60c/0xc00 arch/x86/mm/fault.c:1390 handle_page_fault arch/x86/mm/fault.c:1475 [inline] exc_page_fault+0x94/0x230 arch/x86/mm/fault.c:1531 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:577 copy_user_enhanced_fast_string+0xe/0x40 arch/x86/lib/copy_user_64.S:205 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline] copyout lib/iov_iter.c:189 [inline] copy_page_to_iter_iovec lib/iov_iter.c:260 [inline] copy_page_to_iter+0x32d/0x860 lib/iov_iter.c:979 filemap_read+0xf06/0x1230 mm/filemap.c:2621 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2717 ext4_file_read_iter+0x1db/0x290 fs/ext4/file.c:73 call_read_iter include/linux/fs.h:2110 [inline] new_sync_read fs/read_write.c:415 [inline] vfs_read+0x565/0x5d0 fs/read_write.c:496 ksys_read+0xce/0x180 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:642 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 5240 Comm: syz-executor.3 Not tainted 5.12.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================