syzbot


general protection fault in perf_tp_event

Status: auto-closed as invalid on 2020/10/25 22:42
Reported-by: syzbot+a3cde546a49502261be7@syzkaller.appspotmail.com
First crash: 1776d, last: 1609d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in perf_tp_event 1 2037d 2037d 0/1 auto-closed as invalid on 2019/10/24 06:05
upstream general protection fault in perf_tp_event (2) perf 109 1360d 1601d 0/28 auto-closed as invalid on 2021/07/02 04:41
linux-4.14 general protection fault in perf_tp_event 2 1602d 1640d 0/1 auto-closed as invalid on 2020/11/01 21:53
linux-4.19 general protection fault in perf_tp_event (2) 4 1656d 1805d 0/1 auto-closed as invalid on 2020/09/08 23:43
upstream general protection fault in perf_tp_event (3) perf 9 1065d 1149d 0/28 auto-closed as invalid on 2022/04/23 10:36
upstream general protection fault in perf_tp_event perf 423 1971d 2395d 0/28 auto-closed as invalid on 2019/10/25 14:12

Sample crash report:
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000003
R13: 0000000000000841 R14: 00000000004cb320 R15: 00007f2cc942d6d4
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 18607 Comm: syz-executor.4 Not tainted 5.4.49-syzkaller-00898-g54ec87ec7a59 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:perf_tp_event_match kernel/events/core.c:8707 [inline]
RIP: 0010:perf_tp_event+0x24f/0x9c0 kernel/events/core.c:8758
Code: 02 00 00 48 8b 44 24 18 4c 8d b0 88 00 00 00 66 90 66 2e 0f 1f 84 00 00 00 00 00 49 8d 9c 24 d0 01 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 c9 01 00 00 8b 1b 89 de 83 e6 01 31 ff
RSP: 0000:ffff8881c9c27340 EFLAGS: 00010007
RAX: 00000915e0802039 RBX: 000048af040101cd RCX: ffffffff81448ce9
RDX: ffff8881d6fa0000 RSI: 000048af0401005d RDI: 0000000000000000
RBP: ffff8881c9c27660 R08: ffffffff81589fd5 R09: ffffed103adf4001
R10: ffffed103adf4001 R11: 0000000000000000 R12: 000048af0400fffd
R13: dffffc0000000000 R14: ffff8881db82f0e8 R15: 000000000000002c
FS:  00007f2cc942d700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc94618e2c CR3: 00000001c7268003 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 perf_trace_run_bpf_submit+0x124/0x1b0 kernel/events/core.c:8733
 perf_trace_sched_wakeup_template+0x2f3/0x480 include/trace/events/sched.h:57
 trace_sched_wakeup include/trace/events/sched.h:96 [inline]
 ttwu_do_wakeup+0x251/0x5b0 kernel/sched/core.c:2218
 ttwu_do_activate kernel/sched/core.c:2262 [inline]
 ttwu_queue+0x2bd/0x480 kernel/sched/core.c:2406
 try_to_wake_up+0xbc9/0xd90 kernel/sched/core.c:2640
 wake_up_process kernel/sched/core.c:2664 [inline]
 wake_up_q+0x84/0xb0 kernel/sched/core.c:496
 __mutex_unlock_slowpath+0x219/0x260 kernel/locking/mutex.c:1280
 perf_try_init_event+0x305/0x3a0 kernel/events/core.c:10263
 perf_init_event kernel/events/core.c:10299 [inline]
 perf_event_alloc+0xd3d/0x22b0 kernel/events/core.c:10569
 __do_sys_perf_event_open kernel/events/core.c:11052 [inline]
 __se_sys_perf_event_open+0x77f/0x37c0 kernel/events/core.c:10926
 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45cb19
Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f2cc942cc78 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00000000004fa640 RCX: 000000000045cb19
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000003
R13: 0000000000000841 R14: 00000000004cb320 R15: 00007f2cc942d6d4
Modules linked in:
---[ end trace 5a9ce39fe449de36 ]---
RIP: 0010:perf_tp_event_match kernel/events/core.c:8707 [inline]
RIP: 0010:perf_tp_event+0x24f/0x9c0 kernel/events/core.c:8758
Code: 02 00 00 48 8b 44 24 18 4c 8d b0 88 00 00 00 66 90 66 2e 0f 1f 84 00 00 00 00 00 49 8d 9c 24 d0 01 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 c9 01 00 00 8b 1b 89 de 83 e6 01 31 ff
RSP: 0000:ffff8881c9c27340 EFLAGS: 00010007
RAX: 00000915e0802039 RBX: 000048af040101cd RCX: ffffffff81448ce9
RDX: ffff8881d6fa0000 RSI: 000048af0401005d RDI: 0000000000000000
RBP: ffff8881c9c27660 R08: ffffffff81589fd5 R09: ffffed103adf4001
R10: ffffed103adf4001 R11: 0000000000000000 R12: 000048af0400fffd
R13: dffffc0000000000 R14: ffff8881db82f0e8 R15: 000000000000002c
FS:  00007f2cc942d700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc94618e2c CR3: 00000001c7268003 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/27 22:41 https://android.googlesource.com/kernel/common android-5.4 54ec87ec7a59 a2cdad9d .config console log report ci2-android-5-4-kasan
2020/04/09 04:40 https://android.googlesource.com/kernel/common android-5.4 9179772db7e6 a8c6a3f8 .config console log report ci2-android-5-4-kasan
2020/03/02 13:14 https://android.googlesource.com/kernel/common android-5.4 2c2101d18159 4a4e0509 .config console log report ci2-android-5-4-kasan
2020/01/23 07:02 https://android.googlesource.com/kernel/common android-5.4 8173487568f1 3334d684 .config console log report ci2-android-5-4-kasan
2020/01/20 22:43 https://android.googlesource.com/kernel/common android-5.4 b0b02162a4b8 8eda0b95 .config console log report ci2-android-5-4-kasan
2020/01/13 12:06 https://android.googlesource.com/kernel/common android-5.4 fde6e0c654c4 99565c1a .config console log report ci2-android-5-4-kasan
2020/01/13 03:10 https://android.googlesource.com/kernel/common android-5.4 fde6e0c654c4 53faa9fe .config console log report ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.