syzbot


general protection fault in perf_iterate_sb

Status: public: reported C repro on 2019/04/12 00:01
Reported-by: syzbot+4e7686e9c673887cd7ce@syzkaller.appspotmail.com
First crash: 2232d, last: 2232d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 general protection fault in perf_iterate_sb C 1 2232d 2048d 0/3 public: reported C repro on 2019/04/14 08:51
linux-4.14 general protection fault in perf_iterate_sb syz error 1 1921d 1921d 0/1 upstream: reported syz repro on 2019/08/18 21:36

Sample crash report:
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 NOPTI
Modules linked in:
CPU: 0 PID: 1892 Comm: syz-executor964 Not tainted 4.14.75+ #18
task: ffff8801c9972f00 task.stack: ffff8801c9fa0000
RIP: 0010:__pmu_filter_match kernel/events/core.c:1805 [inline]
RIP: 0010:pmu_filter_match kernel/events/core.c:1822 [inline]
RIP: 0010:event_filter_match kernel/events/core.c:1833 [inline]
RIP: 0010:perf_iterate_sb_cpu kernel/events/core.c:6364 [inline]
RIP: 0010:perf_iterate_sb+0x369/0x5d0 kernel/events/core.c:6396
RSP: 0018:ffff8801c9fa7b10 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8801c71f8000 RCX: dffffc0000000000
RDX: 00000000000006ef RSI: dffffc0000000000 RDI: 000000000000377b
RBP: ffff8801c9fa7b48 R08: 0000000000000000 R09: 0000000000000000
R10: ffff8801c9973730 R11: 0000000000000001 R12: ffff8801db82e8d0
R13: ffff8801c71f8020 R14: ffffffff881ecfb0 R15: 0000000000003683
FS:  0000000001cb4880(0000) GS:ffff8801db800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdd9427874 CR3: 00000001c9fb6002 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 perf_event_task+0xe3/0x140 kernel/events/core.c:6634
 perf_event_fork+0x18/0x40 kernel/events/core.c:6641
 copy_process.part.6+0x33bd/0x6530 kernel/fork.c:1936
 copy_process kernel/fork.c:1573 [inline]
 _do_fork+0x1c2/0xd50 kernel/fork.c:2054
 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x43f9da
RSP: 002b:00007ffdd9427840 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f9da
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffdd9427860 R08: 0000000000000764 R09: 0000000001cb4880
R10: 0000000001cb4b50 R11: 0000000000000246 R12: 0000000000000764
R13: 0000000000401f40 R14: 0000000000000000 R15: 0000000000000000
Code: 48 c1 e8 03 80 3c 30 00 0f 85 e2 01 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 7c 24 78 49 8d bf f8 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 c5 01 00 00 4d 8b bf f8 00 00 00 4d 85 ff 74 
RIP: __pmu_filter_match kernel/events/core.c:1805 [inline] RSP: ffff8801c9fa7b10
RIP: pmu_filter_match kernel/events/core.c:1822 [inline] RSP: ffff8801c9fa7b10
RIP: event_filter_match kernel/events/core.c:1833 [inline] RSP: ffff8801c9fa7b10
RIP: perf_iterate_sb_cpu kernel/events/core.c:6364 [inline] RSP: ffff8801c9fa7b10
RIP: perf_iterate_sb+0x369/0x5d0 kernel/events/core.c:6396 RSP: ffff8801c9fa7b10
---[ end trace d83f470b3167ea2e ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/10/11 22:13 android-4.14 b7e40c3d444a ba6ddb43 .config console log report syz C ci-android-414-kasan-gce-root
* Struck through repros no longer work on HEAD.