================================================================== BUG: KCSAN: data-race in mem_cgroup_iter / mem_cgroup_iter read-write to 0xffff88811506de68 of 4 bytes by task 6127 on cpu 0: 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+0x8cb/0x2a30 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 to 0xffff88811506de68 of 4 bytes by task 7281 on cpu 1: mem_cgroup_iter+0x93/0x380 mm/memcontrol.c:1019 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 obj_cgroup_charge_pages+0xbd/0x1a0 mm/memcontrol.c:2660 __memcg_kmem_charge_page+0x9d/0x170 mm/memcontrol.c:2687 __alloc_pages_noprof+0x1bc/0x360 mm/page_alloc.c:4719 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] bpf_ringbuf_area_alloc kernel/bpf/ringbuf.c:124 [inline] bpf_ringbuf_alloc+0xba/0x2f0 kernel/bpf/ringbuf.c:172 ringbuf_map_alloc+0x16b/0x1d0 kernel/bpf/ringbuf.c:207 map_create+0x83c/0xb90 kernel/bpf/syscall.c:1333 __sys_bpf+0x667/0x7a0 kernel/bpf/syscall.c:5692 __do_sys_bpf kernel/bpf/syscall.c:5817 [inline] __se_sys_bpf kernel/bpf/syscall.c:5815 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5815 x64_sys_call+0x2625/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000153 -> 0x00000154 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 7281 Comm: syz.3.1249 Not tainted 6.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 ==================================================================