================================================================== BUG: KCSAN: data-race in do_try_to_free_pages / shrink_node write to 0xffff88813a3d9870 of 8 bytes by task 3250 on cpu 1: snapshot_refaults mm/vmscan.c:6139 [inline] do_try_to_free_pages+0x95f/0xce0 mm/vmscan.c:6201 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:6493 try_charge_memcg+0x280/0xd30 mm/memcontrol.c:2742 try_charge mm/memcontrol.c:2884 [inline] charge_memcg mm/memcontrol.c:7210 [inline] mem_cgroup_swapin_charge_folio+0x107/0x190 mm/memcontrol.c:7295 __read_swap_cache_async+0x2f6/0x550 mm/swap_state.c:490 swap_cluster_readahead+0x27c/0x4c0 mm/swap_state.c:655 swapin_readahead+0xe9/0x7f0 mm/swap_state.c:878 do_swap_page+0x4a0/0x1670 mm/memory.c:3884 handle_pte_fault mm/memory.c:5042 [inline] __handle_mm_fault mm/memory.c:5180 [inline] handle_mm_fault+0xa36/0x2dd0 mm/memory.c:5345 do_user_addr_fault arch/x86/mm/fault.c:1364 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x3ff/0x6c0 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 read to 0xffff88813a3d9870 of 8 bytes by task 3242 on cpu 0: prepare_scan_control mm/vmscan.c:2249 [inline] shrink_node+0x3b3/0x15c0 mm/vmscan.c:5875 shrink_zones mm/vmscan.c:6116 [inline] do_try_to_free_pages+0x43d/0xce0 mm/vmscan.c:6178 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:6493 try_charge_memcg+0x280/0xd30 mm/memcontrol.c:2742 try_charge mm/memcontrol.c:2884 [inline] charge_memcg mm/memcontrol.c:7210 [inline] mem_cgroup_swapin_charge_folio+0x107/0x190 mm/memcontrol.c:7295 __read_swap_cache_async+0x2f6/0x550 mm/swap_state.c:490 swap_cluster_readahead+0x27c/0x4c0 mm/swap_state.c:655 swapin_readahead+0xe9/0x7f0 mm/swap_state.c:878 do_swap_page+0x4a0/0x1670 mm/memory.c:3884 handle_pte_fault mm/memory.c:5042 [inline] __handle_mm_fault mm/memory.c:5180 [inline] handle_mm_fault+0xa36/0x2dd0 mm/memory.c:5345 do_user_addr_fault arch/x86/mm/fault.c:1364 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x3ff/0x6c0 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 value changed: 0x000000000000c986 -> 0x000000000000c988 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3242 Comm: syz-executor.2 Tainted: G W 6.7.0-rc6-syzkaller-00248-g5254c0cbc92d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ==================================================================