================================================================== BUG: KCSAN: data-race in shmem_getattr / shmem_recalc_inode read-write to 0xffff88810a30ae90 of 8 bytes by task 24821 on cpu 1: shmem_recalc_inode+0x36/0x1c0 mm/shmem.c:442 shmem_alloc_and_add_folio mm/shmem.c:1948 [inline] shmem_get_folio_gfp+0x7a3/0xd60 mm/shmem.c:2536 shmem_get_folio mm/shmem.c:2642 [inline] shmem_write_begin+0xa8/0x190 mm/shmem.c:3292 generic_perform_write+0x184/0x490 mm/filemap.c:4112 shmem_file_write_iter+0xc5/0xf0 mm/shmem.c:3467 __kernel_write_iter+0x256/0x4c0 fs/read_write.c:619 __kernel_write+0x8f/0xc0 fs/read_write.c:639 __dump_emit fs/coredump.c:1034 [inline] dump_emit+0x194/0x260 fs/coredump.c:1072 elf_core_dump+0x1760/0x1f80 fs/binfmt_elf.c:2027 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+0x7a/0x100 kernel/entry/common.c:111 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x1d6/0x200 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88810a30ae90 of 8 bytes by task 16677 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: 0x0000000000000000 -> 0x0000000000000001 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 16677 Comm: syz-executor Not tainted 6.16.0-rc4-syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================