syzbot


KCSAN: data-race in __perf_event_read_value / event_sched_out (5)

Status: auto-obsoleted due to no activity on 2022/11/29 10:56
Subsystems: perf
[Documentation on labels]
First crash: 884d, last: 826d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __perf_event_read_value / event_sched_out perf 6 1147d 1222d 0/28 auto-closed as invalid on 2022/01/12 21:04
upstream KCSAN: data-race in __perf_event_read_value / event_sched_out (2) perf 3 1070d 1109d 0/28 auto-closed as invalid on 2022/03/30 13:56
upstream KCSAN: data-race in __perf_event_read_value / event_sched_out (3) perf 2 1012d 1029d 0/28 auto-closed as invalid on 2022/05/27 15:32
upstream KCSAN: data-race in __perf_event_read_value / event_sched_out (4) perf 1 950d 950d 0/28 auto-closed as invalid on 2022/07/28 22:06
upstream KCSAN: data-race in __perf_event_read_value / event_sched_out (6) perf 1 789d 789d 0/28 auto-obsoleted due to no activity on 2023/01/16 16:53

Sample crash report:
==================================================================
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
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/25 10:50 upstream 337a0a0b63f1 45645420 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in __perf_event_read_value / event_sched_out
2022/10/09 09:40 upstream a6afa4199d3d aea5da89 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in __perf_event_read_value / event_sched_out
2022/10/05 17:29 upstream 0326074ff465 267e3bb1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __perf_event_read_value / event_sched_out
2022/09/29 12:33 upstream 49c13ed0316d a41a2080 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __perf_event_read_value / event_sched_out
2022/08/29 05:05 upstream 8379c0b31fbc 07177916 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __perf_event_read_value / event_sched_out
* Struck through repros no longer work on HEAD.