================================================================== BUG: KCSAN: data-race in __mod_memcg_lruvec_state / mem_cgroup_css_rstat_flush write to 0xffffe8ffffd4d640 of 4 bytes by task 10 on cpu 0: mem_cgroup_css_rstat_flush+0x4ea/0x540 mm/memcontrol.c:5848 cgroup_rstat_flush_locked+0x848/0x980 kernel/cgroup/rstat.c:245 cgroup_rstat_flush+0x26/0x40 kernel/cgroup/rstat.c:277 do_flush_stats mm/memcontrol.c:745 [inline] flush_memcg_stats_dwork+0x50/0x90 mm/memcontrol.c:782 process_one_work kernel/workqueue.c:3267 [inline] process_scheduled_works+0x465/0x990 kernel/workqueue.c:3348 worker_thread+0x526/0x730 kernel/workqueue.c:3429 kthread+0x1d1/0x210 kernel/kthread.c:388 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 read-write to 0xffffe8ffffd4d640 of 4 bytes by task 4290 on cpu 1: memcg_rstat_updated mm/memcontrol.c:725 [inline] __mod_memcg_lruvec_state+0x13a/0x1a0 mm/memcontrol.c:875 __mod_lruvec_state mm/memcontrol.c:897 [inline] __lruvec_stat_mod_folio+0xce/0x120 mm/memcontrol.c:917 shmem_add_to_page_cache+0x395/0x4b0 mm/shmem.c:795 shmem_alloc_and_add_folio mm/shmem.c:1689 [inline] shmem_get_folio_gfp+0x500/0xb70 mm/shmem.c:2055 shmem_fault+0x100/0x260 mm/shmem.c:2255 __do_fault+0xb6/0x200 mm/memory.c:4531 do_read_fault mm/memory.c:4894 [inline] do_fault mm/memory.c:5024 [inline] do_pte_missing mm/memory.c:3880 [inline] handle_pte_fault mm/memory.c:5300 [inline] __handle_mm_fault mm/memory.c:5441 [inline] handle_mm_fault+0xdbf/0x27e0 mm/memory.c:5606 faultin_page mm/gup.c:958 [inline] __get_user_pages+0x470/0xec0 mm/gup.c:1257 populate_vma_page_range mm/gup.c:1697 [inline] __mm_populate+0x204/0x340 mm/gup.c:1800 mm_populate include/linux/mm.h:3413 [inline] vm_mmap_pgoff+0x1a8/0x250 mm/util.c:578 ksys_mmap_pgoff+0xc6/0x340 mm/mmap.c:1431 x64_sys_call+0x1815/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:10 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+0x77/0x7f value changed: 0x00000035 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 4290 Comm: syz-executor.1 Not tainted 6.9.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ================================================================== syz-executor.1 (4290) used greatest stack depth: 11352 bytes left