WARNING in add_event_to_ctx

11 views
Skip to first unread message

syzbot

unread,
Sep 4, 2019, 11:08:06 PM9/4/19
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 38733bad ANDROID: sched: Disallow WALT with CFS bandwidth ..
git tree: android-4.14
console output: https://syzkaller.appspot.com/x/log.txt?x=132849fe600000
kernel config: https://syzkaller.appspot.com/x/.config?x=56a11d56cc83fc65
dashboard link: https://syzkaller.appspot.com/bug?extid=9d6e6325bf3a68bda76a
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15be1d32600000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=155dcf61600000

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

------------[ cut here ]------------
WARNING: CPU: 0 PID: 4034 at kernel/events/core.c:1690 perf_group_attach
kernel/events/core.c:1690 [inline]
WARNING: CPU: 0 PID: 4034 at kernel/events/core.c:1690
add_event_to_ctx+0x84a/0xa70 kernel/events/core.c:2291
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 4034 Comm: syz-executor032 Not tainted 4.14.141+ #0
Call Trace:
<IRQ>
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0xca/0x134 lib/dump_stack.c:53
panic+0x1ea/0x3d3 kernel/panic.c:182
__warn.cold+0x2f/0x3a kernel/panic.c:546
report_bug+0x20a/0x248 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+0x1bf/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x18/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:perf_group_attach kernel/events/core.c:1690 [inline]
RIP: 0010:add_event_to_ctx+0x84a/0xa70 kernel/events/core.c:2291
RSP: 0000:ffff8881dba07ec8 EFLAGS: 00010006
RAX: ffff8881cc7d9780 RBX: ffff8881cc146600 RCX: 1ffff1103983c661
RDX: 0000000000010000 RSI: 00000000ffffffff RDI: ffff8881cc146808
RBP: ffff8881cc1e2200 R08: ffff88821ffff01c R09: ffff88821ffff008
R10: ffff88821ffff017 R11: ffff88821ffff010 R12: ffff8881dba31fc0
R13: ffff8881cc1e228c R14: ffff8881dba2e8f0 R15: ffff8881cc1e3300
__perf_install_in_context+0x241/0x2f0 kernel/events/core.c:2438
remote_function kernel/events/core.c:87 [inline]
remote_function+0x110/0x190 kernel/events/core.c:67
flush_smp_call_function_queue+0xae/0x320 kernel/smp.c:243
smp_call_function_single_interrupt+0xc7/0x530 arch/x86/kernel/smp.c:296
call_function_single_interrupt+0x8c/0xa0 arch/x86/entry/entry_64.S:814
</IRQ>
RIP: 0010:pmd_alloc include/linux/mm.h:1738 [inline]
RIP: 0010:__handle_mm_fault+0x2bc/0x2700 mm/memory.c:4080
RSP: 0000:ffff8881cc287ce8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff04
RAX: dffffc0000000000 RBX: 1ffff11039850fa3 RCX: 1ffffffff1e11bd8
RDX: 1ffff11039921200 RSI: ffff8881ccaa6000 RDI: 00000001cc909067
RBP: ffffffff8f08dec0 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff1e85ba5 R11: ffffffff8f42dd2b R12: 00000000004ccc70
R13: ffff8881cc626880 R14: ffff888000000000 R15: ffff8881cc909000
handle_mm_fault+0x2f1/0x6da mm/memory.c:4150
__do_page_fault+0x477/0xbb0 arch/x86/mm/fault.c:1420
page_fault+0x42/0x50 arch/x86/entry/entry_64.S:1122
RIP: 6e0320:0x3
RSP: 0001:00007fff8970b7c0 EFLAGS: 00000001
Kernel Offset: 0xbc00000 from 0xffffffff81000000 (relocation range:
0xffffffff80000000-0xffffffffbfffffff)
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

syzbot

unread,
Sep 4, 2019, 11:44:07 PM9/4/19
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: d342ee64 ANDROID: sched: Disallow WALT with CFS bandwidth ..
git tree: android-4.9
console output: https://syzkaller.appspot.com/x/log.txt?x=1637a84e600000
kernel config: https://syzkaller.appspot.com/x/.config?x=e8b2cf508e16a5b
dashboard link: https://syzkaller.appspot.com/bug?extid=4a4c2c6ac3f827342ffc
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=175c292a600000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17b2fe0a600000

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

------------[ cut here ]------------
WARNING: CPU: 0 PID: 2767 at kernel/events/core.c:1655 perf_group_attach
kernel/events/core.c:1655 [inline]
WARNING: CPU: 0 PID: 2767 at kernel/events/core.c:1655
add_event_to_ctx+0x8f3/0xc30 kernel/events/core.c:2229
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 2767 Comm: syz-executor886 Not tainted 4.9.190+ #0
ffff8801cc007958 ffffffff81b66c51 0000000000000000 ffffffff82a3b1c0
00000000ffffffff 0000000000000000 0000000000000009 ffff8801cc007a38
ffffffff813febaa 0000000041b58ab3 ffffffff82e32ab5 ffffffff813fe9d1
Call Trace:
[<00000000c409f0de>] __dump_stack lib/dump_stack.c:15 [inline]
[<00000000c409f0de>] dump_stack+0xc1/0x120 lib/dump_stack.c:51
[<00000000b61c032c>] panic+0x1d9/0x3bd kernel/panic.c:180
[<00000000e9ee9768>] __warn.cold+0x2f/0x2f kernel/panic.c:546
[<00000000b9773e91>] warn_slowpath_null+0x2d/0x40 kernel/panic.c:589
[<00000000a5978ba4>] perf_group_attach kernel/events/core.c:1655 [inline]
[<00000000a5978ba4>] add_event_to_ctx+0x8f3/0xc30 kernel/events/core.c:2229
[<000000003e94f5a7>] __perf_install_in_context+0x282/0x330
kernel/events/core.c:2320
[<0000000066536bc4>] remote_function kernel/events/core.c:83 [inline]
[<0000000066536bc4>] remote_function+0x11e/0x1a0 kernel/events/core.c:63
[<0000000006dc2238>] generic_exec_single+0x1c4/0x320 kernel/smp.c:141
[<00000000ddd1f2e0>] smp_call_function_single+0x10d/0x380 kernel/smp.c:285
[<0000000006e0ac6f>] cpu_function_call kernel/events/core.c:137 [inline]
[<0000000006e0ac6f>] perf_install_in_context+0x2f9/0x3a0
kernel/events/core.c:2356
[<0000000081497dac>] SYSC_perf_event_open kernel/events/core.c:10033
[inline]
[<0000000081497dac>] SyS_perf_event_open+0x1bd3/0x2720
kernel/events/core.c:9674
[<00000000b9712412>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288
[<0000000021aba336>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb
Shutting down cpus with NMI
Kernel Offset: disabled
Reply all
Reply to author
Forward
0 new messages