================================================================== BUG: KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn read-write to 0xffffffff870c89b4 of 4 bytes by task 5638 on cpu 1: pcpu_update_empty_pages mm/percpu.c:606 [inline] pcpu_chunk_populated mm/percpu.c:1534 [inline] pcpu_balance_populated mm/percpu.c:2095 [inline] pcpu_balance_workfn+0xb27/0xce0 mm/percpu.c:2246 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289 worker_thread+0x618/0xa70 kernel/workqueue.c:2436 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 read to 0xffffffff870c89b4 of 4 bytes by task 17184 on cpu 0: pcpu_alloc+0x9c6/0x1040 mm/percpu.c:1877 __alloc_percpu_gfp+0x22/0x30 mm/percpu.c:1937 bpf_map_alloc_percpu+0xbd/0x200 kernel/bpf/syscall.c:481 bpf_array_alloc_percpu kernel/bpf/arraymap.c:38 [inline] array_map_alloc+0x2fb/0x3e0 kernel/bpf/arraymap.c:149 find_and_alloc_map kernel/bpf/syscall.c:131 [inline] map_create+0x38a/0x6f0 kernel/bpf/syscall.c:1102 __sys_bpf+0x28c/0x620 kernel/bpf/syscall.c:4935 __do_sys_bpf kernel/bpf/syscall.c:5057 [inline] __se_sys_bpf kernel/bpf/syscall.c:5055 [inline] __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:5055 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: 0x00000003 -> 0x00000004 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 17184 Comm: syz-executor.3 Not tainted 6.0.0-rc1-syzkaller-00160-g4c2d0b039c5c-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 ==================================================================