public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Sasha Levin <sasha.levin@oracle.com>
Cc: Josh Triplett <josh@joshtriplett.org>,
	Steven Rostedt <rostedt@goodmis.org>,
	Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	Lai Jiangshan <laijs@cn.fujitsu.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Dave Jones <davej@redhat.com>
Subject: Re: rcu: frequent rcu lockups
Date: Fri, 20 Mar 2015 07:29:23 -0700	[thread overview]
Message-ID: <20150320142923.GH6021@linux.vnet.ibm.com> (raw)
In-Reply-To: <550C2B86.1040803@oracle.com>

On Fri, Mar 20, 2015 at 10:15:34AM -0400, Sasha Levin wrote:
> On 03/15/2015 08:02 PM, Paul E. McKenney wrote:
> > On Sun, Mar 15, 2015 at 07:32:32PM -0400, Sasha Levin wrote:
> >> > On 03/15/2015 04:43 PM, Paul E. McKenney wrote:
> >>> > > But I did find a bug that would result in the other warnings, and could
> >>> > > also result in too-short grace periods, which could in turn result in
> >>> > > arbitrarily arbitrary misbehavior.  The patch below, which is also on
> >>> > > its way into -next, should fix this.  Please let me know how it does
> >>> > > for you.
> >> > 
> >> > I've stopped seeing the warnings I've previously reported, but started
> >> > seeing a new one:
> >> > 
> >> > [  788.564596] WARNING: CPU: 12 PID: 9711 at kernel/rcu/tree.c:2201 rcu_report_qs_rnp+0x42e/0x5a0()
> >> > [  788.568123] Modules linked in:
> >> > [  788.568123] CPU: 12 PID: 9711 Comm: trinity-main Not tainted 4.0.0-rc3-next-20150313-sasha-00041-g83a3dc8-dirty #2078
> >> > [  788.568123]  ffff8803a1ba0000 00000000400df16a ffff880442807cc8 ffffffffb1ab01ca
> >> > [  788.568123]  0000000000000000 0000000000000000 ffff880442807d18 ffffffffa71e261a
> >> > [  788.568123]  dffffc0000000000 ffffffffa733d2ee ffff880442807d28 ffffffffb4724000
> >> > [  788.568123] Call Trace:
> >> > [  788.568123] <IRQ> dump_stack (lib/dump_stack.c:52)
> >> > [  788.568123] warn_slowpath_common (kernel/panic.c:447)
> >> > [  788.568123] ? rcu_report_qs_rnp (kernel/rcu/tree.c:2201 (discriminator 3))
> >> > [  788.568123] warn_slowpath_null (kernel/panic.c:481)
> >> > [  788.568123] rcu_report_qs_rnp (kernel/rcu/tree.c:2201 (discriminator 3))
> >> > [  788.568123] rcu_process_callbacks (kernel/rcu/tree.c:2302 kernel/rcu/tree.c:2338 kernel/rcu/tree.c:2824 kernel/rcu/tree.c:2857)
> >> > [  788.568123] __do_softirq (kernel/softirq.c:273 include/linux/jump_label.h:114 include/trace/events/irq.h:126 kernel/softirq.c:274)
> >> > [  788.568123] irq_exit (kernel/softirq.c:350 kernel/softirq.c:391)
> >> > [  788.568123] smp_apic_timer_interrupt (arch/x86/kernel/apic/apic.c:918)
> >> > [  788.568123] apic_timer_interrupt (arch/x86/kernel/entry_64.S:920)
> >> > [  788.568123] <EOI> ? mark_held_locks (kernel/locking/lockdep.c:2525)
> >> > [  788.568123] finish_task_switch (kernel/sched/core.c:2231)
> >> > [  788.568123] __schedule (kernel/sched/core.c:2337 kernel/sched/core.c:2795)
> >> > [  788.568123] schedule (./arch/x86/include/asm/bitops.h:311 (discriminator 1) kernel/sched/core.c:2824 (discriminator 1))
> >> > [  788.568123] schedule_preempt_disabled (kernel/sched/core.c:2856)
> >> > [  788.568123] mutex_lock_nested (kernel/locking/mutex.c:585 kernel/locking/mutex.c:623)
> >> > [  788.568123] kernfs_iop_permission (fs/kernfs/inode.c:366)
> >> > [  788.568123] __inode_permission (fs/namei.c:374 fs/namei.c:408)
> >> > [  788.568123] inode_permission (fs/namei.c:460)
> >> > [  788.568123] link_path_walk (fs/namei.c:1520 fs/namei.c:1782)
> >> > [  788.568123] path_init (fs/namei.c:1947)
> >> > [  788.568123] path_lookupat (fs/namei.c:1989)
> >> > [  788.568123] filename_lookup (fs/namei.c:2025)
> >> > [  788.568123] user_path_at_empty (fs/namei.c:2189)
> >> > [  788.568123] user_path_at (fs/namei.c:2200)
> >> > [  788.568123] vfs_fstatat (fs/stat.c:106)
> >> > [  788.568123] SYSC_newfstatat (fs/stat.c:298)
> >> > [  788.568123] SyS_newfstatat (fs/stat.c:291)
> >> > [  788.568123] tracesys_phase2 (arch/x86/kernel/entry_64.S:347)
> > OK, I guess it would help to update the WARN_ON()s while I am at it.  :-/
> > 
> > Here is an updated patch that replaces the one resulting in the above
> > splat.
> 
> That did the trick for me, but I don't think it made it to -next?

Good to hear!  May I add your Tested-by?

And thank you for the reminder on -next, pushing it out now.

								Thanx, Paul


  reply	other threads:[~2015-03-20 14:29 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-11 19:57 rcu: frequent rcu lockups Sasha Levin
2015-03-11 20:17 ` Paul E. McKenney
2015-03-11 20:18   ` Sasha Levin
2015-03-11 20:41     ` Paul E. McKenney
2015-03-11 22:18       ` Sasha Levin
2015-03-11 23:01         ` Paul E. McKenney
2015-03-11 23:06           ` Sasha Levin
2015-03-11 23:16             ` Paul E. McKenney
2015-03-12 12:28               ` Sasha Levin
2015-03-12 12:32                 ` Sasha Levin
2015-03-12 14:07                   ` Paul E. McKenney
2015-03-13 17:39                     ` Paul E. McKenney
2015-03-15 20:43                       ` Paul E. McKenney
2015-03-15 23:32                         ` Sasha Levin
2015-03-16  0:02                           ` Paul E. McKenney
2015-03-20 14:15                             ` Sasha Levin
2015-03-20 14:29                               ` Paul E. McKenney [this message]
2015-03-20 14:46                                 ` Sasha Levin
2015-03-20 15:35                                   ` Paul E. McKenney

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=20150320142923.GH6021@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=davej@redhat.com \
    --cc=josh@joshtriplett.org \
    --cc=laijs@cn.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=rostedt@goodmis.org \
    --cc=sasha.levin@oracle.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox