WARNING in perf_group_attach

7 views
Skip to first unread message

syzbot

unread,
Apr 11, 2019, 1:14:07 AM4/11/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 4d552acf Linux 4.19.34
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=133bec5b200000
kernel config: https://syzkaller.appspot.com/x/.config?x=c95a88291f095edd
dashboard link: https://syzkaller.appspot.com/bug?extid=2bb044c82aad0f451658
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=142365bb200000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1569825b200000

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

WARNING: CPU: 0 PID: 8159 at kernel/events/core.c:1833
perf_group_attach+0x3fd/0x4d0 kernel/events/core.c:1833
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8159 Comm: syz-executor658 Not tainted 4.19.34 #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x172/0x1f0 lib/dump_stack.c:113
panic+0x263/0x51d kernel/panic.c:185
__warn.cold+0x20/0x54 kernel/panic.c:540
report_bug+0x263/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:997
RIP: 0010:perf_group_attach+0x3fd/0x4d0 kernel/events/core.c:1833
Code: ff 48 8d 7b 10 48 89 f8 48 c1 e8 03 42 80 3c 28 00 75 57 48 8b 5b 10
48 83 eb 10 49 39 dc 75 d4 e9 20 ff ff ff e8 03 46 ec ff <0f> 0b e9 55 fd
ff ff 48 c7 c7 c0 9b b0 88 e8 b0 a3 22 00 e9 5b fc
RSP: 0018:ffff888096b1fa90 EFLAGS: 00010093
RAX: ffff8880935002c0 RBX: ffff888084978440 RCX: ffffffff817eee18
RDX: 0000000000000000 RSI: ffffffff817ef13d RDI: ffff888084978658
RBP: ffff888096b1fac0 R08: ffff8880935002c0 R09: ffffed1015d06402
R10: ffffed1015d06401 R11: ffff8880ae83200b R12: ffff888084978cc0
R13: ffffe8ffffc13eb8 R14: 0000000000000000 R15: ffff8880ae832008
add_event_to_ctx kernel/events/core.c:2390 [inline]
__perf_install_in_context+0x4b5/0x960 kernel/events/core.c:2531
remote_function kernel/events/core.c:87 [inline]
remote_function+0x12b/0x1a0 kernel/events/core.c:67
generic_exec_single+0x284/0x4b0 kernel/smp.c:153
smp_call_function_single+0x12d/0x420 kernel/smp.c:299
cpu_function_call kernel/events/core.c:141 [inline]
perf_install_in_context+0x369/0x3d0 kernel/events/core.c:2567
__do_sys_perf_event_open+0x18fa/0x2690 kernel/events/core.c:10778
__se_sys_perf_event_open kernel/events/core.c:10407 [inline]
__x64_sys_perf_event_open+0xbe/0x150 kernel/events/core.c:10407
do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x447049
Code: e8 9c e6 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0b 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fe4a44d4db8 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00000000006dcc28 RCX: 0000000000447049
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000020000000
RBP: 00000000006dcc20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000246 R12: 00000000006dcc2c
R13: 00007ffd33a7364f R14: 00007fe4a44d59c0 R15: 20c49ba5e353f7cf
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages