================================================================== BUG: KCSAN: data-race in __cgroup_account_cputime / cgroup_rstat_flush_locked read-write to 0xffffe8ffffc7a610 of 8 bytes by task 3094 on cpu 0: __cgroup_account_cputime+0x44/0xa0 kernel/cgroup/rstat.c:415 cgroup_account_cputime include/linux/cgroup.h:724 [inline] update_curr+0xf8/0x250 kernel/sched/fair.c:930 put_prev_entity+0x1d/0x110 kernel/sched/fair.c:5141 pick_next_task_fair+0x20f/0x280 kernel/sched/fair.c:8059 __pick_next_task kernel/sched/core.c:5972 [inline] pick_next_task kernel/sched/core.c:6488 [inline] __schedule+0x290/0x8b0 kernel/sched/core.c:6633 preempt_schedule_common kernel/sched/core.c:6838 [inline] __cond_resched+0x28/0x50 kernel/sched/core.c:8516 might_resched include/linux/kernel.h:111 [inline] __ext4_journal_get_write_access+0x48/0x450 fs/ext4/ext4_jbd2.c:235 ext4_free_inode+0x3ab/0x810 fs/ext4/ialloc.c:312 ext4_evict_inode+0xb1e/0xdc0 fs/ext4/inode.c:303 evict+0x1aa/0x410 fs/inode.c:665 iput_final fs/inode.c:1747 [inline] iput+0x42c/0x5b0 fs/inode.c:1773 do_unlinkat+0x2b9/0x4f0 fs/namei.c:4400 __do_sys_unlink fs/namei.c:4441 [inline] __se_sys_unlink fs/namei.c:4439 [inline] __x64_sys_unlink+0x30/0x40 fs/namei.c:4439 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffe8ffffc7a610 of 8 bytes by task 3070 on cpu 1: cgroup_base_stat_flush kernel/cgroup/rstat.c:373 [inline] cgroup_rstat_flush_locked+0x2e1/0x700 kernel/cgroup/rstat.c:199 cgroup_rstat_flush+0x2b/0x40 kernel/cgroup/rstat.c:239 do_flush_stats mm/memcontrol.c:658 [inline] mem_cgroup_flush_stats+0x9f/0xd0 mm/memcontrol.c:672 prepare_scan_count mm/vmscan.c:2914 [inline] shrink_node+0x2fa/0x1500 mm/vmscan.c:6499 shrink_zones mm/vmscan.c:6736 [inline] do_try_to_free_pages+0x40d/0xc80 mm/vmscan.c:6798 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:7113 reclaim_high+0xca/0x110 mm/memcontrol.c:2432 mem_cgroup_handle_over_high+0x8c/0x1a0 mm/memcontrol.c:2617 resume_user_mode_work include/linux/resume_user_mode.h:58 [inline] exit_to_user_mode_loop+0x9b/0xe0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000b61efd9a0 -> 0x0000000b61f61fe1 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3070 Comm: syz-executor.0 Not tainted 6.4.0-rc2-syzkaller-00163-g2d1bcbc6cd70 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 ==================================================================