================================================================== BUG: KCSAN: data-race in page_counter_try_charge / page_counter_try_charge write to 0xffff88809bb31158 of 8 bytes by task 23938 on cpu 1: page_counter_try_charge+0x100/0x170 mm/page_counter.c:129 try_charge+0x185/0xbf0 mm/memcontrol.c:2405 __memcg_kmem_charge_memcg+0x4a/0xe0 mm/memcontrol.c:2837 __memcg_kmem_charge+0xcf/0x1b0 mm/memcontrol.c:2877 __alloc_pages_nodemask+0x26c/0x310 mm/page_alloc.c:4755 alloc_pages_current+0xd1/0x170 mm/mempolicy.c:2211 alloc_pages include/linux/gfp.h:532 [inline] __vmalloc_area_node mm/vmalloc.c:2490 [inline] __vmalloc_node_range+0x2c4/0x4a0 mm/vmalloc.c:2554 __vmalloc_node mm/vmalloc.c:2609 [inline] __vmalloc_node_flags_caller+0x6b/0x90 mm/vmalloc.c:2631 kvmalloc_node+0xea/0x100 mm/util.c:583 kvmalloc include/linux/mm.h:645 [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/0x330 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:2640 sock_common_setsockopt+0x67/0x90 net/core/sock.c:3149 __sys_setsockopt+0x1ce/0x370 net/socket.c:2130 __do_sys_setsockopt net/socket.c:2146 [inline] __se_sys_setsockopt net/socket.c:2143 [inline] __x64_sys_setsockopt+0x70/0x90 net/socket.c:2143 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88809bb31158 of 8 bytes by task 23889 on cpu 0: page_counter_try_charge+0xef/0x170 mm/page_counter.c:129 try_charge+0x185/0xbf0 mm/memcontrol.c:2405 __memcg_kmem_charge_memcg+0x4a/0xe0 mm/memcontrol.c:2837 __memcg_kmem_charge+0xcf/0x1b0 mm/memcontrol.c:2877 __alloc_pages_nodemask+0x26c/0x310 mm/page_alloc.c:4755 alloc_pages_current+0xd1/0x170 mm/mempolicy.c:2211 alloc_pages include/linux/gfp.h:532 [inline] __vmalloc_area_node mm/vmalloc.c:2490 [inline] __vmalloc_node_range+0x2c4/0x4a0 mm/vmalloc.c:2554 __vmalloc_node mm/vmalloc.c:2609 [inline] __vmalloc_node_flags_caller+0x6b/0x90 mm/vmalloc.c:2631 kvmalloc_node+0xea/0x100 mm/util.c:583 kvmalloc include/linux/mm.h:645 [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/0x330 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:2640 sock_common_setsockopt+0x67/0x90 net/core/sock.c:3149 __sys_setsockopt+0x1ce/0x370 net/socket.c:2130 __do_sys_setsockopt net/socket.c:2146 [inline] __se_sys_setsockopt net/socket.c:2143 [inline] __x64_sys_setsockopt+0x70/0x90 net/socket.c:2143 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 23889 Comm: syz-executor.2 Not tainted 5.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================