================================================================== BUG: KCSAN: data-race in __perf_event_read_value / event_sched_out write to 0xffff88813aff0a10 of 8 bytes by task 26378 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 schedule+0x51/0x80 kernel/sched/core.c:6571 freezable_schedule include/linux/freezer.h:172 [inline] futex_wait_queue+0xc9/0x160 kernel/futex/waitwake.c:355 futex_wait+0x126/0x350 kernel/futex/waitwake.c:656 do_futex+0x283/0x2b0 kernel/futex/syscalls.c:106 __do_sys_futex kernel/futex/syscalls.c:183 [inline] __se_sys_futex+0xe8/0x350 kernel/futex/syscalls.c:164 __x64_sys_futex+0x74/0x80 kernel/futex/syscalls.c:164 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88813aff0a10 of 8 bytes by task 26414 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:645 [inline] io_read+0xbe2/0xc90 io_uring/rw.c:765 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 arch/x86/entry/entry_64.S:306 value changed: 0x0000000002fb79da -> 0x0000000002fbe536 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 26414 Comm: iou-wrk-26378 Not tainted 6.0.0-syzkaller-02734-g0326074ff465-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 ==================================================================