================================================================== BUG: KCSAN: data-race in mem_cgroup_iter / mem_cgroup_iter read to 0xffff888114df9e68 of 4 bytes by task 8028 on cpu 0: mem_cgroup_iter+0xba/0x380 mm/memcontrol.c:1018 shrink_node_memcgs mm/vmscan.c:5849 [inline] shrink_node+0x458/0x1d40 mm/vmscan.c:5928 shrink_zones mm/vmscan.c:6172 [inline] do_try_to_free_pages+0x3c6/0xc50 mm/vmscan.c:6234 try_to_free_mem_cgroup_pages+0x1f3/0x4f0 mm/vmscan.c:6566 try_charge_memcg+0x2bc/0x810 mm/memcontrol.c:2210 try_charge mm/memcontrol-v1.h:20 [inline] charge_memcg mm/memcontrol.c:4438 [inline] mem_cgroup_swapin_charge_folio+0x107/0x1a0 mm/memcontrol.c:4523 __read_swap_cache_async+0x2b7/0x520 mm/swap_state.c:516 swap_cluster_readahead+0x276/0x3f0 mm/swap_state.c:680 swapin_readahead+0xe4/0x760 mm/swap_state.c:882 do_swap_page+0x3da/0x1ef0 mm/memory.c:4136 handle_pte_fault mm/memory.c:5541 [inline] __handle_mm_fault mm/memory.c:5681 [inline] handle_mm_fault+0x8c5/0x2a20 mm/memory.c:5849 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x3b9/0x650 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 read-write to 0xffff888114df9e68 of 4 bytes by task 3269 on cpu 1: mem_cgroup_iter+0x28e/0x380 mm/memcontrol.c:1080 shrink_node_memcgs mm/vmscan.c:5904 [inline] shrink_node+0x74a/0x1d40 mm/vmscan.c:5928 shrink_zones mm/vmscan.c:6172 [inline] do_try_to_free_pages+0x3c6/0xc50 mm/vmscan.c:6234 try_to_free_mem_cgroup_pages+0x1f3/0x4f0 mm/vmscan.c:6566 try_charge_memcg+0x2bc/0x810 mm/memcontrol.c:2210 try_charge mm/memcontrol-v1.h:20 [inline] charge_memcg mm/memcontrol.c:4438 [inline] mem_cgroup_swapin_charge_folio+0x107/0x1a0 mm/memcontrol.c:4523 __read_swap_cache_async+0x2b7/0x520 mm/swap_state.c:516 swap_cluster_readahead+0x276/0x3f0 mm/swap_state.c:680 swapin_readahead+0xe4/0x760 mm/swap_state.c:882 do_swap_page+0x3da/0x1ef0 mm/memory.c:4136 handle_pte_fault mm/memory.c:5541 [inline] __handle_mm_fault mm/memory.c:5681 [inline] handle_mm_fault+0x8c5/0x2a20 mm/memory.c:5849 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x3b9/0x650 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 value changed: 0x000003f8 -> 0x000003f9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3269 Comm: syz-executor Tainted: G W 6.11.0-syzkaller-02574-ga430d95c5efa #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 ==================================================================