================================================================== BUG: KCSAN: data-race in pcpu_alloc / pcpu_free_area read-write to 0xffffffff884054dc of 4 bytes by task 3101 on cpu 1: pcpu_update_empty_pages mm/percpu.c:602 [inline] pcpu_block_update_hint_free mm/percpu.c:1044 [inline] pcpu_free_area+0x4e2/0x570 mm/percpu.c:1302 free_percpu+0x1c6/0xb30 mm/percpu.c:2303 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+0x477/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+0x126/0x140 net/ipv6/ipv6_sockglue.c:999 tcp_setsockopt+0x93/0xb0 net/ipv4/tcp.c:3737 sock_common_setsockopt+0x64/0x80 net/core/sock.c:3727 do_sock_setsockopt net/socket.c:2311 [inline] __sys_setsockopt+0x1d8/0x250 net/socket.c:2334 __do_sys_setsockopt net/socket.c:2343 [inline] __se_sys_setsockopt net/socket.c:2340 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2340 x64_sys_call+0x1159/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:55 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff884054dc of 4 bytes by task 4305 on cpu 0: pcpu_alloc+0x9aa/0x10d0 mm/percpu.c:1868 __alloc_percpu+0x24/0x30 mm/percpu.c:1943 tcf_idr_create+0x417/0x4c0 net/sched/act_api.c:754 tcf_police_init+0x299/0xc80 net/sched/act_police.c:83 tcf_action_init_1+0x339/0x490 net/sched/act_api.c:1426 tcf_action_init+0x1a0/0x530 net/sched/act_api.c:1489 tcf_action_add net/sched/act_api.c:2062 [inline] tc_ctl_action+0x292/0x840 net/sched/act_api.c:2119 rtnetlink_rcv_msg+0x82e/0x8e0 net/core/rtnetlink.c:6595 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2559 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6613 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x58d/0x660 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x5d3/0x6e0 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:745 ____sys_sendmsg+0x312/0x410 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmsg+0x1e9/0x280 net/socket.c:2667 __do_sys_sendmsg net/socket.c:2676 [inline] __se_sys_sendmsg net/socket.c:2674 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2674 x64_sys_call+0xae9/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000b -> 0x0000000c Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 4305 Comm: syz-executor.0 Not tainted 6.9.0-rc7-syzkaller-00117-g448b3fe5a0ea #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 ================================================================== syz-executor.0 (4305) used greatest stack depth: 8856 bytes left