linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* INFO: rcu detected stall in __perf_sw_event
@ 2019-02-07 15:07 syzbot
  2019-03-26 23:04 ` syzbot
  0 siblings, 1 reply; 4+ messages in thread
From: syzbot @ 2019-02-07 15:07 UTC (permalink / raw)
  To: acme, alexander.shishkin, jolsa, linux-kernel, mingo, namhyung,
	peterz, syzkaller-bugs

Hello,

syzbot found the following crash on:

HEAD commit:    b0314565da2b Merge tag 'for_linus' of git://git.kernel.org..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=15cd5e73400000
kernel config:  https://syzkaller.appspot.com/x/.config?x=8f00801d7b7c4fe6
dashboard link: https://syzkaller.appspot.com/bug?extid=a41ac89a0712acde0e84
compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1707cd2f400000

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

8021q: adding VLAN 0 to HW filter on device batadv0
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (10499 ticks this GP) idle=d02/1/0x4000000000000002  
softirq=13779/13779 fqs=5238
rcu: 	 (t=10500 jiffies g=11657 q=1546)
NMI backtrace for cpu 0
CPU: 0 PID: 9826 Comm: syz-executor0 Not tainted 5.0.0-rc5+ #61
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
Call Trace:
  <IRQ>
  __dump_stack lib/dump_stack.c:77 [inline]
  dump_stack+0x172/0x1f0 lib/dump_stack.c:113
  nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101
  nmi_trigger_cpumask_backtrace+0x1be/0x236 lib/nmi_backtrace.c:62
  arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
  trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
  rcu_dump_cpu_stacks+0x183/0x1cf kernel/rcu/tree.c:1211
  print_cpu_stall kernel/rcu/tree.c:1348 [inline]
  check_cpu_stall kernel/rcu/tree.c:1422 [inline]
  rcu_pending kernel/rcu/tree.c:3018 [inline]
  rcu_check_callbacks.cold+0x500/0xa4a kernel/rcu/tree.c:2521
  update_process_times+0x32/0x80 kernel/time/timer.c:1635
  tick_sched_handle+0xa2/0x190 kernel/time/tick-sched.c:161
  tick_sched_timer+0x47/0x130 kernel/time/tick-sched.c:1271
  __run_hrtimer kernel/time/hrtimer.c:1389 [inline]
  __hrtimer_run_queues+0x33e/0xde0 kernel/time/hrtimer.c:1451
  hrtimer_interrupt+0x314/0x770 kernel/time/hrtimer.c:1509
  local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1035 [inline]
  smp_apic_timer_interrupt+0x120/0x570 arch/x86/kernel/apic/apic.c:1060
  apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:807
  </IRQ>
RIP: 0010:memcpy_erms+0x8/0x10 arch/x86/lib/memcpy_64.S:56
Code: 90 90 eb 1e 0f 1f 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5  
89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 f3 a4 <c3> 0f 1f 80 00  
00 00 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe 7c 35
RSP: 0018:ffff88808fd171b8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff888092eb1798 RBX: 0000000000000868 RCX: 0000000000000000
RDX: 0000000000000010 RSI: ffff88808fd17348 RDI: ffff888092eb17a8
RBP: ffff88808fd171d8 R08: 1ffff110125d62f3 R09: ffffed10125d62f5
R10: ffffed10125d62f4 R11: ffff888092eb17a7 R12: 0000000000000010
R13: ffff888092eb1798 R14: ffff88808fd17338 R15: ffff88808fd17550
  memcpy include/linux/string.h:352 [inline]
  memcpy_common kernel/events/internal.h:172 [inline]
  __output_copy kernel/events/internal.h:176 [inline]
  perf_output_read_group kernel/events/core.c:6114 [inline]
  perf_output_read+0xe16/0x1390 kernel/events/core.c:6147
  perf_output_sample+0x13b9/0x1a90 kernel/events/core.c:6189
  __perf_event_output kernel/events/core.c:6511 [inline]
  perf_event_output_forward+0x150/0x290 kernel/events/core.c:6524
  __perf_event_overflow+0x144/0x360 kernel/events/core.c:7768
  perf_swevent_overflow+0xaa/0x140 kernel/events/core.c:7844
  perf_swevent_event+0x1f7/0x2f0 kernel/events/core.c:7877
  do_perf_sw_event kernel/events/core.c:7985 [inline]
  ___perf_sw_event+0x31c/0x570 kernel/events/core.c:8016
  __perf_sw_event+0x51/0xa0 kernel/events/core.c:8028
  perf_sw_event include/linux/perf_event.h:1054 [inline]
  do_user_addr_fault arch/x86/mm/fault.c:1516 [inline]
  __do_page_fault+0x734/0xd60 arch/x86/mm/fault.c:1541
  do_page_fault+0x71/0x581 arch/x86/mm/fault.c:1572
  page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1143
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x20  
arch/x86/lib/copy_user_64.S:181
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 1f 00 c3 0f 1f  
80 00 00 00 00 0f 1f 00 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f  
1f 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 83
RSP: 0018:ffff88808fd17b40 EFLAGS: 00010206
RAX: 0000000000000000 RBX: 0000000000001000 RCX: 0000000000000340
RDX: 0000000000001000 RSI: 000000002081d000 RDI: ffff88808b047cc0
RBP: ffff88808fd17b78 R08: ffffed1011609000 R09: 0000000000000000
R10: ffffed1011608fff R11: ffff88808b047fff R12: 000000002081c340
R13: ffff88808b047000 R14: 000000002081d340 R15: 00007ffffffff000
  copy_page_from_iter_iovec lib/iov_iter.c:294 [inline]
  copy_page_from_iter+0x324/0x750 lib/iov_iter.c:907
  pipe_write+0x27d/0xfb0 fs/pipe.c:429
  call_write_iter include/linux/fs.h:1863 [inline]
  new_sync_write fs/read_write.c:474 [inline]
  __vfs_write+0x613/0x8e0 fs/read_write.c:487
  vfs_write+0x20c/0x580 fs/read_write.c:549
  ksys_write+0xea/0x1f0 fs/read_write.c:598
  __do_sys_write fs/read_write.c:610 [inline]
  __se_sys_write fs/read_write.c:607 [inline]
  __x64_sys_write+0x73/0xb0 fs/read_write.c:607
  do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457e39
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f21b6591c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457e39
RDX: 0000000041395527 RSI: 0000000020000340 RDI: 0000000000000006
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f21b65926d4
R13: 00000000004c3c0e R14: 00000000004dc3a8 R15: 00000000ffffffff


---
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 syzkaller@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with  
syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: INFO: rcu detected stall in __perf_sw_event
  2019-02-07 15:07 INFO: rcu detected stall in __perf_sw_event syzbot
@ 2019-03-26 23:04 ` syzbot
  2019-03-26 23:28   ` Finn Thain
  0 siblings, 1 reply; 4+ messages in thread
From: syzbot @ 2019-03-26 23:04 UTC (permalink / raw)
  To: acme, alexander.shishkin, fthain, funaho, geert, jolsa,
	linux-kernel, linux-m68k, mingo, namhyung, peterz,
	syzkaller-bugs

syzbot has bisected this bug to:

commit cf85d89562f39cc7ae73de54639f1915a9195b7a
Author: Finn Thain <fthain@telegraphics.com.au>
Date:   Fri May 25 07:34:36 2018 +0000

     m68k/mac: Enable PDMA for PowerBook 500 series

bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=1226cb8b200000
start commit:   b0314565 Merge tag 'for_linus' of git://git.kernel.org/pub..
git tree:       upstream
final crash:    https://syzkaller.appspot.com/x/report.txt?x=1126cb8b200000
console output: https://syzkaller.appspot.com/x/log.txt?x=1626cb8b200000
kernel config:  https://syzkaller.appspot.com/x/.config?x=8f00801d7b7c4fe6
dashboard link: https://syzkaller.appspot.com/bug?extid=a41ac89a0712acde0e84
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1707cd2f400000

Reported-by: syzbot+a41ac89a0712acde0e84@syzkaller.appspotmail.com
Fixes: cf85d89562f3 ("m68k/mac: Enable PDMA for PowerBook 500 series")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: INFO: rcu detected stall in __perf_sw_event
  2019-03-26 23:04 ` syzbot
