================================================================== BUG: KCSAN: data-race in __cgroup_account_cputime / cgroup_rstat_flush_locked write to 0xffffe8ffffc6ed18 of 8 bytes by task 1820 on cpu 0: __cgroup_account_cputime+0x67/0xc0 kernel/cgroup/rstat.c:371 cgroup_account_cputime include/linux/cgroup.h:797 [inline] update_curr+0xf6/0x280 kernel/sched/fair.c:877 dequeue_entity+0x16/0x3f0 kernel/sched/fair.c:4371 dequeue_task_fair+0xc1/0x3c0 kernel/sched/fair.c:5720 dequeue_task kernel/sched/core.c:2030 [inline] deactivate_task kernel/sched/core.c:2044 [inline] __schedule+0x1fa/0x690 kernel/sched/core.c:6249 schedule+0x81/0xb0 kernel/sched/core.c:6368 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0xcc/0x3a0 kernel/time/hrtimer.c:2044 hrtimer_nanosleep+0x10b/0x200 kernel/time/hrtimer.c:2097 common_nsleep+0x69/0x80 kernel/time/posix-timers.c:1227 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1267 [inline] __se_sys_clock_nanosleep+0x1f1/0x220 kernel/time/posix-timers.c:1245 __x64_sys_clock_nanosleep+0x51/0x60 kernel/time/posix-timers.c:1245 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffe8ffffc6ed18 of 8 bytes by task 8824 on cpu 1: cgroup_base_stat_flush kernel/cgroup/rstat.c:328 [inline] cgroup_rstat_flush_locked+0x2e8/0x7e0 kernel/cgroup/rstat.c:161 cgroup_rstat_flush_irqsafe+0x24/0x40 kernel/cgroup/rstat.c:215 __mem_cgroup_flush_stats mm/memcontrol.c:652 [inline] flush_memcg_stats_dwork+0x6c/0xf0 mm/memcontrol.c:665 process_one_work+0x3f6/0x960 kernel/workqueue.c:2307 worker_thread+0x616/0xa70 kernel/workqueue.c:2454 kthread+0x1bf/0x1e0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 value changed: 0x0000001a9696822c -> 0x0000001a9697882a Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8824 Comm: kworker/u4:29 Not tainted 5.17.0-rc2-syzkaller-00054-g27bb0b18c208 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound flush_memcg_stats_dwork ==================================================================