WARNING in bpf

20 views
Skip to first unread message

syzbot

unread,
Nov 6, 2020, 8:18:19 AM11/6/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6b6446ef Linux 4.14.204
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10dffa8a500000
kernel config: https://syzkaller.appspot.com/x/.config?x=3b2e3745f25cbc4e
dashboard link: https://syzkaller.appspot.com/bug?extid=b03027a91aadcb9a9b13
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b03027...@syzkaller.appspotmail.com

perf buffer not large enough
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4455 at kernel/trace/trace_event_perf.c:273 perf_trace_buf_alloc.cold+0x18/0x26 kernel/trace/trace_event_perf.c:273
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 4455 Comm: syz-executor.3 Not tainted 4.14.204-syzkaller #0
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+0x1b2/0x283 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x4b kernel/panic.c:547
report_bug+0x208/0x249 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:perf_trace_buf_alloc.cold+0x18/0x26 kernel/trace/trace_event_perf.c:273
RSP: 0018:ffff8880a5e5fc80 EFLAGS: 00010286
RAX: 000000000000001c RBX: ffff88809c871800 RCX: 0000000000000000
RDX: 0000000000000c77 RSI: ffffffff8145da20 RDI: ffffed1014bcbf86
RBP: 0000000000209e54 R08: 000000000000001c R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a5e5fd30
R13: ffff8880a5e5fd40 R14: ffff8880a5e5fd60 R15: 0000000000000000
perf_trace_bpf_map_keyval+0x1b7/0x820 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:612 [inline]
SYSC_bpf kernel/bpf/syscall.c:1503 [inline]
SyS_bpf+0x2350/0x35e0 kernel/bpf/syscall.c:1477
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x45deb9
RSP: 002b:00007ff92392fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000001b40 RCX: 000000000045deb9
RDX: 0000000000000020 RSI: 0000000020000040 RDI: 0000000000000002
RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c
R13: 00007ffe6a4c385f R14: 00007ff9239309c0 R15: 000000000118bf2c
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Nov 6, 2020, 8:35:22 AM11/6/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 6b6446ef Linux 4.14.204
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14f24746500000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=125d5134500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16040532500000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b03027...@syzkaller.appspotmail.com

IPVS: ftp: loaded support on port[0] = 21
perf buffer not large enough
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7995 at kernel/trace/trace_event_perf.c:273 perf_trace_buf_alloc.cold+0x18/0x26 kernel/trace/trace_event_perf.c:273
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7995 Comm: syz-executor114 Not tainted 4.14.204-syzkaller #0
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+0x1b2/0x283 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x4b kernel/panic.c:547
report_bug+0x208/0x249 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:perf_trace_buf_alloc.cold+0x18/0x26 kernel/trace/trace_event_perf.c:273
RSP: 0018:ffff88809fc67c80 EFLAGS: 00010286
RAX: 000000000000001c RBX: ffff8880a9a31d40 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffed1013f8cf86
RBP: 0000000000209e54 R08: 000000000000001c R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809fc67d30
R13: ffff88809fc67d40 R14: ffff88809fc67d60 R15: 0000000000000000
perf_trace_bpf_map_keyval+0x1b7/0x820 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:612 [inline]
SYSC_bpf kernel/bpf/syscall.c:1503 [inline]
SyS_bpf+0x2350/0x35e0 kernel/bpf/syscall.c:1477
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x441579
RSP: 002b:00007ffdd7ea9f68 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000441579
RDX: 0000000000000020 RSI: 0000000020000040 RDI: 0000000000000002
RBP: 00007ffdd7ea9f70 R08: 0000000100000000 R09: 0000000100000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000008221
R13: 0000000000402450 R14: 0000000000000000 R15: 0000000000000000
Reply all
Reply to author
Forward
0 new messages