================================================================== BUG: KCSAN: data-race in drain_all_stock / refill_stock read-write to 0xffff888237d28370 of 4 bytes by task 4211 on cpu 1: __refill_stock mm/memcontrol.c:2247 [inline] refill_stock+0xcf/0x130 mm/memcontrol.c:2258 obj_cgroup_uncharge_pages+0x75/0x130 mm/memcontrol.c:2978 __memcg_kmem_uncharge_page+0x4f/0x100 mm/memcontrol.c:3051 free_pages_prepare mm/page_alloc.c:1363 [inline] free_pcp_prepare+0x5e/0x1d0 mm/page_alloc.c:1443 free_unref_page_prepare mm/page_alloc.c:3343 [inline] free_unref_page+0x23/0x100 mm/page_alloc.c:3438 __vunmap+0x615/0x750 mm/vmalloc.c:2665 __vfree mm/vmalloc.c:2713 [inline] __vmalloc_area_node mm/vmalloc.c:3048 [inline] __vmalloc_node_range+0xdfd/0xef0 mm/vmalloc.c:3165 kvmalloc_node+0xf3/0x140 mm/util.c:634 kvmalloc include/linux/slab.h:750 [inline] xt_alloc_table_info+0x39/0x70 net/netfilter/x_tables.c:1192 do_replace net/ipv6/netfilter/ip6_tables.c:1142 [inline] do_ip6t_set_ctl+0x645/0x1790 net/ipv6/netfilter/ip6_tables.c:1639 nf_setsockopt+0x1a6/0x1c0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x2721/0x2a90 net/ipv6/ipv6_sockglue.c:1026 udpv6_setsockopt+0x85/0x90 net/ipv6/udp.c:1652 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3581 __sys_setsockopt+0x212/0x2b0 net/socket.c:2259 __do_sys_setsockopt net/socket.c:2270 [inline] __se_sys_setsockopt net/socket.c:2267 [inline] __x64_sys_setsockopt+0x62/0x70 net/socket.c:2267 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+0x46/0xb0 read to 0xffff888237d28370 of 4 bytes by task 4215 on cpu 0: drain_all_stock+0xb5/0x2e0 mm/memcontrol.c:2288 try_charge_memcg+0x68a/0x960 mm/memcontrol.c:2630 obj_cgroup_charge_pages mm/memcontrol.c:2999 [inline] __memcg_kmem_charge_page+0x2e4/0x480 mm/memcontrol.c:3025 __alloc_pages+0x1c1/0x340 mm/page_alloc.c:5443 alloc_pages+0x34d/0x450 vm_area_alloc_pages mm/vmalloc.c:2927 [inline] __vmalloc_area_node mm/vmalloc.c:2995 [inline] __vmalloc_node_range+0x730/0xef0 mm/vmalloc.c:3165 kvmalloc_node+0xf3/0x140 mm/util.c:634 kvmalloc include/linux/slab.h:750 [inline] xt_alloc_table_info+0x39/0x70 net/netfilter/x_tables.c:1192 do_replace net/ipv6/netfilter/ip6_tables.c:1142 [inline] do_ip6t_set_ctl+0x645/0x1790 net/ipv6/netfilter/ip6_tables.c:1639 nf_setsockopt+0x1a6/0x1c0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x2721/0x2a90 net/ipv6/ipv6_sockglue.c:1026 udpv6_setsockopt+0x85/0x90 net/ipv6/udp.c:1652 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3581 __sys_setsockopt+0x212/0x2b0 net/socket.c:2259 __do_sys_setsockopt net/socket.c:2270 [inline] __se_sys_setsockopt net/socket.c:2267 [inline] __x64_sys_setsockopt+0x62/0x70 net/socket.c:2267 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+0x46/0xb0 value changed: 0x00000018 -> 0x00000011 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 4215 Comm: syz-executor.1 Not tainted 5.19.0-rc4-syzkaller-00036-gd9b2ba67917c-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================