================================================================== BUG: KCSAN: data-race in shmem_add_to_page_cache / shmem_getattr read-write to 0xffff88811ba58818 of 8 bytes by task 3308 on cpu 1: shmem_add_to_page_cache+0x418/0x530 mm/shmem.c:926 shmem_alloc_and_add_folio mm/shmem.c:1958 [inline] shmem_get_folio_gfp+0x4e8/0xd50 mm/shmem.c:2556 shmem_get_folio mm/shmem.c:2662 [inline] shmem_write_begin+0xfc/0x1f0 mm/shmem.c:3315 generic_perform_write+0x184/0x490 mm/filemap.c:4314 shmem_file_write_iter+0xc5/0xf0 mm/shmem.c:3490 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x52a/0x960 fs/read_write.c:686 ksys_write+0xda/0x1a0 fs/read_write.c:738 __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x40/0x50 fs/read_write.c:746 x64_sys_call+0x2847/0x3000 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xca/0x2b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88811ba58818 of 8 bytes by task 3576 on cpu 0: shmem_getattr+0x68/0x200 mm/shmem.c:1262 vfs_getattr_nosec+0x146/0x1e0 fs/stat.c:213 vfs_getattr fs/stat.c:262 [inline] vfs_fstat fs/stat.c:281 [inline] __do_sys_newfstat fs/stat.c:555 [inline] __se_sys_newfstat+0x96/0x2e0 fs/stat.c:550 __x64_sys_newfstat+0x31/0x40 fs/stat.c:550 x64_sys_call+0x2c51/0x3000 arch/x86/include/generated/asm/syscalls_64.h:6 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xca/0x2b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000000000000 -> 0x0000000000000001 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3576 Comm: udevd Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 ==================================================================