================================================================== BUG: KCSAN: data-race in pcpu_alloc_noprof / pcpu_free_area read-write to 0xffffffff88bec32c of 4 bytes by task 4731 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+0x4dc/0x570 mm/percpu.c:1302 free_percpu+0x1c6/0xb30 mm/percpu.c:2246 perf_trace_event_unreg+0x17e/0x1a0 kernel/trace/trace_event_perf.c:175 perf_trace_destroy+0x6a/0xe0 kernel/trace/trace_event_perf.c:241 tp_perf_event_destroy+0x15/0x20 kernel/events/core.c:10398 _free_event+0x7ca/0xa10 kernel/events/core.c:5357 put_event kernel/events/core.c:5454 [inline] perf_event_release_kernel+0x61a/0x670 kernel/events/core.c:5579 perf_release+0x1f/0x30 kernel/events/core.c:5589 __fput+0x17a/0x6d0 fs/file_table.c:450 ____fput+0x1c/0x30 fs/file_table.c:478 task_work_run+0x13a/0x1a0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xa8/0x120 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff88bec32c of 4 bytes by task 4742 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_create_from_user+0x73/0x240 net/core/filter.c:1426 seccomp_prepare_filter kernel/seccomp.c:693 [inline] seccomp_prepare_user_filter kernel/seccomp.c:730 [inline] seccomp_set_mode_filter kernel/seccomp.c:1953 [inline] do_seccomp+0x648/0xa60 kernel/seccomp.c:2073 prctl_set_seccomp+0x4d/0x70 kernel/seccomp.c:2126 __do_sys_prctl kernel/sys.c:2549 [inline] __se_sys_prctl+0xb84/0x20f0 kernel/sys.c:2467 __x64_sys_prctl+0x67/0x80 kernel/sys.c:2467 x64_sys_call+0xff7/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:158 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 -> 0x00000011 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 4742 Comm: syz.1.580 Not tainted 6.12.0-syzkaller-01782-gbf9aa14fc523 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 ==================================================================