================================================================== BUG: KCSAN: data-race in page_counter_charge / page_counter_try_charge write to 0xffff88812b33b150 of 8 bytes by task 8631 on cpu 0: page_counter_charge+0x80/0xc0 mm/page_counter.c:86 mem_cgroup_migrate+0x95/0x1d0 mm/memcontrol.c:6798 migrate_page_states+0x52f/0x930 mm/migrate.c:651 migrate_page_copy+0x288/0x9a0 mm/migrate.c:662 migrate_page+0xf2/0x150 mm/migrate.c:690 move_to_new_page+0xcb/0x3d0 mm/migrate.c:950 __unmap_and_move mm/migrate.c:1116 [inline] unmap_and_move mm/migrate.c:1197 [inline] migrate_pages+0x1318/0x19a0 mm/migrate.c:1427 do_mbind mm/mempolicy.c:1300 [inline] kernel_mbind+0x9a6/0xaa0 mm/mempolicy.c:1419 __do_sys_mbind mm/mempolicy.c:1426 [inline] __se_sys_mbind mm/mempolicy.c:1422 [inline] __x64_sys_mbind+0x89/0xb0 mm/mempolicy.c:1422 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88812b33b150 of 8 bytes by task 8645 on cpu 1: page_counter_try_charge+0x58/0x170 mm/page_counter.c:138 try_charge+0x182/0xbc0 mm/memcontrol.c:2522 __memcg_kmem_charge_memcg+0x4a/0xe0 mm/memcontrol.c:2945 __memcg_kmem_charge+0xde/0x240 mm/memcontrol.c:2985 __alloc_pages_nodemask+0x26c/0x310 mm/page_alloc.c:4777 alloc_pages_current+0xd1/0x170 mm/mempolicy.c:2188 alloc_pages include/linux/gfp.h:532 [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+0x151a/0x1a80 mm/memory.c:992 dup_mmap kernel/fork.c:601 [inline] dup_mm+0x74a/0xba0 kernel/fork.c:1361 copy_mm kernel/fork.c:1417 [inline] copy_process+0x36f3/0x3b50 kernel/fork.c:2012 _do_fork+0xfe/0x6e0 kernel/fork.c:2366 __do_sys_clone kernel/fork.c:2521 [inline] __se_sys_clone kernel/fork.c:2502 [inline] __x64_sys_clone+0x12b/0x160 kernel/fork.c:2502 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8645 Comm: syz-executor.4 Not tainted 5.4.0-rc6+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================