================================================================== BUG: KCSAN: data-race in perf_pending_task / perf_swevent_get_recursion_context write to 0xffff888101cff1b0 of 1 bytes by task 6352 on cpu 0: get_recursion_context kernel/events/internal.h:221 [inline] perf_swevent_get_recursion_context+0xa7/0xc0 kernel/events/core.c:11235 perf_trace_buf_alloc+0x36/0x100 kernel/trace/trace_event_perf.c:409 do_perf_trace_sched_switch include/trace/events/sched.h:220 [inline] perf_trace_sched_switch+0x77/0x1d0 include/trace/events/sched.h:220 __traceiter_sched_switch+0x3f/0x60 include/trace/events/sched.h:220 __do_trace_sched_switch include/trace/events/sched.h:220 [inline] trace_sched_switch include/trace/events/sched.h:220 [inline] __schedule+0xc3d/0xd30 kernel/sched/core.c:7383 preempt_schedule_common+0x12/0x40 kernel/sched/core.c:7565 preempt_schedule_thunk+0x16/0x40 arch/x86/entry/thunk.S:12 delay_tsc+0x92/0xa0 arch/x86/lib/delay.c:94 udelay include/asm-generic/delay.h:64 [inline] delay_access kernel/kcsan/core.c:332 [inline] kcsan_setup_watchpoint+0x255/0x3f0 kernel/kcsan/core.c:622 get_recursion_context kernel/events/internal.h:218 [inline] perf_swevent_get_recursion_context kernel/events/core.c:11235 [inline] perf_pending_task+0x80/0x220 kernel/events/core.c:7776 task_work_run+0x145/0x1a0 kernel/task_work.c:233 resume_user_mode_work+0x85/0xa0 include/linux/resume_user_mode.h:50 __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop kernel/entry/common.c:101 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] irqentry_exit+0x170/0x640 kernel/entry/common.c:152 sysvec_apic_timer_interrupt+0x44/0x80 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 read to 0xffff888101cff1b0 of 1 bytes by task 6352 on cpu 0: get_recursion_context kernel/events/internal.h:218 [inline] perf_swevent_get_recursion_context kernel/events/core.c:11235 [inline] perf_pending_task+0x80/0x220 kernel/events/core.c:7776 task_work_run+0x145/0x1a0 kernel/task_work.c:233 resume_user_mode_work+0x85/0xa0 include/linux/resume_user_mode.h:50 __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop kernel/entry/common.c:101 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] irqentry_exit+0x170/0x640 kernel/entry/common.c:152 sysvec_apic_timer_interrupt+0x44/0x80 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 6352 Comm: syz.7.630 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 ================================================================== loop7: detected capacity change from 0 to 33792 EXT4-fs: Ignoring removed bh option EXT4-fs (loop7): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none.