================================================================== BUG: KCSAN: data-race in __mod_memcg_lruvec_state / mem_cgroup_css_rstat_flush write to 0xffff888237c344c0 of 4 bytes by task 49 on cpu 1: 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 0xffff888237c344c0 of 4 bytes by task 14925 on cpu 0: 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 folio_add_new_anon_rmap+0x10d/0x180 mm/rmap.c:1441 set_pte_range+0x216/0x670 mm/memory.c:4678 finish_fault+0x3fc/0x510 mm/memory.c:4757 do_cow_fault mm/memory.c:4933 [inline] do_fault mm/memory.c:5026 [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+0x11f3/0x27e0 mm/memory.c:5606 do_user_addr_fault arch/x86/mm/fault.c:1382 [inline] handle_page_fault arch/x86/mm/fault.c:1474 [inline] exc_page_fault+0x2f5/0x690 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 value changed: 0x0000003c -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 14925 Comm: modprobe Tainted: G W 6.9.0-rc7-syzkaller-00023-g6d7ddd805123 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 ==================================================================