================================================================== BUG: KCSAN: data-race in pcpu_alloc_noprof / pcpu_free_area read-write to 0xffffffff88bff2ec of 4 bytes by task 4692 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+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+0x186/0x1b0 net/ipv4/netfilter/ip_tables.c:654 __do_replace+0x467/0x570 net/ipv4/netfilter/ip_tables.c:1082 do_replace net/ipv4/netfilter/ip_tables.c:1141 [inline] do_ipt_set_ctl+0x811/0x8b0 net/ipv4/netfilter/ip_tables.c:1635 nf_setsockopt+0x195/0x1b0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xea/0x100 net/ipv4/ip_sockglue.c:1424 tcp_setsockopt+0x93/0xb0 net/ipv4/tcp.c:4030 sock_common_setsockopt+0x64/0x80 net/core/sock.c:3814 do_sock_setsockopt net/socket.c:2313 [inline] __sys_setsockopt+0x187/0x200 net/socket.c:2338 __do_sys_setsockopt net/socket.c:2344 [inline] __se_sys_setsockopt net/socket.c:2341 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2341 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 0xffffffff88bff2ec of 4 bytes by task 7542 on cpu 0: pcpu_alloc_noprof+0x9b6/0x10a0 mm/percpu.c:1894 bpf_prog_alloc_no_stats+0xf7/0x380 kernel/bpf/core.c:113 bpf_prog_alloc+0x3a/0x150 kernel/bpf/core.c:146 bpf_prog_load+0x4d1/0x1070 kernel/bpf/syscall.c:2857 __sys_bpf+0x463/0x7a0 kernel/bpf/syscall.c:5790 __do_sys_bpf kernel/bpf/syscall.c:5897 [inline] __se_sys_bpf kernel/bpf/syscall.c:5895 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5895 x64_sys_call+0x2914/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:322 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: 0x0000000f -> 0x00000010 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 7542 Comm: syz.1.1527 Not tainted 6.12.0-syzkaller-07834-g06afb0f36106 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 ==================================================================