================================================================== BUG: KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked read-write to 0xffffe8ffffd79868 of 8 bytes by interrupt on cpu 1: __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 crc32_body lib/crc32.c:106 [inline] crc32_le_generic lib/crc32.c:179 [inline] __crc32c_le_base+0xa3/0x520 lib/crc32.c:201 chksum_update+0x32/0x50 crypto/crc32c_generic.c:88 crypto_shash_update+0x136/0x1a0 crypto/shash.c:121 ext4_chksum fs/ext4/ext4.h:2464 [inline] ext4_dirblock_csum fs/ext4/namei.c:381 [inline] ext4_dirblock_csum_set fs/ext4/namei.c:429 [inline] ext4_handle_dirty_dirblock+0x26d/0x340 fs/ext4/namei.c:437 add_dirent_to_buf+0x35e/0x440 fs/ext4/namei.c:2195 ext4_add_entry+0x3d6/0x1e70 fs/ext4/namei.c:2423 ext4_add_nondir+0x50/0x190 fs/ext4/namei.c:2771 ext4_symlink+0x4c5/0x580 fs/ext4/namei.c:3410 vfs_symlink+0xc2/0x1a0 fs/namei.c:4398 do_symlinkat+0xe3/0x320 fs/namei.c:4424 __do_sys_symlinkat fs/namei.c:4440 [inline] __se_sys_symlinkat fs/namei.c:4437 [inline] __x64_sys_symlinkat+0x62/0x70 fs/namei.c:4437 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 0xffffe8ffffd79868 of 8 bytes by task 3147 on cpu 0: 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: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: 0x00000001c6f79f1b -> 0x00000001c790359b Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3147 Comm: syz-executor.3 Not tainted 6.3.0-rc4-syzkaller-00039-gffe78bbd5121 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 ==================================================================