================================================================== BUG: KCSAN: data-race in shmem_getattr / shmem_recalc_inode read-write to 0xffff8881196f1180 of 8 bytes by task 11404 on cpu 1: shmem_recalc_inode+0x36/0x1c0 mm/shmem.c:442 shmem_alloc_and_add_folio mm/shmem.c:1947 [inline] shmem_get_folio_gfp+0x7a3/0xd60 mm/shmem.c:2529 shmem_get_folio mm/shmem.c:2635 [inline] shmem_write_begin+0xa8/0x190 mm/shmem.c:3285 generic_perform_write+0x184/0x490 mm/filemap.c:4103 shmem_file_write_iter+0xc5/0xf0 mm/shmem.c:3460 __kernel_write_iter+0x256/0x4c0 fs/read_write.c:619 dump_emit_page fs/coredump.c:1112 [inline] dump_user_range+0x407/0x8c0 fs/coredump.c:1186 elf_core_dump+0x1dc2/0x1f80 fs/binfmt_elf.c:2075 do_coredump+0x1dfd/0x27b0 fs/coredump.c:950 get_signal+0xd85/0xf70 kernel/signal.c:3019 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] irqentry_exit_to_user_mode+0x5e/0xa0 kernel/entry/common.c:184 irqentry_exit+0x12/0x50 kernel/entry/common.c:287 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 read to 0xffff8881196f1180 of 8 bytes by task 9223 on cpu 0: shmem_getattr+0x41/0x200 mm/shmem.c:1250 vfs_getattr_nosec+0x143/0x1e0 fs/stat.c:213 vfs_getattr fs/stat.c:262 [inline] vfs_statx_path fs/stat.c:299 [inline] vfs_statx+0x113/0x390 fs/stat.c:356 vfs_fstatat+0x115/0x170 fs/stat.c:375 __do_sys_newfstatat fs/stat.c:542 [inline] __se_sys_newfstatat+0x55/0x260 fs/stat.c:536 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:536 x64_sys_call+0x2c22/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:263 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x000000000000015e -> 0x0000000000000160 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 9223 Comm: syz-executor Not tainted 6.15.0-syzkaller-10820-gcd2e103d57e5 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================