================================================================== BUG: KCSAN: data-race in pcpu_alloc_noprof / pcpu_free_area read-write to 0xffffffff88be63ac of 4 bytes by task 3317 on cpu 0: pcpu_update_empty_pages mm/percpu.c:602 [inline] pcpu_block_update_hint_free mm/percpu.c:1044 [inline] pcpu_free_area+0x4dc/0x570 mm/percpu.c:1302 free_percpu+0x1c6/0xb30 mm/percpu.c:2246 xt_percpu_counter_free+0x63/0x80 net/netfilter/x_tables.c:1951 cleanup_entry+0x195/0x1c0 net/ipv6/netfilter/ip6_tables.c:671 __do_replace+0x470/0x580 net/ipv6/netfilter/ip6_tables.c:1099 do_replace net/ipv6/netfilter/ip6_tables.c:1158 [inline] do_ip6t_set_ctl+0x820/0x8c0 net/ipv6/netfilter/ip6_tables.c:1644 nf_setsockopt+0x195/0x1b0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x10f/0x130 net/ipv6/ipv6_sockglue.c:998 tcp_setsockopt+0x93/0xb0 net/ipv4/tcp.c:4029 sock_common_setsockopt+0x64/0x80 net/core/sock.c:3809 do_sock_setsockopt net/socket.c:2311 [inline] __sys_setsockopt+0x187/0x200 net/socket.c:2336 __do_sys_setsockopt net/socket.c:2342 [inline] __se_sys_setsockopt net/socket.c:2339 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2339 x64_sys_call+0x282e/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:55 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff88be63ac of 4 bytes by task 4062 on cpu 1: pcpu_alloc_noprof+0x9b6/0x10a0 mm/percpu.c:1894 snmp6_alloc_dev net/ipv6/addrconf.c:344 [inline] ipv6_add_dev+0x2ee/0xab0 net/ipv6/addrconf.c:409 addrconf_notify+0x407/0x950 net/ipv6/addrconf.c:3655 notifier_call_chain kernel/notifier.c:93 [inline] raw_notifier_call_chain+0x6f/0x1d0 kernel/notifier.c:461 call_netdevice_notifiers_info+0xae/0x100 net/core/dev.c:1996 call_netdevice_notifiers_extack net/core/dev.c:2034 [inline] call_netdevice_notifiers net/core/dev.c:2048 [inline] register_netdevice+0xca9/0xe30 net/core/dev.c:10528 __ip_tunnel_create+0x1c5/0x270 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x18a/0x3e0 net/ipv4/ip_tunnel.c:1160 erspan_init_net+0x35/0x40 net/ipv4/ip_gre.c:1756 ops_init+0x1c9/0x260 net/core/net_namespace.c:139 setup_net+0x14d/0x600 net/core/net_namespace.c:356 copy_net_ns+0x290/0x430 net/core/net_namespace.c:494 create_new_namespaces+0x228/0x430 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0xe6/0x120 kernel/nsproxy.c:228 ksys_unshare+0x3c9/0x6e0 kernel/fork.c:3313 __do_sys_unshare kernel/fork.c:3384 [inline] __se_sys_unshare kernel/fork.c:3382 [inline] __x64_sys_unshare+0x1f/0x30 kernel/fork.c:3382 x64_sys_call+0x1a3e/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:273 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000009 -> 0x0000000a Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 4062 Comm: syz.2.275 Not tainted 6.12.0-syzkaller-00971-g158f238aa69d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 ==================================================================