================================================================== BUG: KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn read-write to 0xffffffff86f8615c of 4 bytes by task 3570 on cpu 1: pcpu_update_empty_pages mm/percpu.c:602 [inline] pcpu_chunk_populated mm/percpu.c:1531 [inline] pcpu_balance_populated mm/percpu.c:2088 [inline] pcpu_balance_workfn+0x96f/0xa80 mm/percpu.c:2238 process_one_work+0x434/0x860 kernel/workqueue.c:2597 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2748 kthread+0x1d7/0x210 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read to 0xffffffff86f8615c of 4 bytes by task 10345 on cpu 0: pcpu_alloc+0xa59/0x1280 mm/percpu.c:1870 __alloc_percpu_gfp+0x26/0x30 mm/percpu.c:1930 bpf_map_alloc_percpu+0xaa/0x200 kernel/bpf/syscall.c:464 bpf_array_alloc_percpu kernel/bpf/arraymap.c:38 [inline] array_map_alloc+0x2b4/0x3a0 kernel/bpf/arraymap.c:149 map_create+0x713/0xa60 kernel/bpf/syscall.c:1206 __sys_bpf+0x62a/0x780 kernel/bpf/syscall.c:5119 __do_sys_bpf kernel/bpf/syscall.c:5241 [inline] __se_sys_bpf kernel/bpf/syscall.c:5239 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5239 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000001 -> 0x00000002 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 10345 Comm: syz-executor.5 Not tainted 6.4.0-syzkaller-12155-ga452483508d7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 ================================================================== ================================================================== BUG: KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc read-write to 0xffffffff86f8615c of 4 bytes by task 10347 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+0x49f/0x4d0 mm/percpu.c:1258 pcpu_alloc+0x54e/0x1280 mm/percpu.c:1810 __alloc_percpu_gfp+0x26/0x30 mm/percpu.c:1930 bpf_map_alloc_percpu+0xaa/0x200 kernel/bpf/syscall.c:464 bpf_array_alloc_percpu kernel/bpf/arraymap.c:38 [inline] array_map_alloc+0x2b4/0x3a0 kernel/bpf/arraymap.c:149 map_create+0x713/0xa60 kernel/bpf/syscall.c:1206 __sys_bpf+0x62a/0x780 kernel/bpf/syscall.c:5119 __do_sys_bpf kernel/bpf/syscall.c:5241 [inline] __se_sys_bpf kernel/bpf/syscall.c:5239 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5239 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffffff86f8615c of 4 bytes by task 10345 on cpu 1: pcpu_alloc+0xa59/0x1280 mm/percpu.c:1870 __alloc_percpu_gfp+0x26/0x30 mm/percpu.c:1930 bpf_map_alloc_percpu+0xaa/0x200 kernel/bpf/syscall.c:464 bpf_array_alloc_percpu kernel/bpf/arraymap.c:38 [inline] array_map_alloc+0x2b4/0x3a0 kernel/bpf/arraymap.c:149 map_create+0x713/0xa60 kernel/bpf/syscall.c:1206 __sys_bpf+0x62a/0x780 kernel/bpf/syscall.c:5119 __do_sys_bpf kernel/bpf/syscall.c:5241 [inline] __se_sys_bpf kernel/bpf/syscall.c:5239 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5239 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000000 -> 0xffffffff Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 10345 Comm: syz-executor.5 Not tainted 6.4.0-syzkaller-12155-ga452483508d7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 ================================================================== ================================================================== BUG: KCSAN: data-race in pcpu_alloc / pcpu_free_area read-write to 0xffffffff86f8615c of 4 bytes by task 3113 on cpu 0: 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+0x1c9/0xb20 mm/percpu.c:2274 bpf_array_free_percpu kernel/bpf/arraymap.c:27 [inline] array_map_free+0x292/0x300 kernel/bpf/arraymap.c:436 bpf_map_free_deferred+0x9b/0x120 kernel/bpf/syscall.c:698 process_one_work+0x434/0x860 kernel/workqueue.c:2597 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2748 kthread+0x1d7/0x210 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read to 0xffffffff86f8615c of 4 bytes by task 10345 on cpu 1: pcpu_alloc+0xa59/0x1280 mm/percpu.c:1870 __alloc_percpu_gfp+0x26/0x30 mm/percpu.c:1930 bpf_map_alloc_percpu+0xaa/0x200 kernel/bpf/syscall.c:464 bpf_array_alloc_percpu kernel/bpf/arraymap.c:38 [inline] array_map_alloc+0x2b4/0x3a0 kernel/bpf/arraymap.c:149 map_create+0x713/0xa60 kernel/bpf/syscall.c:1206 __sys_bpf+0x62a/0x780 kernel/bpf/syscall.c:5119 __do_sys_bpf kernel/bpf/syscall.c:5241 [inline] __se_sys_bpf kernel/bpf/syscall.c:5239 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5239 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000005e -> 0x00000061 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 10345 Comm: syz-executor.5 Not tainted 6.4.0-syzkaller-12155-ga452483508d7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 ==================================================================