================================================================== BUG: KCSAN: data-race in cgroup_rstat_flush_locked / cgroup_rstat_updated write to 0xffffe8ffffc193a8 of 8 bytes by task 8 on cpu 1: cgroup_rstat_cpu_pop_updated kernel/cgroup/rstat.c:139 [inline] cgroup_rstat_flush_locked+0x282/0x7f0 kernel/cgroup/rstat.c:161 cgroup_rstat_flush_irqsafe+0x24/0x40 kernel/cgroup/rstat.c:218 mem_cgroup_flush_stats mm/memcontrol.c:5354 [inline] flush_memcg_stats_work+0x34/0x60 mm/memcontrol.c:5366 process_one_work+0x402/0x910 kernel/workqueue.c:2297 worker_thread+0x636/0xae0 kernel/workqueue.c:2444 kthread+0x262/0x280 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 read to 0xffffe8ffffc193a8 of 8 bytes by task 1790 on cpu 0: cgroup_rstat_updated+0x53/0x1c0 kernel/cgroup/rstat.c:38 __count_memcg_events mm/memcontrol.c:788 [inline] mem_cgroup_charge_statistics mm/memcontrol.c:812 [inline] charge_memcg mm/memcontrol.c:6706 [inline] __mem_cgroup_charge+0xb8/0x170 mm/memcontrol.c:6734 mem_cgroup_charge include/linux/memcontrol.h:694 [inline] do_anonymous_page+0x1a5/0x8b0 mm/memory.c:3771 handle_pte_fault mm/memory.c:4556 [inline] __handle_mm_fault mm/memory.c:4693 [inline] handle_mm_fault+0x7cd/0x1530 mm/memory.c:4791 do_user_addr_fault+0x609/0xbe0 arch/x86/mm/fault.c:1390 handle_page_fault arch/x86/mm/fault.c:1475 [inline] exc_page_fault+0x91/0x220 arch/x86/mm/fault.c:1531 asm_exc_page_fault+0x1e/0x30 value changed: 0xffff88810100a010 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1790 Comm: modprobe Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================