================================================================== BUG: KCSAN: data-race in pcpu_alloc / pcpu_alloc read-write to 0xffffffff86eeb29c of 4 bytes by task 6311 on cpu 0: pcpu_update_empty_pages mm/percpu.c:602 [inline] pcpu_chunk_populated mm/percpu.c:1531 [inline] pcpu_alloc+0xa1f/0x12a0 mm/percpu.c:1863 __alloc_percpu+0x24/0x30 mm/percpu.c:1945 xt_percpu_counter_alloc+0x72/0x110 net/netfilter/x_tables.c:1930 find_check_entry net/ipv6/netfilter/ip6_tables.c:545 [inline] translate_table+0x99f/0x1040 net/ipv6/netfilter/ip6_tables.c:733 ip6t_register_table+0x9a/0x440 net/ipv6/netfilter/ip6_tables.c:1743 ip6table_raw_table_init+0x77/0xa0 net/ipv6/netfilter/ip6table_raw.c:48 xt_find_table_lock+0x190/0x260 net/netfilter/x_tables.c:1259 xt_request_find_table_lock+0x26/0xa0 net/netfilter/x_tables.c:1284 get_info net/ipv6/netfilter/ip6_tables.c:979 [inline] do_ip6t_get_ctl+0x552/0xbf0 net/ipv6/netfilter/ip6_tables.c:1660 nf_getsockopt+0x184/0x1a0 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x183/0x1e0 net/ipv6/ipv6_sockglue.c:1500 tcp_getsockopt+0xa7/0xd0 net/ipv4/tcp.c:4284 sock_common_getsockopt+0x57/0x70 net/core/sock.c:3672 __sys_getsockopt+0x175/0x1d0 net/socket.c:2354 __do_sys_getsockopt net/socket.c:2369 [inline] __se_sys_getsockopt net/socket.c:2366 [inline] __x64_sys_getsockopt+0x66/0x80 net/socket.c:2366 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffffff86eeb29c of 4 bytes by task 6312 on cpu 1: pcpu_alloc+0xa59/0x12a0 mm/percpu.c:1870 __alloc_percpu_gfp+0x26/0x30 mm/percpu.c:1932 fib_nh_common_init+0x48/0x2b0 net/ipv4/fib_semantics.c:591 fib6_nh_init+0xdbd/0x15c0 net/ipv6/route.c:3610 ip6_route_info_create+0x799/0xb60 net/ipv6/route.c:3799 ip6_route_add+0x26/0x100 net/ipv6/route.c:3843 addrconf_prefix_route net/ipv6/addrconf.c:2434 [inline] fixup_permanent_addr net/ipv6/addrconf.c:3537 [inline] addrconf_permanent_addr+0x43b/0x590 net/ipv6/addrconf.c:3561 addrconf_notify+0x6a4/0x980 net/ipv6/addrconf.c:3633 notifier_call_chain kernel/notifier.c:93 [inline] raw_notifier_call_chain+0x6b/0x1c0 kernel/notifier.c:461 __dev_notify_flags+0x205/0x3d0 dev_change_flags+0xab/0xd0 net/core/dev.c:8674 do_setlink+0x9f6/0x2430 net/core/rtnetlink.c:2880 __rtnl_newlink net/core/rtnetlink.c:3671 [inline] rtnl_newlink+0x1183/0x1670 net/core/rtnetlink.c:3718 rtnetlink_rcv_msg+0x807/0x8c0 net/core/rtnetlink.c:6444 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2545 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6462 netlink_unicast_kernel net/netlink/af_netlink.c:1342 [inline] netlink_unicast+0x589/0x650 net/netlink/af_netlink.c:1368 netlink_sendmsg+0x66e/0x770 net/netlink/af_netlink.c:1910 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg net/socket.c:753 [inline] __sys_sendto+0x257/0x310 net/socket.c:2177 __do_sys_sendto net/socket.c:2189 [inline] __se_sys_sendto net/socket.c:2185 [inline] __x64_sys_sendto+0x78/0x90 net/socket.c:2185 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0xffffffff -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 6312 Comm: syz-executor.1 Not tainted 6.6.0-rc1-syzkaller-00115-g9fdfb15a3dbf #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 ================================================================== 8021q: adding VLAN 0 to HW filter on device bond0 8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device batadv0 veth0_vlan: entered promiscuous mode veth1_vlan: entered promiscuous mode veth0_macvtap: entered promiscuous mode veth1_macvtap: entered promiscuous mode batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: batadv0: Interface activated: batadv_slave_0 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: batadv0: Interface activated: batadv_slave_1 netdevsim netdevsim1 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim1 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim1 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim1 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0