================================================================== BUG: KCSAN: data-race in next_uptodate_folio / shmem_write_end write to 0xffff88813263f8a0 of 8 bytes by task 4765 on cpu 1: i_size_write include/linux/fs.h:932 [inline] shmem_write_end+0x9a/0x470 mm/shmem.c:2743 generic_perform_write+0x267/0x410 mm/filemap.c:3929 shmem_file_write_iter+0xc8/0xe0 mm/shmem.c:2895 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x48a/0x790 fs/read_write.c:584 ksys_write+0xeb/0x1a0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:646 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff88813263f8a0 of 8 bytes by task 4774 on cpu 0: i_size_read include/linux/fs.h:910 [inline] next_uptodate_folio+0x5c9/0x7a0 mm/filemap.c:3408 filemap_map_pages+0x708/0x900 mm/filemap.c:3556 do_fault_around mm/memory.c:4587 [inline] do_read_fault mm/memory.c:4620 [inline] do_fault mm/memory.c:4763 [inline] do_pte_missing mm/memory.c:3731 [inline] handle_pte_fault mm/memory.c:5039 [inline] __handle_mm_fault mm/memory.c:5180 [inline] handle_mm_fault+0x1239/0x2dd0 mm/memory.c:5345 faultin_page mm/gup.c:956 [inline] __get_user_pages+0x402/0xe40 mm/gup.c:1239 populate_vma_page_range mm/gup.c:1677 [inline] __mm_populate+0x216/0x330 mm/gup.c:1786 mm_populate include/linux/mm.h:3379 [inline] vm_mmap_pgoff+0x1a7/0x240 mm/util.c:561 ksys_mmap_pgoff+0x2b8/0x330 mm/mmap.c:1425 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x0000000000e7f000 -> 0x0000000000e82000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 4774 Comm: syz-executor.5 Not tainted 6.7.0-rc6-syzkaller-00022-g55cb5f43689d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ==================================================================