================================================================== BUG: KCSAN: data-race in page_counter_try_charge / page_counter_try_charge write to 0xffff8880a7691150 of 8 bytes by task 9872 on cpu 0: page_counter_try_charge+0x77/0x170 mm/page_counter.c:139 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/ipv6/netfilter/ip6_tables.c:1142 [inline] do_ip6t_set_ctl+0x18f/0x333 net/ipv6/netfilter/ip6_tables.c:1681 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xa0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt net/ipv6/ipv6_sockglue.c:949 [inline] ipv6_setsockopt+0x118/0x130 net/ipv6/ipv6_sockglue.c:933 tcp_setsockopt net/ipv4/tcp.c:3165 [inline] tcp_setsockopt+0x6c/0xb0 net/ipv4/tcp.c:3159 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 0xffff8880a7691150 of 8 bytes by task 9868 on cpu 1: page_counter_try_charge+0x56/0x170 mm/page_counter.c:138 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/ipv6/netfilter/ip6_tables.c:1142 [inline] do_ip6t_set_ctl+0x18f/0x333 net/ipv6/netfilter/ip6_tables.c:1681 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xa0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt net/ipv6/ipv6_sockglue.c:949 [inline] ipv6_setsockopt+0x118/0x130 net/ipv6/ipv6_sockglue.c:933 tcp_setsockopt net/ipv4/tcp.c:3165 [inline] tcp_setsockopt+0x6c/0xb0 net/ipv4/tcp.c:3159 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: 9868 Comm: syz-executor.4 Not tainted 5.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================