syzbot


WARNING in perf_trace_buf_alloc

Status: public: reported C repro on 2019/04/12 00:00
Reported-by: syzbot+a1824c1624a3ea722ff1@syzkaller.appspotmail.com
First crash: 2253d, last: 2186d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in perf_trace_buf_alloc C 8 2599d 2582d 0/28 closed as invalid on 2017/10/27 08:14
upstream WARNING in perf_trace_buf_alloc (2) trace C 22 2467d 2572d 8/28 fixed on 2018/07/09 18:05

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
audit: type=1400 audit(1537530110.754:7): avc:  denied  { map } for  pid=1800 comm="syz-executor339" path="/root/syz-executor339185019" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
audit: type=1400 audit(1537530110.804:8): avc:  denied  { map_create } for  pid=1801 comm="syz-executor339" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1
perf buffer not large enough
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1801 at kernel/trace/trace_event_perf.c:274 perf_trace_buf_alloc.cold.2+0x18/0x2b kernel/trace/trace_event_perf.c:273
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 1801 Comm: syz-executor339 Not tainted 4.14.71+ #8
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0xb9/0x11b lib/dump_stack.c:53
 panic+0x1bf/0x3a4 kernel/panic.c:181
 __warn.cold.7+0x148/0x185 kernel/panic.c:542
 report_bug+0x1f7/0x26c lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 do_error_trap+0x1ba/0x2c0 arch/x86/kernel/traps.c:295
 invalid_op+0x18/0x40 arch/x86/entry/entry_64.S:944
RIP: 0010:perf_trace_buf_alloc.cold.2+0x18/0x2b kernel/trace/trace_event_perf.c:273
RSP: 0018:ffff8801cfbd7c28 EFLAGS: 00010282
RAX: 000000000000001c RBX: ffff8801d6897180 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000297
RBP: 0000000000000b44 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801cfbd7cc0
R13: ffff8801cfbd7d00 R14: 0000000000000b11 R15: 0000000000000000
 perf_trace_bpf_map_keyval+0x1d2/0x720 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:658 [inline]
 SYSC_bpf kernel/bpf/syscall.c:1576 [inline]
 SyS_bpf+0x2ec7/0x3640 kernel/bpf/syscall.c:1547
 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x440f29
RSP: 002b:00007ffca67af668 EFLAGS: 00000217 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440f29
RDX: 0000000000000020 RSI: 0000000020000140 RDI: 0000000000000002
RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000217 R12: 0000000000401e70
R13: 0000000000401f00 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: 0x11000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
Rebooting in 86400 seconds..

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/09/21 11:45 android-4.14 666c420fa3ea 37079712 .config console log report syz C ci-android-414-kasan-gce-root
2018/11/27 02:21 android-4.14 ea91d158d712 ac912200 .config console log report ci-android-414-kasan-gce-root
2018/11/26 23:27 android-4.14 ea91d158d712 ac912200 .config console log report ci-android-414-kasan-gce-root
2018/11/12 01:46 android-4.14 494c2659e60e 7b5f8621 .config console log report ci-android-414-kasan-gce-root
2018/10/22 14:59 android-4.14 c556d1ffe528 ecb386fe .config console log report ci-android-414-kasan-gce-root
2018/10/21 20:41 android-4.14 c556d1ffe528 ecb386fe .config console log report ci-android-414-kasan-gce-root
2018/10/04 08:31 android-4.14 cf748a3e868e 8b311eaf .config console log report ci-android-414-kasan-gce-root
2018/09/30 10:36 android-4.14 84ae3e35e1ce 41e4b329 .config console log report ci-android-414-kasan-gce-root
2018/09/23 09:55 android-4.14 666c420fa3ea 37079712 .config console log report ci-android-414-kasan-gce-root
2018/09/21 11:25 android-4.14 666c420fa3ea 37079712 .config console log report ci-android-414-kasan-gce-root
* Struck through repros no longer work on HEAD.