@ 2019-03-26 23:28   ` Finn Thain
  2019-03-28  8:21     ` Dmitry Vyukov
  0 siblings, 1 reply; 4+ messages in thread
From: Finn Thain @ 2019-03-26 23:28 UTC (permalink / raw)
  To: syzbot
  Cc: acme, alexander.shishkin, funaho, geert, jolsa, linux-kernel,
	linux-m68k, mingo, namhyung, peterz, syzkaller-bugs

On Tue, 26 Mar 2019, syzbot wrote:

> syzbot has bisected this bug to:
> 
> commit cf85d89562f39cc7ae73de54639f1915a9195b7a
> Author: Finn Thain <fthain@telegraphics.com.au>
> Date:   Fri May 25 07:34:36 2018 +0000
> 
>    m68k/mac: Enable PDMA for PowerBook 500 series
> 

Looks like a false positive. But if you really are running syzkaller on a 
PowerBook 500, you'll want to check that you have an FPU, otherwise a CPU 
erratum will probably mess up your results.

-- 

> bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=1226cb8b200000
> start commit:   b0314565 Merge tag 'for_linus' of git://git.kernel.org/pub..
> git tree:       upstream
> final crash:    https://syzkaller.appspot.com/x/report.txt?x=1126cb8b200000
> console output: https://syzkaller.appspot.com/x/log.txt?x=1626cb8b200000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=8f00801d7b7c4fe6
> dashboard link: https://syzkaller.appspot.com/bug?extid=a41ac89a0712acde0e84
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1707cd2f400000
> 
> Reported-by: syzbot+a41ac89a0712acde0e84@syzkaller.appspotmail.com
> Fixes: cf85d89562f3 ("m68k/mac: Enable PDMA for PowerBook 500 series")
> 
> For information about bisection process see: https://goo.gl/tpsmEJ#bisection

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: INFO: rcu detected stall in __perf_sw_event
  2019-03-26 23:28   ` Finn Thain
@ 2019-03-28  8:21     ` Dmitry Vyukov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Vyukov @ 2019-03-28  8:21 UTC (permalink / raw)
  To: Finn Thain
  Cc: syzbot, Arnaldo Carvalho de Melo, Alexander Shishkin, funaho,
	Geert Uytterhoeven, jolsa, LKML, linux-m68k, Ingo Molnar,
	Namhyung Kim, Peter Zijlstra, syzkaller-bugs

