================================================================== BUG: KCSAN: data-race in __mod_memcg_lruvec_state / mem_cgroup_css_rstat_flush write to 0xffff888237d344c0 of 4 bytes by task 35 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 0xffff888237d344c0 of 4 bytes by task 13775 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 lruvec_stat_mod_folio include/linux/vmstat.h:568 [inline] lruvec_stat_sub_folio include/linux/vmstat.h:633 [inline] pagetable_pud_dtor include/linux/mm.h:3114 [inline] ___pud_free_tlb+0xc1/0x160 arch/x86/mm/pgtable.c:81 __pud_free_tlb arch/x86/include/asm/pgalloc.h:130 [inline] free_pud_range mm/memory.c:260 [inline] free_p4d_range mm/memory.c:278 [inline] free_pgd_range+0x85d/0x910 mm/memory.c:358 free_pgtables+0x32f/0x360 mm/memory.c:405 exit_mmap+0x2c5/0x6f0 mm/mmap.c:3278 __mmput+0x28/0x1c0 kernel/fork.c:1346 mmput+0x4c/0x60 kernel/fork.c:1368 exit_mm+0xe4/0x190 kernel/exit.c:569 do_exit+0x57e/0x1740 kernel/exit.c:865 do_group_exit+0x142/0x150 kernel/exit.c:1027 __do_sys_exit_group kernel/exit.c:1038 [inline] __se_sys_exit_group kernel/exit.c:1036 [inline] __x64_sys_exit_group+0x1f/0x20 kernel/exit.c:1036 x64_sys_call+0x27c1/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:232 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: 0x00000026 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 13775 Comm: syz-executor.2 Not tainted 6.9.0-rc6-syzkaller-00131-gf03359bca01b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ==================================================================