================================================================== BUG: KCSAN: data-race in __perf_event_read_value / event_sched_out write to 0xffff8881079e0e60 of 8 bytes by task 10863 on cpu 1: perf_event_update_time kernel/events/core.c:646 [inline] perf_event_set_state kernel/events/core.c:665 [inline] event_sched_out+0x4ad/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:4992 [inline] context_switch kernel/sched/core.c:5134 [inline] __schedule+0x43c/0x6e0 kernel/sched/core.c:6494 preempt_schedule_common kernel/sched/core.c:6663 [inline] __cond_resched+0x3f/0xa0 kernel/sched/core.c:8299 _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 0xffff8881079e0e60 of 8 bytes by task 10864 on cpu 0: __perf_event_read_value+0xba/0x1d0 kernel/events/core.c:5203 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:639 [inline] io_read+0xbe2/0xc90 io_uring/rw.c:759 io_issue_sqe+0x386/0x900 io_uring/io_uring.c:1577 io_wq_submit_work+0x3de/0x580 io_uring/io_uring.c:1654 io_worker_handle_work+0x547/0xbf0 io_uring/io-wq.c:587 io_wqe_worker+0x202/0x8f0 io_uring/io-wq.c:632 ret_from_fork+0x1f/0x30 value changed: 0x00000000035b28cb -> 0x00000000035b788e Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 10864 Comm: iou-wrk-10863 Not tainted 6.0.0-rc2-syzkaller-00327-g8379c0b31fbc-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 ==================================================================