All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Rutland <mark.rutland@arm.com>
To: Vince Weaver <vincent.weaver@maine.edu>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Will Deacon <Will.Deacon@arm.com>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@redhat.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>
Subject: Re: Perf lockups / stack overflows on v3.17-rc6, x86_64, arm, arm64
Date: Mon, 6 Oct 2014 15:34:31 +0100	[thread overview]
Message-ID: <20141006143431.GA21565@leverpostej> (raw)
In-Reply-To: <20141006095931.GB24686@leverpostej>

> > > Log 2, x86_64 stack overflow
> > 
> > > [  346.641345] divide error: 0000 [#1] SMP
> > > [  346.642010] Modules linked in:
> > > [  346.642010] CPU: 0 PID: 4076 Comm: perf_fuzzer Not tainted 3.17.0-rc6hark-perf-lockup+ #1
> > > [  346.642010] Hardware name: LENOVO 7484A3G/LENOVO, BIOS 5CKT54AUS 09/07/2009
> > > [  346.642010] task: ffff8801ac449a70 ti: ffff8801ac574000 task.ti: ffff8801ac574000
> > > [  346.642010] RIP: 0010:[<ffffffff81078bce>]  [<ffffffff81078bce>] find_busiest_group+0x28e/0x8a0
> > > [  346.642010] RSP: 0018:ffff8801ac577760  EFLAGS: 00010006
> > > [  346.642010] RAX: 00000000000003ff RBX: 0000000000000000 RCX: 00000000ffff8801
> > > [  346.642010] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
> > > [  346.642010] RBP: ffff8801ac577890 R08: 0000000000000000 R09: 0000000000000000
> > > [  346.704010] ------------[ cut here ]------------
> > > [  346.704017] WARNING: CPU: 2 PID: 5 at arch/x86/kernel/irq_64.c:70 handle_irq+0x141/0x150()
> > > [  346.704019] do_IRQ():  has overflown the kernel stack (cur:1,sp:ffff8801b653fe88,irq stk top-bottom:ffff8801bed00080-ffff8801bed03fc0,exception stk top-bottom:ffff8801bed04080-ffff8801bed0a000)
> > 
> > weird, have not seen this before.  Though I was hitting a reboot issue
> > that would give really strange crash messages that was possibly fixed by
> > a patch that went into 3.17-rc7.
> 
> Interesting. I'll retry with v3.17.

So far I haven't been able to trigger the above failure on v3.17, so perhaps
some patch has fixed that.

With the same seed (1411654897) I can trigger a hw_breakpoint warning
relatively repeatably (logs for a couple of instances below).

Mark.

---->8----
[ 3268.694056] ------------[ cut here ]------------
[ 3268.694066] WARNING: CPU: 0 PID: 19671 at arch/x86/kernel/hw_breakpoint.c:119 arch_install_hw_breakpoint+0xf0/0x100()
[ 3268.694068] Can't find any breakpoint slot
[ 3268.694070] Modules linked in:
[ 3268.694075] CPU: 0 PID: 19671 Comm: perf_fuzzer Not tainted 3.17.0hark-lockup2-2014-10-06 #4
[ 3268.694077] Hardware name: LENOVO 7484A3G/LENOVO, BIOS 5CKT54AUS 09/07/2009
[ 3268.694079]  0000000000000009 ffff88019a343c78 ffffffff8182da5c ffff88019a343cc0
[ 3268.694084]  ffff88019a343cb0 ffffffff8104af38 ffff8801af5ec800 ffff8801a0faae00
[ 3268.694088]  ffff8801bec16780 ffff8801bec16784 000001b8c35e3e18 ffff88019a343d10
[ 3268.694092] Call Trace:
[ 3268.694098]  [<ffffffff8182da5c>] dump_stack+0x45/0x56
[ 3268.694103]  [<ffffffff8104af38>] warn_slowpath_common+0x78/0xa0
[ 3268.694106]  [<ffffffff8104afa7>] warn_slowpath_fmt+0x47/0x50
[ 3268.694110]  [<ffffffff8100a720>] arch_install_hw_breakpoint+0xf0/0x100
[ 3268.694114]  [<ffffffff8111101f>] hw_breakpoint_add+0x3f/0x50
[ 3268.694117]  [<ffffffff8110b3d4>] event_sched_in.isra.80+0x84/0x1b0
[ 3268.694121]  [<ffffffff8110b569>] group_sched_in+0x69/0x1e0
[ 3268.694124]  [<ffffffff8110c5cb>] ? perf_event_update_userpage+0xeb/0x160
[ 3268.694129]  [<ffffffff8107568d>] ? sched_clock_local+0x1d/0x80
[ 3268.694132]  [<ffffffff8110b7b2>] ctx_sched_in.isra.81+0xd2/0x1a0
[ 3268.694136]  [<ffffffff8110b8cf>] perf_event_sched_in.isra.84+0x4f/0x70
[ 3268.694139]  [<ffffffff8110bac3>] perf_event_context_sched_in.isra.85+0x73/0xc0
[ 3268.694142]  [<ffffffff8110c175>] __perf_event_task_sched_in+0x185/0x1a0
[ 3268.694147]  [<ffffffff8106c832>] finish_task_switch+0xb2/0xf0
[ 3268.694151]  [<ffffffff818339bf>] __schedule+0x34f/0x810
[ 3268.694154]  [<ffffffff81833ea4>] schedule+0x24/0x70
[ 3268.694158]  [<ffffffff818395d1>] int_careful+0xd/0x14
[ 3268.694160] ---[ end trace e1f62407a7d7e846 ]---
---->8----

---->8----
[ 4016.924076] ------------[ cut here ]------------
[ 4016.925039] WARNING: CPU: 1 PID: 14091 at arch/x86/kernel/hw_breakpoint.c:119 arch_install_hw_breakpoint+0xf0/0x100()
[ 4016.925039] Can't find any breakpoint slot
[ 4016.925039] Modules linked in:
[ 4016.925039] CPU: 1 PID: 14091 Comm: perf_fuzzer Not tainted 3.17.0hark-lockup2-2014-10-06 #4
[ 4016.925039] Hardware name: LENOVO 7484A3G/LENOVO, BIOS 5CKT54AUS 09/07/2009
[ 4016.925039]  0000000000000009 ffff8800cd85f9a8 ffffffff8182da5c ffff8800cd85f9f0
[ 4016.925039]  ffff8800cd85f9e0 ffffffff8104af38 ffff8800e38bd000 ffff8801a6fb1c00
[ 4016.925039]  ffff8801bec96780 ffff8801bec96784 0000027400d480df ffff8800cd85fa40
[ 4016.925039] Call Trace:
[ 4016.925039]  [<ffffffff8182da5c>] dump_stack+0x45/0x56
[ 4016.925039]  [<ffffffff8104af38>] warn_slowpath_common+0x78/0xa0
[ 4016.925039]  [<ffffffff8104afa7>] warn_slowpath_fmt+0x47/0x50
[ 4016.925039]  [<ffffffff8100a720>] arch_install_hw_breakpoint+0xf0/0x100
[ 4016.925039]  [<ffffffff8111101f>] hw_breakpoint_add+0x3f/0x50
[ 4016.925039]  [<ffffffff8110b3d4>] event_sched_in.isra.80+0x84/0x1b0
[ 4016.925039]  [<ffffffff8110b569>] group_sched_in+0x69/0x1e0
[ 4016.925039]  [<ffffffff8110c5cb>] ? perf_event_update_userpage+0xeb/0x160
[ 4016.925039]  [<ffffffff8107568d>] ? sched_clock_local+0x1d/0x80
[ 4016.925039]  [<ffffffff8110b7b2>] ctx_sched_in.isra.81+0xd2/0x1a0
[ 4016.925039]  [<ffffffff8110b8cf>] perf_event_sched_in.isra.84+0x4f/0x70
[ 4016.925039]  [<ffffffff8110bac3>] perf_event_context_sched_in.isra.85+0x73/0xc0
[ 4016.925039]  [<ffffffff8110c175>] __perf_event_task_sched_in+0x185/0x1a0
[ 4016.925039]  [<ffffffff8106c832>] finish_task_switch+0xb2/0xf0
[ 4016.925039]  [<ffffffff818339bf>] __schedule+0x34f/0x810
[ 4016.925039]  [<ffffffff81833ea4>] schedule+0x24/0x70
[ 4016.925039]  [<ffffffff81837ca9>] schedule_timeout+0x1b9/0x290
[ 4016.925039]  [<ffffffff81835113>] ? wait_for_completion+0x23/0x100
[ 4016.925039]  [<ffffffff8183518c>] wait_for_completion+0x9c/0x100
[ 4016.925039]  [<ffffffff81072800>] ? wake_up_state+0x10/0x10
[ 4016.925039]  [<ffffffff8109e7f0>] ? call_rcu_bh+0x20/0x20
[ 4016.925039]  [<ffffffff8109c766>] wait_rcu_gp+0x46/0x50
[ 4016.925039]  [<ffffffff8109c710>] ? ftrace_raw_output_rcu_utilization+0x50/0x50
[ 4016.925039]  [<ffffffff8109ee93>] synchronize_sched+0x33/0x50
[ 4016.925039]  [<ffffffff810f9fab>] perf_trace_event_unreg.isra.1+0x3b/0x90
[ 4016.925039]  [<ffffffff810fa318>] perf_trace_destroy+0x38/0x50
[ 4016.925039]  [<ffffffff81106d99>] tp_perf_event_destroy+0x9/0x10
[ 4016.925039]  [<ffffffff81108523>] __free_event+0x23/0x70
[ 4016.925039]  [<ffffffff8110f057>] SYSC_perf_event_open+0x397/0xa50
[ 4016.925039]  [<ffffffff8110fad9>] SyS_perf_event_open+0x9/0x10
[ 4016.925039]  [<ffffffff81839550>] tracesys+0xdd/0xe2
[ 4016.925039] ---[ end trace a2fe478e9cb5649b ]---
---->8----

  reply	other threads:[~2014-10-06 14:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-25 15:28 Perf lockups / stack overflows on v3.17-rc6, x86_64, arm, arm64 Mark Rutland
2014-10-05  5:13 ` Vince Weaver
2014-10-06  9:59   ` Mark Rutland
2014-10-06 14:34     ` Mark Rutland [this message]
2014-10-07  5:00       ` Vince Weaver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141006143431.GA21565@leverpostej \
    --to=mark.rutland@arm.com \
    --cc=Will.Deacon@arm.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=paulus@samba.org \
    --cc=vincent.weaver@maine.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.