================================================================== BUG: KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked read-write to 0xffffe8ffffc7cee0 of 8 bytes by interrupt on cpu 0: __cgroup_account_cputime_field+0x98/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+0x72/0x80 kernel/sched/cputime.c:176 update_process_times+0x22/0x110 kernel/time/timer.c:2069 tick_sched_handle kernel/time/tick-sched.c:243 [inline] tick_sched_timer+0x233/0x2b0 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+0x20d/0x7b0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline] __sysvec_apic_timer_interrupt+0x73/0x210 arch/x86/kernel/apic/apic.c:1113 sysvec_apic_timer_interrupt+0x68/0x80 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 selinux_inode security/selinux/include/objsec.h:164 [inline] __inode_security_revalidate security/selinux/hooks.c:256 [inline] inode_security_rcu security/selinux/hooks.c:284 [inline] selinux_inode_permission+0x190/0x410 security/selinux/hooks.c:3084 security_inode_permission+0x6a/0xa0 security/security.c:1354 inode_permission+0xbf/0x300 fs/namei.c:534 may_lookup fs/namei.c:1712 [inline] link_path_walk+0x159/0x7e0 fs/namei.c:2263 path_parentat fs/namei.c:2522 [inline] filename_parentat+0x115/0x380 fs/namei.c:2545 do_unlinkat+0x9f/0x4f0 fs/namei.c:4289 __do_sys_unlink fs/namei.c:4364 [inline] __se_sys_unlink fs/namei.c:4362 [inline] __x64_sys_unlink+0x30/0x40 fs/namei.c:4362 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 0xffffe8ffffc7cee0 of 8 bytes by task 3152 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] flush_memcg_stats_dwork+0x9b/0x120 mm/memcontrol.c:664 process_one_work+0x3e6/0x750 kernel/workqueue.c:2390 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2537 kthread+0x1a6/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x00000004b74c6a5b -> 0x00000004b7e500db Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3152 Comm: kworker/u4:5 Not tainted 6.3.0-rc5-syzkaller-00137-gf2afccfefe7b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: events_unbound flush_memcg_stats_dwork ================================================================== netdevsim netdevsim1 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0