================================================================== BUG: KCSAN: data-race in next_uptodate_page / shmem_write_end write to 0xffff88812fb590e0 of 8 bytes by task 26165 on cpu 1: i_size_write include/linux/fs.h:891 [inline] shmem_write_end+0x59/0x380 mm/shmem.c:2519 generic_perform_write+0x264/0x3f0 mm/filemap.c:3749 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3866 generic_file_write_iter+0x79/0x1c0 mm/filemap.c:3898 call_write_iter include/linux/fs.h:2192 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x468/0x760 fs/read_write.c:578 ksys_write+0xe8/0x1a0 fs/read_write.c:631 __do_sys_write fs/read_write.c:643 [inline] __se_sys_write fs/read_write.c:640 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:640 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 read to 0xffff88812fb590e0 of 8 bytes by task 26166 on cpu 0: i_size_read include/linux/fs.h:869 [inline] next_uptodate_page+0x2d4/0x520 mm/filemap.c:3293 next_map_page mm/filemap.c:3318 [inline] filemap_map_pages+0x9d1/0xae0 mm/filemap.c:3390 do_fault_around mm/memory.c:4487 [inline] do_read_fault mm/memory.c:4513 [inline] do_fault+0x433/0xb20 mm/memory.c:4647 handle_pte_fault mm/memory.c:4911 [inline] __handle_mm_fault mm/memory.c:5053 [inline] handle_mm_fault+0x889/0xa90 mm/memory.c:5151 faultin_page mm/gup.c:955 [inline] __get_user_pages+0x328/0xc00 mm/gup.c:1195 populate_vma_page_range mm/gup.c:1552 [inline] __mm_populate+0x26e/0x3a0 mm/gup.c:1665 mm_populate include/linux/mm.h:2656 [inline] vm_mmap_pgoff+0x160/0x1f0 mm/util.c:557 ksys_mmap_pgoff+0x265/0x320 mm/mmap.c:1586 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 value changed: 0x0000000000ddf000 -> 0x0000000000de3000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 26166 Comm: syz-executor.3 Tainted: G W 5.19.0-syzkaller-13236-g426b4ca2d6a5-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 ==================================================================