================================================================== BUG: KCSAN: data-race in event_sched_out / perf_event_update_userpage write to 0xffff88813da0ac68 of 8 bytes by task 26604 on cpu 1: perf_event_update_time kernel/events/core.c:647 [inline] perf_event_set_state kernel/events/core.c:666 [inline] event_sched_out+0x315/0x7f0 kernel/events/core.c:2293 group_sched_out+0xbf/0x1a0 kernel/events/core.c:2319 ctx_sched_out+0x36f/0x410 kernel/events/core.c:3289 task_ctx_sched_out kernel/events/core.c:2687 [inline] perf_event_context_sched_out kernel/events/core.c:3494 [inline] __perf_event_task_sched_out+0x64c/0xec0 kernel/events/core.c:3597 perf_event_task_sched_out include/linux/perf_event.h:1229 [inline] prepare_task_switch+0x134/0x140 kernel/sched/core.c:4744 context_switch kernel/sched/core.c:4892 [inline] __schedule+0x382/0x680 kernel/sched/core.c:6287 schedule+0x67/0x90 kernel/sched/core.c:6366 exit_to_user_mode_loop kernel/entry/common.c:163 [inline] exit_to_user_mode_prepare+0xbb/0x190 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300 do_syscall_64+0x50/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88813da0ac68 of 8 bytes by task 26599 on cpu 0: __perf_update_times kernel/events/core.c:638 [inline] calc_timer_values kernel/events/core.c:5786 [inline] perf_event_update_userpage+0x107/0x2f0 kernel/events/core.c:5841 perf_mmap+0xb84/0xd00 kernel/events/core.c:6328 call_mmap include/linux/fs.h:2168 [inline] mmap_region+0xb1a/0x1260 mm/mmap.c:1787 do_mmap+0x781/0xc20 mm/mmap.c:1575 vm_mmap_pgoff+0x117/0x1f0 mm/util.c:519 ksys_mmap_pgoff+0x284/0x350 mm/mmap.c:1624 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000000000043d9 -> 0x0000000000006f57 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 26599 Comm: syz-executor.0 Tainted: G W 5.15.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================