================================================================== BUG: KCSAN: data-race in drain_all_stock / drain_stock write to 0xffff888237c28628 of 8 bytes by task 22804 on cpu 0: drain_stock+0x88/0xf0 mm/memcontrol.c:2268 __refill_stock mm/memcontrol.c:2304 [inline] refill_stock+0x85/0x130 mm/memcontrol.c:2319 try_charge_memcg+0x733/0x9b0 mm/memcontrol.c:2772 try_charge mm/memcontrol.c:2830 [inline] charge_memcg+0x54/0x250 mm/memcontrol.c:6947 __mem_cgroup_charge+0x25/0xa0 mm/memcontrol.c:6968 mem_cgroup_charge include/linux/memcontrol.h:671 [inline] wp_page_copy+0x30a/0x1710 mm/memory.c:3113 do_wp_page+0x22a/0x640 mm/memory.c:3447 handle_pte_fault mm/memory.c:4949 [inline] __handle_mm_fault mm/memory.c:5073 [inline] handle_mm_fault+0x644/0xb20 mm/memory.c:5219 do_user_addr_fault+0x4a1/0x980 arch/x86/mm/fault.c:1428 handle_page_fault arch/x86/mm/fault.c:1519 [inline] exc_page_fault+0x60/0x160 arch/x86/mm/fault.c:1575 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 read to 0xffff888237c28628 of 8 bytes by task 22625 on cpu 1: drain_all_stock+0xb3/0x2b0 mm/memcontrol.c:2348 try_charge_memcg+0x5cd/0x9b0 mm/memcontrol.c:2696 obj_cgroup_charge_pages mm/memcontrol.c:3102 [inline] obj_cgroup_charge+0x171/0x2b0 mm/memcontrol.c:3392 memcg_slab_pre_alloc_hook mm/slab.h:511 [inline] slab_pre_alloc_hook mm/slab.h:725 [inline] slab_alloc_node mm/slab.c:3247 [inline] kmem_cache_alloc_node+0x9b/0x380 mm/slab.c:3534 alloc_task_struct_node kernel/fork.c:171 [inline] dup_task_struct+0x5b/0x2a0 kernel/fork.c:979 copy_process+0x37e/0x2090 kernel/fork.c:2097 kernel_clone+0x166/0x550 kernel/fork.c:2681 __do_sys_clone kernel/fork.c:2822 [inline] __se_sys_clone kernel/fork.c:2806 [inline] __x64_sys_clone+0xc3/0xf0 kernel/fork.c:2806 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0xffff88813ba10000 -> 0xffff88813b717000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 22625 Comm: syz-executor.1 Not tainted 6.2.0-rc5-syzkaller-00047-g7c46948a6e9c-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 ==================================================================