Memory cgroup out of memory: Killed process 24885 (syz-executor.4) total-vm:48360kB, anon-rss:380kB, file-rss:8960kB, shmem-rss:0kB, UID:0 pgtables:80kB oom_score_adj:1000 ================================================================== BUG: KCSAN: data-race in drain_all_stock / try_charge_memcg write to 0xffff888237c2a690 of 4 bytes by task 3099 on cpu 0: consume_stock mm/memcontrol.c:2322 [inline] try_charge_memcg+0xb46/0xd20 mm/memcontrol.c:2743 obj_cgroup_charge_pages+0xbd/0x1c0 mm/memcontrol.c:3301 obj_cgroup_charge+0xec/0x140 mm/memcontrol.c:3592 __memcg_slab_pre_alloc_hook+0xe3/0x120 mm/slub.c:1929 memcg_slab_pre_alloc_hook mm/slub.c:1950 [inline] slab_pre_alloc_hook mm/slub.c:3766 [inline] slab_alloc_node mm/slub.c:3842 [inline] kmem_cache_alloc+0x18d/0x2d0 mm/slub.c:3867 vm_area_dup+0x2c/0x130 kernel/fork.c:480 dup_mmap kernel/fork.c:695 [inline] dup_mm kernel/fork.c:1685 [inline] copy_mm+0x67b/0x1070 kernel/fork.c:1734 copy_process+0x1002/0x20a0 kernel/fork.c:2497 kernel_clone+0x169/0x560 kernel/fork.c:2902 __do_sys_clone kernel/fork.c:3045 [inline] __se_sys_clone kernel/fork.c:3029 [inline] __x64_sys_clone+0xe8/0x120 kernel/fork.c:3029 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff888237c2a690 of 4 bytes by task 24885 on cpu 1: drain_all_stock+0xd3/0x2e0 mm/memcontrol.c:2430 try_charge_memcg+0x6c2/0xd20 mm/memcontrol.c:2790 try_charge mm/memcontrol.c:2930 [inline] charge_memcg mm/memcontrol.c:7276 [inline] mem_cgroup_swapin_charge_folio+0x107/0x190 mm/memcontrol.c:7361 __read_swap_cache_async+0x2b9/0x510 mm/swap_state.c:498 swap_cluster_readahead+0x380/0x3f0 mm/swap_state.c:681 swapin_readahead+0xe2/0x7a0 mm/swap_state.c:888 do_swap_page+0x3bb/0x15e0 mm/memory.c:3913 handle_pte_fault mm/memory.c:5167 [inline] __handle_mm_fault mm/memory.c:5305 [inline] handle_mm_fault+0x7f6/0x27c0 mm/memory.c:5470 do_user_addr_fault arch/x86/mm/fault.c:1355 [inline] handle_page_fault arch/x86/mm/fault.c:1498 [inline] exc_page_fault+0x401/0x6d0 arch/x86/mm/fault.c:1554 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 value changed: 0x00000038 -> 0x00000037 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 24885 Comm: syz-executor.4 Not tainted 6.8.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 ==================================================================