================================================================== BUG: KCSAN: data-race in __perf_event_read_value / event_sched_out write to 0xffff88813e114d58 of 8 bytes by task 18813 on cpu 0: perf_event_update_time kernel/events/core.c:646 [inline] perf_event_set_state kernel/events/core.c:665 [inline] event_sched_out+0x479/0x9c0 kernel/events/core.c:2276 group_sched_out+0xdb/0x1d0 kernel/events/core.c:2302 ctx_sched_out+0x2b9/0x310 kernel/events/core.c:3265 task_ctx_sched_out kernel/events/core.c:2640 [inline] perf_event_context_sched_out kernel/events/core.c:3470 [inline] __perf_event_task_sched_out+0x63e/0xf00 kernel/events/core.c:3573 prepare_task_switch kernel/sched/core.c:4993 [inline] context_switch kernel/sched/core.c:5135 [inline] __schedule+0x43c/0x6e0 kernel/sched/core.c:6495 preempt_schedule_common kernel/sched/core.c:6664 [inline] __cond_resched+0x3f/0xa0 kernel/sched/core.c:8300 _cond_resched include/linux/sched.h:2056 [inline] task_work_run+0x93/0x110 kernel/task_work.c:179 get_signal+0xeca/0x1020 kernel/signal.c:2634 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:166 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88813e114d58 of 8 bytes by task 18824 on cpu 1: __perf_event_read_value+0x84/0x1d0 kernel/events/core.c:5201 perf_read_one kernel/events/core.c:5334 [inline] __perf_read kernel/events/core.c:5387 [inline] perf_read+0x2b8/0x610 kernel/events/core.c:5404 loop_rw_iter+0x233/0x360 io_iter_do_read io_uring/rw.c:621 [inline] io_read+0xc11/0xcc0 io_uring/rw.c:741 io_issue_sqe+0x37c/0x900 io_uring/io_uring.c:1740 io_wq_submit_work+0x3d3/0x570 io_uring/io_uring.c:1817 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: 0x00000000033e2ed8 -> 0x00000000033ea990 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 18824 Comm: iou-wrk-18813 Not tainted 6.0.0-syzkaller-09039-ga6afa4199d3d-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 ==================================================================