================================================================== BUG: KCSAN: data-race in page_counter_try_charge / page_counter_try_charge write to 0xffff8880a080f158 of 8 bytes by task 1683 on cpu 0: page_counter_try_charge+0xf7/0x170 mm/page_counter.c:129 try_charge+0x17f/0xbe0 mm/memcontrol.c:2405 __memcg_kmem_charge_memcg+0x49/0xe0 mm/memcontrol.c:2837 __memcg_kmem_charge+0xcd/0x1b0 mm/memcontrol.c:2877 __alloc_pages_nodemask+0x268/0x310 mm/page_alloc.c:4755 alloc_pages_current+0xca/0x170 mm/mempolicy.c:2211 alloc_pages include/linux/gfp.h:532 [inline] __vmalloc_area_node mm/vmalloc.c:2490 [inline] __vmalloc_node_range+0x2de/0x4c0 mm/vmalloc.c:2554 __vmalloc_node mm/vmalloc.c:2609 [inline] __vmalloc_node_flags_caller+0x65/0x80 mm/vmalloc.c:2631 kvmalloc_node+0xe2/0x100 mm/util.c:583 kvmalloc include/linux/mm.h:645 [inline] xt_alloc_table_info+0x46/0x80 net/netfilter/x_tables.c:1176 do_replace net/ipv4/netfilter/ip_tables.c:1125 [inline] do_ipt_set_ctl+0x18f/0x32d net/ipv4/netfilter/ip_tables.c:1672 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xa0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1260 [inline] ip_setsockopt+0xe7/0x100 net/ipv4/ip_sockglue.c:1240 udp_setsockopt+0x67/0xb0 net/ipv4/udp.c:2640 sock_common_setsockopt+0x5d/0x80 net/core/sock.c:3149 __sys_setsockopt+0x1d6/0x380 net/socket.c:2130 __do_sys_setsockopt net/socket.c:2146 [inline] __se_sys_setsockopt net/socket.c:2143 [inline] __x64_sys_setsockopt+0x6b/0x80 net/socket.c:2143 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff8880a080f158 of 8 bytes by task 1209 on cpu 1: page_counter_try_charge+0xe7/0x170 mm/page_counter.c:129 try_charge+0x17f/0xbe0 mm/memcontrol.c:2405 __memcg_kmem_charge_memcg+0x49/0xe0 mm/memcontrol.c:2837 __memcg_kmem_charge+0xcd/0x1b0 mm/memcontrol.c:2877 __alloc_pages_nodemask+0x268/0x310 mm/page_alloc.c:4755 alloc_pages_current+0xca/0x170 mm/mempolicy.c:2211 alloc_pages include/linux/gfp.h:532 [inline] __vmalloc_area_node mm/vmalloc.c:2490 [inline] __vmalloc_node_range+0x2de/0x4c0 mm/vmalloc.c:2554 __vmalloc_node mm/vmalloc.c:2609 [inline] __vmalloc_node_flags_caller+0x65/0x80 mm/vmalloc.c:2631 kvmalloc_node+0xe2/0x100 mm/util.c:583 kvmalloc include/linux/mm.h:645 [inline] xt_alloc_table_info+0x46/0x80 net/netfilter/x_tables.c:1176 do_replace net/ipv4/netfilter/ip_tables.c:1125 [inline] do_ipt_set_ctl+0x18f/0x32d net/ipv4/netfilter/ip_tables.c:1672 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xa0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1260 [inline] ip_setsockopt+0xe7/0x100 net/ipv4/ip_sockglue.c:1240 udp_setsockopt+0x67/0xb0 net/ipv4/udp.c:2640 sock_common_setsockopt+0x5d/0x80 net/core/sock.c:3149 __sys_setsockopt+0x1d6/0x380 net/socket.c:2130 __do_sys_setsockopt net/socket.c:2146 [inline] __se_sys_setsockopt net/socket.c:2143 [inline] __x64_sys_setsockopt+0x6b/0x80 net/socket.c:2143 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1209 Comm: syz-executor.3 Not tainted 5.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================