================================================================== BUG: KCSAN: data-race in drain_all_stock / try_charge_memcg write to 0xffff888237c2a3c0 of 4 bytes by task 31063 on cpu 0: consume_stock mm/memcontrol.c:2297 [inline] try_charge_memcg+0xb49/0xd30 mm/memcontrol.c:2703 obj_cgroup_charge_pages+0xab/0x130 mm/memcontrol.c:3255 __memcg_kmem_charge_page+0x9c/0x170 mm/memcontrol.c:3281 __alloc_pages+0x1bb/0x340 mm/page_alloc.c:4585 alloc_pages_mpol+0xb1/0x1d0 mm/mempolicy.c:2133 alloc_pages+0xe0/0x100 mm/mempolicy.c:2204 vm_area_alloc_pages mm/vmalloc.c:3063 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0x6d2/0xea0 mm/vmalloc.c:3320 __bpf_map_area_alloc kernel/bpf/syscall.c:308 [inline] bpf_map_area_alloc+0xd8/0x100 kernel/bpf/syscall.c:315 bloom_map_alloc+0x1aa/0x2b0 kernel/bpf/bloom_filter.c:134 map_create+0x713/0xa40 kernel/bpf/syscall.c:1210 __sys_bpf+0x62a/0x780 kernel/bpf/syscall.c:5365 __do_sys_bpf kernel/bpf/syscall.c:5487 [inline] __se_sys_bpf kernel/bpf/syscall.c:5485 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5485 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff888237c2a3c0 of 4 bytes by task 31057 on cpu 1: drain_all_stock+0xd3/0x2d0 mm/memcontrol.c:2405 try_charge_memcg+0x6c5/0xd30 mm/memcontrol.c:2750 obj_cgroup_charge_pages+0xab/0x130 mm/memcontrol.c:3255 __memcg_kmem_charge_page+0x9c/0x170 mm/memcontrol.c:3281 __alloc_pages+0x1bb/0x340 mm/page_alloc.c:4585 alloc_pages_mpol+0xb1/0x1d0 mm/mempolicy.c:2133 alloc_pages+0xe0/0x100 mm/mempolicy.c:2204 vm_area_alloc_pages mm/vmalloc.c:3063 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0x6d2/0xea0 mm/vmalloc.c:3320 __bpf_map_area_alloc kernel/bpf/syscall.c:308 [inline] bpf_map_area_alloc+0xd8/0x100 kernel/bpf/syscall.c:315 bloom_map_alloc+0x1aa/0x2b0 kernel/bpf/bloom_filter.c:134 map_create+0x713/0xa40 kernel/bpf/syscall.c:1210 __sys_bpf+0x62a/0x780 kernel/bpf/syscall.c:5365 __do_sys_bpf kernel/bpf/syscall.c:5487 [inline] __se_sys_bpf kernel/bpf/syscall.c:5485 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5485 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00000028 -> 0x00000014 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 31057 Comm: syz-executor.1 Not tainted 6.7.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 ==================================================================