Memory cgroup out of memory: Killed process 15052 (syz-executor.2) total-vm:46472kB, anon-rss:384kB, 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 0xffff888237d2b910 of 4 bytes by task 15077 on cpu 1: consume_stock mm/memcontrol.c:2323 [inline] try_charge_memcg+0xb2d/0xd10 mm/memcontrol.c:2744 try_charge mm/memcontrol.c:2931 [inline] charge_memcg mm/memcontrol.c:7284 [inline] __mem_cgroup_charge+0x63/0x100 mm/memcontrol.c:7299 mem_cgroup_charge include/linux/memcontrol.h:691 [inline] __filemap_add_folio+0xc6/0x6d0 mm/filemap.c:864 filemap_add_folio+0x70/0x160 mm/filemap.c:947 __filemap_get_folio+0x2f1/0x5b0 mm/filemap.c:1934 pagecache_get_page+0x2a/0xa0 mm/folio-compat.c:93 grab_cache_page_write_begin+0x2e/0x40 mm/folio-compat.c:103 block_write_begin+0x31/0x170 fs/buffer.c:2209 cont_write_begin+0x486/0x6b0 fs/buffer.c:2567 fat_write_begin+0x61/0xf0 fs/fat/inode.c:230 generic_perform_write+0x1d5/0x410 mm/filemap.c:3974 __generic_file_write_iter+0xa1/0x120 mm/filemap.c:4069 generic_file_write_iter+0x7d/0x1d0 mm/filemap.c:4095 call_write_iter include/linux/fs.h:2110 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0x771/0x8e0 fs/read_write.c:590 ksys_write+0xeb/0x1b0 fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:652 x64_sys_call+0x27b7/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:2 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+0x77/0x7f read to 0xffff888237d2b910 of 4 bytes by task 15052 on cpu 0: drain_all_stock+0xd3/0x2e0 mm/memcontrol.c:2431 try_charge_memcg+0x6bb/0xd10 mm/memcontrol.c:2791 try_charge mm/memcontrol.c:2931 [inline] charge_memcg mm/memcontrol.c:7284 [inline] mem_cgroup_swapin_charge_folio+0x107/0x1a0 mm/memcontrol.c:7369 __read_swap_cache_async+0x2b9/0x520 mm/swap_state.c:514 swap_cluster_readahead+0x380/0x3f0 mm/swap_state.c:697 swapin_readahead+0xe2/0x7a0 mm/swap_state.c:904 do_swap_page+0x3bb/0x15f0 mm/memory.c:4048 handle_pte_fault mm/memory.c:5303 [inline] __handle_mm_fault mm/memory.c:5441 [inline] handle_mm_fault+0x7fa/0x27e0 mm/memory.c:5606 do_user_addr_fault arch/x86/mm/fault.c:1331 [inline] handle_page_fault arch/x86/mm/fault.c:1474 [inline] exc_page_fault+0x3eb/0x690 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 value changed: 0x00000011 -> 0x0000000e Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 15052 Comm: syz-executor.2 Not tainted 6.9.0-rc7-syzkaller-00012-gdccb07f2914c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ==================================================================