syzbot


WARNING in perf_trace_buf_alloc (2)

Status: fixed on 2018/07/09 18:05
Subsystems: trace
[Documentation on labels]
Reported-by: syzbot+a9dbb3c3e64b62536a4bc5ee7bbd4ca627566188@syzkaller.appspotmail.com
Fix commit: 4d220ed0f814 bpf: remove tracepoints from bpf core
First crash: 2367d, last: 2258d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 WARNING in perf_trace_buf_alloc C 10 1978d 1842d 0/1 public: reported C repro on 2019/04/12 00:00
upstream WARNING in perf_trace_buf_alloc C 8 2391d 2374d 0/26 closed as invalid on 2017/10/27 08:14

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3008 at kernel/trace/trace_event_perf.c:274 perf_trace_buf_alloc+0x12d/0x160 kernel/trace/trace_event_perf.c:273
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 3008 Comm: syzkaller609027 Not tainted 4.14.0-rc7+ #159
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x194/0x257 lib/dump_stack.c:53
 panic+0x1e4/0x417 kernel/panic.c:181
 __warn+0x1c4/0x1d9 kernel/panic.c:542
 report_bug+0x211/0x2d0 lib/bug.c:184
 fixup_bug+0x40/0x90 arch/x86/kernel/traps.c:178
 do_trap_no_signal arch/x86/kernel/traps.c:212 [inline]
 do_trap+0x260/0x390 arch/x86/kernel/traps.c:261
 do_error_trap+0x120/0x390 arch/x86/kernel/traps.c:298
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:311
 invalid_op+0x18/0x20 arch/x86/entry/entry_64.S:906
RIP: 0010:perf_trace_buf_alloc+0x12d/0x160 kernel/trace/trace_event_perf.c:273
RSP: 0018:ffff8801c0fdf760 EFLAGS: 00010286
RAX: 000000000000001c RBX: 1ffff100381fbefe RCX: 0000000000000000
RDX: 000000000000001c RSI: 1ffff100381fbeac RDI: ffffed00381fbee0
RBP: ffff8801c0fdf780 R08: 0000000000000001 R09: 0000000000000000
R10: ffff8801c0fdf7a0 R11: 0000000000000000 R12: 000000000000082c
R13: ffff8801c0fdf810 R14: ffff8801c0fdf890 R15: ffff8801d8b34b40
 perf_trace_bpf_map_keyval+0x260/0xbd0 include/trace/events/bpf.h:228
 trace_bpf_map_update_elem include/trace/events/bpf.h:274 [inline]
 map_update_elem kernel/bpf/syscall.c:597 [inline]
 SYSC_bpf kernel/bpf/syscall.c:1478 [inline]
 SyS_bpf+0x33eb/0x46a0 kernel/bpf/syscall.c:1453
 entry_SYSCALL_64_fastpath+0x1f/0xbe
RIP: 0033:0x445c29
RSP: 002b:00000000007eff68 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007ffe66adb340 RCX: 0000000000445c29
RDX: 0000000000000020 RSI: 000000002053dfe0 RDI: 0000000000000002
RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403280
R13: 0000000000403310 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/11/03 06:21 upstream 5cb0512c02ec e930d6f6 .config console log report syz C ci-upstream-kasan-gce-386
2017/11/03 06:53 upstream 5cb0512c02ec e930d6f6 .config console log report syz ci-upstream-kasan-gce-386
2017/11/08 19:44 upstream d6a2cf07f0c9 e0a2b195 .config console log report ci-upstream-kasan-gce-386
2017/11/03 08:41 upstream 5cb0512c02ec e930d6f6 .config console log report ci-upstream-kasan-gce-386
2017/11/03 05:52 upstream 5cb0512c02ec e930d6f6 .config console log report ci-upstream-kasan-gce-386
2018/02/19 15:21 bpf-next 0b6b8a3dd86d 833f78c7 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/19 01:03 bpf-next 0b6b8a3dd86d 833f78c7 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/18 09:32 bpf-next 0b6b8a3dd86d 833f78c7 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/17 23:27 bpf-next 0b6b8a3dd86d 833f78c7 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/17 13:53 bpf-next 0b6b8a3dd86d c8b3f7c1 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/17 09:45 bpf-next 0b6b8a3dd86d c8b3f7c1 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/17 01:33 bpf-next 0b6b8a3dd86d c8b3f7c1 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/17 00:46 bpf-next 0b6b8a3dd86d c8b3f7c1 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/16 10:21 bpf-next 0b6b8a3dd86d c8b3f7c1 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/15 01:08 bpf-next 615a94749857 17061fc0 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/14 19:13 bpf-next 615a94749857 17061fc0 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/14 11:16 bpf-next 615a94749857 88bc17df .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/14 04:19 bpf-next 615a94749857 88bc17df .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/14 02:33 bpf-next 615a94749857 88bc17df .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/13 12:30 bpf-next 7928b2cbe55b 88bc17df .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/12 06:49 bpf-next 617aebe6a97e 4e9b726d .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/11 03:06 bpf-next 617aebe6a97e 4e9b726d .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.