================================================================== BUG: KCSAN: data-race in __mod_memcg_lruvec_state / mem_cgroup_css_rstat_flush write to 0xffffe8ffffd44540 of 4 bytes by task 39 on cpu 0: 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:3254 [inline] process_scheduled_works+0x465/0x990 kernel/workqueue.c:3335 worker_thread+0x526/0x730 kernel/workqueue.c:3416 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 read-write to 0xffffe8ffffd44540 of 4 bytes by task 11487 on cpu 1: memcg_rstat_updated mm/memcontrol.c:725 [inline] __mod_memcg_lruvec_state+0x13a/0x1a0 mm/memcontrol.c:875 __mod_lruvec_state+0x3c/0x50 mm/memcontrol.c:897 __update_lru_size include/linux/mm_inline.h:47 [inline] update_lru_size include/linux/mm_inline.h:56 [inline] lruvec_del_folio include/linux/mm_inline.h:356 [inline] __page_cache_release+0x2fa/0x4a0 mm/swap.c:82 page_cache_release mm/swap.c:110 [inline] __folio_put_small mm/swap.c:117 [inline] __folio_put+0x70/0x100 mm/swap.c:142 folio_put include/linux/mm.h:1506 [inline] put_page include/linux/mm.h:1578 [inline] aio_free_ring+0x169/0x2a0 fs/aio.c:344 ioctx_alloc+0x495/0x4b0 fs/aio.c:838 __do_sys_io_setup fs/aio.c:1405 [inline] __se_sys_io_setup+0x6b/0x1b0 fs/aio.c:1388 __x64_sys_io_setup+0x31/0x40 fs/aio.c:1388 x64_sys_call+0x8b2/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:207 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000037 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 11487 Comm: syz-executor.1 Tainted: G W 6.9.0-rc5-syzkaller-00159-gc942a0cd3603 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ==================================================================