================================================================== BUG: KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc read-write to 0xffffffff870f1c74 of 4 bytes by task 3170 on cpu 0: pcpu_update_empty_pages mm/percpu.c:602 [inline] pcpu_block_update_hint_alloc+0x61a/0x6e0 mm/percpu.c:923 pcpu_alloc_area+0x4c0/0x4f0 mm/percpu.c:1258 pcpu_alloc+0x42e/0xf60 mm/percpu.c:1810 __alloc_percpu+0x20/0x30 mm/percpu.c:1943 xt_percpu_counter_alloc+0x6e/0x110 net/netfilter/x_tables.c:1930 find_check_entry net/ipv4/netfilter/ip_tables.c:528 [inline] translate_table+0x96c/0xfb0 net/ipv4/netfilter/ip_tables.c:718 do_replace net/ipv4/netfilter/ip_tables.c:1136 [inline] do_ipt_set_ctl+0x13d7/0x16e0 net/ipv4/netfilter/ip_tables.c:1630 nf_setsockopt+0x1a6/0x1c0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xe2/0x100 net/ipv4/ip_sockglue.c:1445 tcp_setsockopt+0x8c/0xa0 net/ipv4/tcp.c:3801 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3663 __sys_setsockopt+0x1c8/0x230 net/socket.c:2246 __do_sys_setsockopt net/socket.c:2257 [inline] __se_sys_setsockopt net/socket.c:2254 [inline] __x64_sys_setsockopt+0x62/0x70 net/socket.c:2254 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffffff870f1c74 of 4 bytes by task 3194 on cpu 1: pcpu_alloc+0x91d/0xf60 mm/percpu.c:1870 __alloc_percpu+0x20/0x30 mm/percpu.c:1943 xt_percpu_counter_alloc+0x6e/0x110 net/netfilter/x_tables.c:1930 find_check_entry net/ipv4/netfilter/ip_tables.c:528 [inline] translate_table+0x96c/0xfb0 net/ipv4/netfilter/ip_tables.c:718 do_replace net/ipv4/netfilter/ip_tables.c:1136 [inline] do_ipt_set_ctl+0x13d7/0x16e0 net/ipv4/netfilter/ip_tables.c:1630 nf_setsockopt+0x1a6/0x1c0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xe2/0x100 net/ipv4/ip_sockglue.c:1445 tcp_setsockopt+0x8c/0xa0 net/ipv4/tcp.c:3801 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3663 __sys_setsockopt+0x1c8/0x230 net/socket.c:2246 __do_sys_setsockopt net/socket.c:2257 [inline] __se_sys_setsockopt net/socket.c:2254 [inline] __x64_sys_setsockopt+0x62/0x70 net/socket.c:2254 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000006 -> 0x00000005 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3194 Comm: syz-executor.1 Not tainted 6.1.0-syzkaller-09941-ge2ca6ba6ba01-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ==================================================================