syzbot


KCSAN: data-race in perf_event_update_userpage / perf_event_update_userpage (6)

Status: auto-closed as invalid on 2022/05/09 12:46
Subsystems: perf
[Documentation on labels]
First crash: 1038d, last: 1030d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in perf_event_update_userpage / perf_event_update_userpage (3) perf 1 1461d 1461d 0/28 auto-closed as invalid on 2021/03/04 07:39
upstream KCSAN: data-race in perf_event_update_userpage / perf_event_update_userpage (4) perf 1 1248d 1248d 0/28 auto-closed as invalid on 2021/10/03 20:31
upstream KCSAN: data-race in perf_event_update_userpage / perf_event_update_userpage (9) perf 1 63d 63d 0/28 auto-obsoleted due to no activity on 2025/01/21 05:14
upstream KCSAN: data-race in perf_event_update_userpage / perf_event_update_userpage (7) perf 3 806d 857d 0/28 auto-obsoleted due to no activity on 2022/12/19 05:19
upstream KCSAN: data-race in perf_event_update_userpage / perf_event_update_userpage perf 4 1826d 1911d 0/28 auto-closed as invalid on 2020/04/08 20:02
upstream KCSAN: data-race in perf_event_update_userpage / perf_event_update_userpage (5) perf 3 1076d 1083d 0/28 auto-closed as invalid on 2022/03/24 05:30
upstream KCSAN: data-race in perf_event_update_userpage / perf_event_update_userpage (2) perf 1 1652d 1652d 0/28 auto-closed as invalid on 2020/08/25 03:47
upstream KCSAN: data-race in perf_event_update_userpage / perf_event_update_userpage (8) perf 2 558d 574d 0/28 auto-obsoleted due to no activity on 2023/08/24 03:09

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

write to 0xffff88813c710010 of 8 bytes by task 28381 on cpu 0:
 perf_event_update_userpage+0x2a5/0x3b0 kernel/events/core.c:5950
 cpu_clock_event_add+0x11d/0x130 kernel/events/core.c:10794
 event_sched_in+0x781/0xe60 kernel/events/core.c:2601
 group_sched_in kernel/events/core.c:2637 [inline]
 merge_sched_in kernel/events/core.c:3818 [inline]
 visit_groups_merge+0x943/0x1a50 kernel/events/core.c:3762
 ctx_flexible_sched_in kernel/events/core.c:3860 [inline]
 ctx_sched_in+0x221/0x240 kernel/events/core.c:3908
 perf_event_sched_in kernel/events/core.c:2741 [inline]
 perf_event_context_sched_in kernel/events/core.c:3959 [inline]
 __perf_event_task_sched_in+0x37c/0x8d0 kernel/events/core.c:4002
 perf_event_task_sched_in include/linux/perf_event.h:1213 [inline]
 finish_task_switch+0x1ef/0x280 kernel/sched/core.c:4948
 context_switch kernel/sched/core.c:5076 [inline]
 __schedule+0x44b/0x6c0 kernel/sched/core.c:6382
 schedule+0x71/0xa0 kernel/sched/core.c:6454
 freezable_schedule include/linux/freezer.h:172 [inline]
 futex_wait_queue+0xd1/0x170 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/0x370 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/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

write to 0xffff88813c710010 of 8 bytes by task 28382 on cpu 1:
 perf_event_update_userpage+0x2a5/0x3b0 kernel/events/core.c:5950
 perf_mmap+0xd34/0xeb0 kernel/events/core.c:6435
 call_mmap include/linux/fs.h:2055 [inline]
 mmap_region+0xb04/0x10b0 mm/mmap.c:1791
 do_mmap+0x781/0xc20 mm/mmap.c:1582
 vm_mmap_pgoff+0x117/0x1f0 mm/util.c:519
 ksys_mmap_pgoff+0x265/0x320 mm/mmap.c:1628
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000000 -> 0x000000000001d5f7

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 28382 Comm: syz-executor.1 Not tainted 5.17.0-syzkaller-14114-g09bb8856d4a7-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/04 12:37 upstream 09bb8856d4a7 79a2a8fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in perf_event_update_userpage / perf_event_update_userpage
2022/03/27 03:25 upstream bddac7c1e02b 89bc8608 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in perf_event_update_userpage / perf_event_update_userpage
* Struck through repros no longer work on HEAD.