================================================================== BUG: KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc read-write to 0xffffffff88be03ac of 4 bytes by task 3315 on cpu 0: pcpu_update_empty_pages mm/percpu.c:602 [inline] pcpu_block_update_hint_alloc+0x5db/0x6a0 mm/percpu.c:923 pcpu_alloc_area+0x488/0x4b0 mm/percpu.c:1258 pcpu_alloc_noprof+0x4bb/0x10a0 mm/percpu.c:1834 xt_percpu_counter_alloc+0x79/0x110 net/netfilter/x_tables.c:1931 find_check_entry net/ipv6/netfilter/ip6_tables.c:545 [inline] translate_table+0x9b1/0x1040 net/ipv6/netfilter/ip6_tables.c:733 ip6t_register_table+0x9a/0x440 net/ipv6/netfilter/ip6_tables.c:1751 ip6table_raw_table_init+0x77/0xa0 net/ipv6/netfilter/ip6table_raw.c:48 xt_find_table_lock+0x19b/0x2b0 net/netfilter/x_tables.c:1260 xt_request_find_table_lock+0x26/0xa0 net/netfilter/x_tables.c:1285 get_info net/ipv6/netfilter/ip6_tables.c:979 [inline] do_ip6t_get_ctl+0x554/0xc00 net/ipv6/netfilter/ip6_tables.c:1668 nf_getsockopt+0x18c/0x1b0 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x172/0x1e0 net/ipv6/ipv6_sockglue.c:1493 tcp_getsockopt+0xaa/0xe0 net/ipv4/tcp.c:4670 sock_common_getsockopt+0x5b/0x70 net/core/sock.c:3776 do_sock_getsockopt+0x1ca/0x260 net/socket.c:2396 __sys_getsockopt+0x18a/0x200 net/socket.c:2425 __do_sys_getsockopt net/socket.c:2435 [inline] __se_sys_getsockopt net/socket.c:2432 [inline] __x64_sys_getsockopt+0x66/0x80 net/socket.c:2432 x64_sys_call+0x11cd/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:56 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 0xffffffff88be03ac of 4 bytes by task 3471 on cpu 1: pcpu_alloc_noprof+0x9b6/0x10a0 mm/percpu.c:1894 bpf_prog_alloc_no_stats+0xf7/0x360 kernel/bpf/core.c:113 bpf_prog_alloc+0x3a/0x150 kernel/bpf/core.c:145 bpf_prog_load+0x4d1/0x1070 kernel/bpf/syscall.c:2756 __sys_bpf+0x463/0x7a0 kernel/bpf/syscall.c:5653 __do_sys_bpf kernel/bpf/syscall.c:5760 [inline] __se_sys_bpf kernel/bpf/syscall.c:5758 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5758 x64_sys_call+0x2625/0x2d60 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: 0x00000002 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3471 Comm: syz.1.8 Not tainted 6.12.0-rc7-syzkaller-00070-g0a9b9d17f3a7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================