================================================================== BUG: KCSAN: data-race in __perf_event_read_value / event_sched_out write to 0xffff888139cdba18 of 8 bytes by task 4452 on cpu 0: perf_event_update_time kernel/events/core.c:647 [inline] perf_event_set_state kernel/events/core.c:666 [inline] event_sched_out+0x5d9/0xb00 kernel/events/core.c:2300 group_sched_out+0xdb/0x1d0 kernel/events/core.c:2326 ctx_sched_out+0x2b9/0x310 kernel/events/core.c:3288 task_ctx_sched_out kernel/events/core.c:2663 [inline] perf_event_context_sched_out kernel/events/core.c:3506 [inline] __perf_event_task_sched_out+0x64a/0xfa0 kernel/events/core.c:3609 prepare_task_switch kernel/sched/core.c:5000 [inline] context_switch kernel/sched/core.c:5142 [inline] __schedule+0x440/0x6e0 kernel/sched/core.c:6503 schedule+0x51/0x80 kernel/sched/core.c:6579 exit_to_user_mode_loop+0xe5/0x130 kernel/entry/common.c:159 exit_to_user_mode_prepare kernel/entry/common.c:203 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888139cdba18 of 8 bytes by task 4453 on cpu 1: __perf_event_read_value+0xba/0x1d0 kernel/events/core.c:5239 perf_read_one kernel/events/core.c:5370 [inline] __perf_read kernel/events/core.c:5423 [inline] perf_read+0x2b8/0x610 kernel/events/core.c:5440 loop_rw_iter+0x233/0x360 io_iter_do_read io_uring/rw.c:639 [inline] io_read+0xc11/0xcc0 io_uring/rw.c:759 io_issue_sqe+0x30f/0x850 io_uring/io_uring.c:1739 io_wq_submit_work+0x37b/0x520 io_uring/io_uring.c:1816 io_worker_handle_work+0x545/0xc00 io_uring/io-wq.c:587 io_wqe_worker+0x210/0x8f0 io_uring/io-wq.c:632 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 value changed: 0x0000000002720685 -> 0x000000000272a4cc Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 4453 Comm: iou-wrk-4452 Not tainted 6.1.0-rc2-syzkaller-00061-g337a0a0b63f1-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 ==================================================================