================================================================== BUG: KCSAN: data-race in __cgroup_account_cputime / cgroup_rstat_flush_locked read-write to 0xffffe8ffffc70d58 of 8 bytes by interrupt 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 enqueue_entity kernel/sched/fair.c:4836 [inline] enqueue_task_fair+0x120/0x820 kernel/sched/fair.c:6318 enqueue_task kernel/sched/core.c:2082 [inline] activate_task+0xd8/0x110 kernel/sched/core.c:2112 ttwu_do_activate+0x5d/0x1c0 kernel/sched/core.c:3735 ttwu_queue kernel/sched/core.c:3985 [inline] try_to_wake_up+0x280/0x5c0 kernel/sched/core.c:4307 hrtimer_wakeup+0x36/0x50 kernel/time/hrtimer.c:1939 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x20d/0x7b0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x73/0x210 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x68/0x80 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 kcsan_setup_watchpoint+0x3fe/0x410 kernel/kcsan/core.c:705 ext4_blocks_count fs/ext4/ext4.h:3213 [inline] ext4_read_inode_bitmap+0x8b/0xc10 fs/ext4/ialloc.c:138 __ext4_new_inode+0xc1b/0x2290 fs/ext4/ialloc.c:1054 ext4_symlink+0x242/0x580 fs/ext4/namei.c:3393 vfs_symlink+0xc2/0x1a0 fs/namei.c:4475 do_symlinkat+0xe3/0x320 fs/namei.c:4501 __do_sys_symlinkat fs/namei.c:4517 [inline] __se_sys_symlinkat fs/namei.c:4514 [inline] __x64_sys_symlinkat+0x62/0x70 fs/namei.c:4514 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 0xffffe8ffffc70d58 of 8 bytes by task 3097 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:2915 [inline] shrink_node+0x2fa/0x1500 mm/vmscan.c:6500 shrink_zones mm/vmscan.c:6737 [inline] do_try_to_free_pages+0x40d/0xc80 mm/vmscan.c:6799 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:7114 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: 0x00000007f266ae7e -> 0x00000007f276c83b Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3097 Comm: syz-executor.4 Not tainted 6.4.0-rc4-syzkaller-00276-ge5282a7d8f6b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 ==================================================================