syzbot


KCSAN: data-race in perf_event_exit_event / perf_event_exit_event (2)

Status: auto-closed as invalid on 2022/03/02 02:45
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 306d, last: 306d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in perf_event_exit_event / perf_event_exit_event 1 419d 419d 0/24 auto-closed as invalid on 2021/11/09 11:06
upstream KCSAN: data-race in perf_event_exit_event / perf_event_exit_event (3) 1 120d 120d 0/24 auto-closed as invalid on 2022/09/03 15:29

Sample crash report:
==================================================================
BUG: KCSAN: data-race in perf_event_exit_event / perf_event_exit_event

write to 0xffff888106caf30c of 4 bytes by task 2212 on cpu 0:
 perf_event_wakeup kernel/events/core.c:6485 [inline]
 perf_event_exit_event+0x5fa/0x760 kernel/events/core.c:12750
 perf_event_exit_task_context kernel/events/core.c:12816 [inline]
 perf_event_exit_task+0x49a/0x630 kernel/events/core.c:12849
 do_exit+0x5e6/0x16a0 kernel/exit.c:815
 do_group_exit+0xa5/0x160 kernel/exit.c:935
 get_signal+0x8cf/0x15d0 kernel/signal.c:2862
 arch_do_signal_or_restart+0x8c/0x2e0 arch/x86/kernel/signal.c:868
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x113/0x190 kernel/entry/common.c:207
 irqentry_exit_to_user_mode+0x5/0x10 kernel/entry/common.c:313
 irqentry_exit+0xe/0x40 kernel/entry/common.c:404
 asm_exc_page_fault+0x1e/0x30

read to 0xffff888106caf30c of 4 bytes by task 2228 on cpu 1:
 perf_event_wakeup kernel/events/core.c:6483 [inline]
 perf_event_exit_event+0x5ad/0x760 kernel/events/core.c:12750
 perf_event_exit_task_context kernel/events/core.c:12816 [inline]
 perf_event_exit_task+0x49a/0x630 kernel/events/core.c:12849
 do_exit+0x5e6/0x16a0 kernel/exit.c:815
 __x64_sys_exit_group+0x0/0x20 kernel/exit.c:935
 __do_sys_exit_group+0xb/0x10 kernel/exit.c:946
 __se_sys_exit_group+0x5/0x10 kernel/exit.c:944
 __x64_sys_exit_group+0x16/0x20 kernel/exit.c:944
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2228 Comm: syz-executor.0 Tainted: G        W         5.17.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/01/26 02:39 upstream 49d766f3a0e4 2cbffd88 .config log report info KCSAN: data-race in perf_event_exit_event / perf_event_exit_event
* Struck through repros no longer work on HEAD.