================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats / mem_cgroup_flush_stats_delayed write to 0xffffffff86e93d68 of 8 bytes by task 8640 on cpu 1: __mem_cgroup_flush_stats mm/memcontrol.c:643 [inline] mem_cgroup_flush_stats+0x97/0x110 mm/memcontrol.c:652 shrink_node+0x2fc/0x1110 mm/vmscan.c:3126 shrink_zones+0x2c1/0x5d0 mm/vmscan.c:3458 do_try_to_free_pages+0x165/0x720 mm/vmscan.c:3516 try_to_free_mem_cgroup_pages+0x1cd/0x420 mm/vmscan.c:3830 try_charge_memcg+0x270/0x960 mm/memcontrol.c:2614 try_charge mm/memcontrol.c:2749 [inline] mem_cgroup_charge_skmem+0x4d/0x130 mm/memcontrol.c:6956 sock_reserve_memory+0xaf/0x1e0 net/core/sock.c:990 sock_setsockopt+0xf63/0x1930 net/core/sock.c:1446 __sys_setsockopt+0x242/0x2b0 net/socket.c:2176 __do_sys_setsockopt net/socket.c:2191 [inline] __se_sys_setsockopt net/socket.c:2188 [inline] __x64_sys_setsockopt+0x62/0x70 net/socket.c:2188 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+0x44/0xae read to 0xffffffff86e93d68 of 8 bytes by task 8637 on cpu 0: mem_cgroup_flush_stats_delayed+0x21/0x140 mm/memcontrol.c:657 workingset_refault+0x3c2/0x7b0 mm/workingset.c:358 filemap_add_folio+0xe2/0x150 mm/filemap.c:973 page_cache_ra_unbounded+0x19e/0x2e0 mm/readahead.c:243 do_page_cache_ra mm/readahead.c:291 [inline] page_cache_ra_order+0xd1/0xe0 mm/readahead.c:546 do_sync_mmap_readahead+0x31e/0x370 mm/filemap.c:3046 filemap_fault+0x197/0x740 mm/filemap.c:3138 __do_fault mm/memory.c:3915 [inline] do_cow_fault+0x225/0x610 mm/memory.c:4270 do_fault+0x351/0xb20 mm/memory.c:4371 handle_pte_fault mm/memory.c:4627 [inline] __handle_mm_fault mm/memory.c:4763 [inline] handle_mm_fault+0x825/0xa40 mm/memory.c:4861 faultin_page mm/gup.c:878 [inline] __get_user_pages+0x306/0xb80 mm/gup.c:1099 populate_vma_page_range mm/gup.c:1442 [inline] __mm_populate+0x26e/0x3a0 mm/gup.c:1555 mm_populate include/linux/mm.h:2701 [inline] vm_mmap_pgoff+0x160/0x1f0 mm/util.c:524 ksys_mmap_pgoff+0x265/0x320 mm/mmap.c:1628 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+0x44/0xae value changed: 0x00000000ffffc2e3 -> 0x00000000ffffc2e4 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8637 Comm: syz-executor.5 Not tainted 5.18.0-rc5-syzkaller-00178-g30c8e80f7932-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================