================================================================== BUG: KCSAN: data-race in page_counter_charge / page_counter_charge write to 0xffff88812b33b150 of 8 bytes by task 12546 on cpu 0: page_counter_charge+0x80/0xc0 mm/page_counter.c:86 try_charge+0x1ee/0xbc0 mm/memcontrol.c:2632 __memcg_kmem_charge_memcg+0x4a/0xe0 mm/memcontrol.c:2945 __memcg_kmem_charge+0xde/0x240 mm/memcontrol.c:2985 __alloc_pages_nodemask+0x26c/0x310 mm/page_alloc.c:4777 alloc_pages_current+0xd1/0x170 mm/mempolicy.c:2188 alloc_pages include/linux/gfp.h:509 [inline] __vmalloc_area_node mm/vmalloc.c:2432 [inline] __vmalloc_node_range+0x2d7/0x4c0 mm/vmalloc.c:2496 __vmalloc_node mm/vmalloc.c:2551 [inline] __vmalloc_node_flags_caller+0x6b/0x90 mm/vmalloc.c:2573 kvmalloc_node+0xea/0x100 mm/util.c:573 kvmalloc include/linux/mm.h:670 [inline] xt_alloc_table_info+0x4a/0x90 net/netfilter/x_tables.c:1176 do_replace net/ipv4/netfilter/ip_tables.c:1125 [inline] do_ipt_set_ctl+0x192/0x30b net/ipv4/netfilter/ip_tables.c:1672 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x6e/0xb0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1260 [inline] ip_setsockopt+0xed/0x100 net/ipv4/ip_sockglue.c:1240 udp_setsockopt+0x71/0xc0 net/ipv4/udp.c:2609 read to 0xffff88812b33b150 of 8 bytes by task 12584 on cpu 1: page_counter_charge+0x5f/0xc0 mm/page_counter.c:85 try_charge+0x1ee/0xbc0 mm/memcontrol.c:2632 __memcg_kmem_charge_memcg+0x4a/0xe0 mm/memcontrol.c:2945 __memcg_kmem_charge+0xde/0x240 mm/memcontrol.c:2985 __alloc_pages_nodemask+0x26c/0x310 mm/page_alloc.c:4777 alloc_pages_current+0xd1/0x170 mm/mempolicy.c:2188 alloc_pages include/linux/gfp.h:509 [inline] __vmalloc_area_node mm/vmalloc.c:2432 [inline] __vmalloc_node_range+0x2d7/0x4c0 mm/vmalloc.c:2496 __vmalloc_node mm/vmalloc.c:2551 [inline] __vmalloc_node_flags_caller+0x6b/0x90 mm/vmalloc.c:2573 kvmalloc_node+0xea/0x100 mm/util.c:573 kvmalloc include/linux/mm.h:670 [inline] xt_alloc_table_info+0x4a/0x90 net/netfilter/x_tables.c:1176 do_replace net/ipv4/netfilter/ip_tables.c:1125 [inline] do_ipt_set_ctl+0x192/0x30b net/ipv4/netfilter/ip_tables.c:1672 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x6e/0xb0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1260 [inline] ip_setsockopt+0xed/0x100 net/ipv4/ip_sockglue.c:1240 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 12584 Comm: syz-executor.3 Not tainted 5.4.0-rc3+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================