On Wed, Mar 27, 2019 at 12:28 AM Finn Thain <fthain@telegraphics.com.au> wrote:
>
> On Tue, 26 Mar 2019, syzbot wrote:
>
> > syzbot has bisected this bug to:
> >
> > commit cf85d89562f39cc7ae73de54639f1915a9195b7a
> > Author: Finn Thain <fthain@telegraphics.com.au>
> > Date:   Fri May 25 07:34:36 2018 +0000
> >
> >    m68k/mac: Enable PDMA for PowerBook 500 series
> >
>
> Looks like a false positive. But if you really are running syzkaller on a
> PowerBook 500, you'll want to check that you have an FPU, otherwise a CPU
> erratum will probably mess up your results.

Agree. I've included it into the big bisection analysis as "hard to
reproduce" case:
https://lkml.org/lkml/2019/3/27/788


> --
>
> > bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=1226cb8b200000
> > start commit:   b0314565 Merge tag 'for_linus' of git://git.kernel.org/pub..
> > git tree:       upstream
> > final crash:    https://syzkaller.appspot.com/x/report.txt?x=1126cb8b200000
> > console output: https://syzkaller.appspot.com/x/log.txt?x=1626cb8b200000
> > kernel config:  https://syzkaller.appspot.com/x/.config?x=8f00801d7b7c4fe6
> > dashboard link: https://syzkaller.appspot.com/bug?extid=a41ac89a0712acde0e84
> > syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1707cd2f400000
> >
> > Reported-by: syzbot+a41ac89a0712acde0e84@syzkaller.appspotmail.com
> > Fixes: cf85d89562f3 ("m68k/mac: Enable PDMA for PowerBook 500 series")
> >
> > For information about bisection process see: https://goo.gl/tpsmEJ#bisection
>
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/alpine.LNX.2.21.1903271021290.994%40nippy.intranet.
> For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-28  8:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-07 15:07 INFO: rcu detected stall in __perf_sw_event syzbot
2019-03-26 23:04 ` syzbot
2019-03-26 23:28   ` Finn Thain
2019-03-28  8:21     ` Dmitry Vyukov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).