================================================================== BUG: KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked read-write to 0xffffe8ffffc6dc90 of 8 bytes by interrupt on cpu 0: __cgroup_account_cputime_field+0xae/0x100 cgroup_account_cputime_field include/linux/cgroup.h:737 [inline] task_group_account_field kernel/sched/cputime.c:113 [inline] account_system_index_time+0x7e/0x90 kernel/sched/cputime.c:176 update_process_times+0x22/0x120 kernel/time/timer.c:2069 tick_sched_handle kernel/time/tick-sched.c:243 [inline] tick_sched_timer+0x23f/0x2c0 kernel/time/tick-sched.c:1480 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x224/0x7c0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline] __sysvec_apic_timer_interrupt+0xa7/0x250 arch/x86/kernel/apic/apic.c:1113 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 kcsan_setup_watchpoint+0x3fe/0x410 kernel/kcsan/core.c:696 release_pages+0x82/0x7f0 mm/swap.c:973 free_pages_and_swap_cache+0x6e/0x80 mm/swap_state.c:317 tlb_batch_pages_flush mm/mmu_gather.c:97 [inline] tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu+0x2e2/0x360 mm/mmu_gather.c:299 zap_pte_range mm/memory.c:1487 [inline] zap_pmd_range mm/memory.c:1536 [inline] zap_pud_range mm/memory.c:1565 [inline] zap_p4d_range mm/memory.c:1586 [inline] unmap_page_range+0x1a66/0x1e60 mm/memory.c:1607 unmap_single_vma+0x13c/0x1c0 mm/memory.c:1653 unmap_vmas+0x157/0x200 mm/memory.c:1692 exit_mmap+0x158/0x520 mm/mmap.c:3036 __mmput+0x28/0x1c0 kernel/fork.c:1209 mmput+0x49/0x60 kernel/fork.c:1231 exit_mm+0xe1/0x180 kernel/exit.c:563 do_exit+0x589/0x1710 kernel/exit.c:856 do_group_exit+0x101/0x150 kernel/exit.c:1019 get_signal+0xea9/0xfe0 kernel/signal.c:2859 arch_do_signal_or_restart+0x89/0x2b0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop+0x6d/0xe0 kernel/entry/common.c:168 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffe8ffffc6dc90 of 8 bytes by task 3143 on cpu 1: cgroup_base_stat_flush kernel/cgroup/rstat.c:373 [inline] cgroup_rstat_flush_locked+0x2c3/0x700 kernel/cgroup/rstat.c:199 cgroup_rstat_flush_irqsafe+0x28/0x40 kernel/cgroup/rstat.c:254 __mem_cgroup_flush_stats mm/memcontrol.c:645 [inline] mem_cgroup_flush_stats+0xc5/0x120 mm/memcontrol.c:653 prepare_scan_count mm/vmscan.c:2848 [inline] shrink_node+0x321/0x14f0 mm/vmscan.c:6471 shrink_zones mm/vmscan.c:6711 [inline] do_try_to_free_pages+0x40d/0xc80 mm/vmscan.c:6773 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:7088 reclaim_high+0xca/0x110 mm/memcontrol.c:2403 mem_cgroup_handle_over_high+0x8c/0x1a0 mm/memcontrol.c:2588 resume_user_mode_work include/linux/resume_user_mode.h:58 [inline] exit_to_user_mode_loop+0x99/0xe0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000f6b3b6df5 -> 0x0000000f6bd3d491 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3143 Comm: syz-executor.0 Not tainted 6.3.0-rc3-syzkaller-00005-g7d31677bb7b1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 ==================================================================