================================================================== BUG: KCSAN: data-race in _free_event / perf_pending_task write to 0xffff888118e26640 of 4 bytes by task 6092 on cpu 0: perf_pending_task+0xe8/0x220 kernel/events/core.c:6954 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] irqentry_exit_to_user_mode+0xe5/0x120 kernel/entry/common.c:231 irqentry_exit+0x12/0x50 kernel/entry/common.c:334 sysvec_apic_timer_interrupt+0x44/0x80 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 read to 0xffff888118e26640 of 4 bytes by task 6086 on cpu 1: perf_pending_task_sync kernel/events/core.c:5295 [inline] _free_event+0x3d/0xa10 kernel/events/core.c:5319 put_event kernel/events/core.c:5447 [inline] perf_event_release_kernel+0x61a/0x670 kernel/events/core.c:5572 perf_release+0x1f/0x30 kernel/events/core.c:5582 __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 value changed: 0x7acd98e2 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 6086 Comm: syz.2.824 Not tainted 6.13.0-rc2-syzkaller-00130-g150b567e0d57 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================