================================================================== BUG: KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end write to 0xffff888138d95b40 of 8 bytes by task 28388 on cpu 1: i_size_write include/linux/fs.h:932 [inline] shmem_write_end+0x9a/0x470 mm/shmem.c:2741 generic_perform_write+0x267/0x410 mm/filemap.c:3941 shmem_file_write_iter+0xc8/0xe0 mm/shmem.c:2893 call_write_iter include/linux/fs.h:2085 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0x760/0x8d0 fs/read_write.c:590 ksys_write+0xeb/0x1a0 fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:652 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff888138d95b40 of 8 bytes by task 28390 on cpu 0: i_size_read include/linux/fs.h:910 [inline] shmem_get_folio_gfp+0x13f/0xb40 mm/shmem.c:1973 shmem_get_folio mm/shmem.c:2134 [inline] shmem_file_read_iter+0x152/0x550 mm/shmem.c:2788 do_iter_readv_writev+0x2b0/0x330 vfs_readv+0x1e5/0x640 fs/read_write.c:932 do_preadv fs/read_write.c:1049 [inline] __do_sys_preadv fs/read_write.c:1099 [inline] __se_sys_preadv fs/read_write.c:1094 [inline] __x64_sys_preadv+0x100/0x1c0 fs/read_write.c:1094 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x0000000000ebc000 -> 0x0000000000ebf000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 28390 Comm: syz-executor.1 Not tainted 6.8.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ==================================================================