================================================================== BUG: KCSAN: data-race in __mod_memcg_lruvec_state / mem_cgroup_css_rstat_flush read-write to 0xffffe8ffffc50300 of 4 bytes by interrupt on cpu 0: memcg_rstat_updated mm/memcontrol.c:725 [inline] __mod_memcg_lruvec_state+0x13a/0x1a0 mm/memcontrol.c:875 mod_memcg_lruvec_state include/linux/memcontrol.h:1082 [inline] mod_objcg_mlstate mm/memcontrol.c:3003 [inline] drain_obj_stock+0x3c7/0x4f0 mm/memcontrol.c:3491 refill_obj_stock+0x86/0x1e0 mm/memcontrol.c:3534 obj_cgroup_uncharge+0xe/0x20 mm/memcontrol.c:3602 __memcg_slab_free_hook+0xa9/0x130 mm/slub.c:2000 memcg_slab_free_hook mm/slub.c:2020 [inline] slab_free mm/slub.c:4278 [inline] kmem_cache_free+0x18b/0x250 mm/slub.c:4344 proc_free_inode+0x7b/0x90 fs/proc/inode.c:80 i_callback+0x36/0x70 fs/inode.c:250 rcu_do_batch kernel/rcu/tree.c:2196 [inline] rcu_core+0x594/0xbf0 kernel/rcu/tree.c:2471 rcu_core_si+0xd/0x20 kernel/rcu/tree.c:2488 __do_softirq+0xc8/0x285 kernel/softirq.c:554 run_ksoftirqd+0x17/0x30 kernel/softirq.c:924 smpboot_thread_fn+0x31c/0x4c0 kernel/smpboot.c:164 kthread+0x1d1/0x210 kernel/kthread.c:388 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 write to 0xffffe8ffffc50300 of 4 bytes by task 3201 on cpu 1: mem_cgroup_css_rstat_flush+0x4ea/0x540 mm/memcontrol.c:5848 cgroup_rstat_flush_locked+0x848/0x980 kernel/cgroup/rstat.c:245 cgroup_rstat_flush+0x26/0x40 kernel/cgroup/rstat.c:277 do_flush_stats mm/memcontrol.c:745 [inline] flush_memcg_stats_dwork+0x50/0x90 mm/memcontrol.c:782 process_one_work kernel/workqueue.c:3267 [inline] process_scheduled_works+0x465/0x990 kernel/workqueue.c:3348 worker_thread+0x526/0x730 kernel/workqueue.c:3429 kthread+0x1d1/0x210 kernel/kthread.c:388 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 value changed: 0x00000010 -> 0x00000011 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3201 Comm: kworker/u8:6 Not tainted 6.9.0-rc6-syzkaller-00232-gddb4c3f25b7b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: events_unbound flush_memcg_stats_dwork ==================================================================