================================================================== BUG: KCSAN: data-race in page_counter_try_charge / page_counter_try_charge write to 0xffff88821b66f150 of 8 bytes by task 7338 on cpu 0: page_counter_try_charge+0x7e/0x170 mm/page_counter.c:139 try_charge+0x182/0xb50 mm/memcontrol.c:2395 __memcg_kmem_charge_memcg+0x48/0xd0 mm/memcontrol.c:2818 __memcg_kmem_charge+0xcf/0x1b0 mm/memcontrol.c:2848 __alloc_pages_nodemask+0x38f/0x4d0 mm/page_alloc.c:4738 alloc_pages_current+0xd1/0x170 mm/mempolicy.c:2153 alloc_pages include/linux/gfp.h:509 [inline] __pte_alloc_one include/asm-generic/pgalloc.h:63 [inline] pte_alloc_one+0x30/0xa0 arch/x86/mm/pgtable.c:26 __pte_alloc+0x2d/0x220 mm/memory.c:408 copy_pte_range mm/memory.c:798 [inline] copy_pmd_range mm/memory.c:874 [inline] copy_pud_range mm/memory.c:908 [inline] copy_p4d_range mm/memory.c:930 [inline] copy_page_range+0x1243/0x1860 mm/memory.c:992 dup_mmap kernel/fork.c:592 [inline] dup_mm+0x74a/0xba0 kernel/fork.c:1346 copy_mm kernel/fork.c:1402 [inline] copy_process+0x32c9/0x37f0 kernel/fork.c:2017 _do_fork+0xfe/0x6e0 kernel/fork.c:2371 __do_sys_clone kernel/fork.c:2526 [inline] __se_sys_clone kernel/fork.c:2507 [inline] __x64_sys_clone+0x12b/0x160 kernel/fork.c:2507 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296 read to 0xffff88821b66f150 of 8 bytes by task 7662 on cpu 1: page_counter_try_charge+0x58/0x170 mm/page_counter.c:138 try_charge+0x182/0xb50 mm/memcontrol.c:2395 mem_cgroup_try_charge+0xd2/0x260 mm/memcontrol.c:6205 mem_cgroup_try_charge_delay+0x3a/0x80 mm/memcontrol.c:6220 __do_huge_pmd_anonymous_page mm/huge_memory.c:570 [inline] do_huge_pmd_anonymous_page+0x3df/0x10a0 mm/huge_memory.c:760 create_huge_pmd mm/memory.c:3731 [inline] __handle_mm_fault+0x1f88/0x2d00 mm/memory.c:3935 handle_mm_fault+0x21b/0x520 mm/memory.c:4001 do_user_addr_fault arch/x86/mm/fault.c:1441 [inline] __do_page_fault+0x3fb/0x9e0 arch/x86/mm/fault.c:1506 do_page_fault+0x54/0x233 arch/x86/mm/fault.c:1530 page_fault+0x34/0x40 arch/x86/entry/entry_64.S:1202 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7662 Comm: syz-executor.2 Not tainted 5.3.0+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================