linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RT XFS] BUG from lockdep in xfs
@ 2015-09-09  6:54 Austin Schuh
  2015-09-09 11:44 ` Brian Foster
  0 siblings, 1 reply; 3+ messages in thread
From: Austin Schuh @ 2015-09-09  6:54 UTC (permalink / raw)
  To: rt-users, xfs, Philipp Schrader, Brian Silverman, Dave Chinner

I'm running xfstests and got the following BUG with lockdep enabled.
I'm running the 4.1.6-rt5 kernel from TI's tree on a TI ARM chip.

Any ideas on what could be causing it, or if it is a real problem?

I see some patches in Dave's latest 4.3 pull request that discuss
lockdep.  Are there any ones there that are worth backporting to my
4.1.6 kernel?

[ 4349.692989] run fstests generic/078 at 2015-09-09 04:58:56
[ 4357.394974] BUG: looking up invalid subclass: 8
[ 4357.394979] turning off the locking correctness validator.
[ 4357.394989] CPU: 0 PID: 22963 Comm: renameat2 Not tainted 4.1.6-rt5+ #9
[ 4357.394993] Hardware name: Generic DRA74X (Flattened Device Tree)
[ 4357.395012] [<c00196b8>] (unwind_backtrace) from [<c001515c>]
(show_stack+0x20/0x24)
[ 4357.395026] [<c001515c>] (show_stack) from [<c07bb6e0>]
(dump_stack+0x84/0xa0)
[ 4357.395038] [<c07bb6e0>] (dump_stack) from [<c009ef0c>]
(__lock_acquire+0x694/0x1ec0)
[ 4357.395046] [<c009ef0c>] (__lock_acquire) from [<c00a1014>]
(lock_acquire+0x10c/0x354)
[ 4357.395055] [<c00a1014>] (lock_acquire) from [<c00a60ac>]
(rt_down_write_nested+0x3c/0x4c)
[ 4357.395069] [<c00a60ac>] (rt_down_write_nested) from [<c03b9874>]
(xfs_ilock+0x110/0x328)
[ 4357.395080] [<c03b9874>] (xfs_ilock) from [<c03baa84>]
(xfs_lock_inodes+0x80/0x1b0)
[ 4357.395088] [<c03baa84>] (xfs_lock_inodes) from [<c03bede0>]
(xfs_rename+0x214/0xd24)
[ 4357.395097] [<c03bede0>] (xfs_rename) from [<c03b7398>]
(xfs_vn_rename+0x94/0xa8)
[ 4357.395110] [<c03b7398>] (xfs_vn_rename) from [<c01a9c64>]
(vfs_rename+0x5c0/0x870)
[ 4357.395119] [<c01a9c64>] (vfs_rename) from [<c01af684>]
(SyS_renameat2+0x458/0x48c)
[ 4357.395130] [<c01af684>] (SyS_renameat2) from [<c0010940>]
(ret_fast_syscall+0x0/0x54)

Thanks!
Austin

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

* Re: [RT XFS] BUG from lockdep in xfs
  2015-09-09  6:54 [RT XFS] BUG from lockdep in xfs Austin Schuh
@ 2015-09-09 11:44 ` Brian Foster
  2015-09-13 23:50   ` Dave Chinner
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Foster @ 2015-09-09 11:44 UTC (permalink / raw)
  To: Austin Schuh
  Cc: rt-users, xfs, Philipp Schrader, Brian Silverman, Dave Chinner

On Tue, Sep 08, 2015 at 11:54:07PM -0700, Austin Schuh wrote:
> I'm running xfstests and got the following BUG with lockdep enabled.
> I'm running the 4.1.6-rt5 kernel from TI's tree on a TI ARM chip.
> 
> Any ideas on what could be causing it, or if it is a real problem?
> 
> I see some patches in Dave's latest 4.3 pull request that discuss
> lockdep.  Are there any ones there that are worth backporting to my
> 4.1.6 kernel?
> 

I suspect Dave's recent rework of the lockdep namespace bits is what you
want:

	0952c818 xfs: clean up inode lockdep annotations

Note that there are a few follow on patches as well to clean up
directory locking and some kconfig related warnings and such.

Brian

> [ 4349.692989] run fstests generic/078 at 2015-09-09 04:58:56
> [ 4357.394974] BUG: looking up invalid subclass: 8
> [ 4357.394979] turning off the locking correctness validator.
> [ 4357.394989] CPU: 0 PID: 22963 Comm: renameat2 Not tainted 4.1.6-rt5+ #9
> [ 4357.394993] Hardware name: Generic DRA74X (Flattened Device Tree)
> [ 4357.395012] [<c00196b8>] (unwind_backtrace) from [<c001515c>]
> (show_stack+0x20/0x24)
> [ 4357.395026] [<c001515c>] (show_stack) from [<c07bb6e0>]
> (dump_stack+0x84/0xa0)
> [ 4357.395038] [<c07bb6e0>] (dump_stack) from [<c009ef0c>]
> (__lock_acquire+0x694/0x1ec0)
> [ 4357.395046] [<c009ef0c>] (__lock_acquire) from [<c00a1014>]
> (lock_acquire+0x10c/0x354)
> [ 4357.395055] [<c00a1014>] (lock_acquire) from [<c00a60ac>]
> (rt_down_write_nested+0x3c/0x4c)
> [ 4357.395069] [<c00a60ac>] (rt_down_write_nested) from [<c03b9874>]
> (xfs_ilock+0x110/0x328)
> [ 4357.395080] [<c03b9874>] (xfs_ilock) from [<c03baa84>]
> (xfs_lock_inodes+0x80/0x1b0)
> [ 4357.395088] [<c03baa84>] (xfs_lock_inodes) from [<c03bede0>]
> (xfs_rename+0x214/0xd24)
> [ 4357.395097] [<c03bede0>] (xfs_rename) from [<c03b7398>]
> (xfs_vn_rename+0x94/0xa8)
> [ 4357.395110] [<c03b7398>] (xfs_vn_rename) from [<c01a9c64>]
> (vfs_rename+0x5c0/0x870)
> [ 4357.395119] [<c01a9c64>] (vfs_rename) from [<c01af684>]
> (SyS_renameat2+0x458/0x48c)
> [ 4357.395130] [<c01af684>] (SyS_renameat2) from [<c0010940>]
> (ret_fast_syscall+0x0/0x54)
> 
> Thanks!
> Austin
> 
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: [RT XFS] BUG from lockdep in xfs
  2015-09-09 11:44 ` Brian Foster
@ 2015-09-13 23:50   ` Dave Chinner
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Chinner @ 2015-09-13 23:50 UTC (permalink / raw)
  To: Brian Foster
  Cc: Austin Schuh, rt-users, xfs, Philipp Schrader, Brian Silverman

On Wed, Sep 09, 2015 at 07:44:51AM -0400, Brian Foster wrote:
> On Tue, Sep 08, 2015 at 11:54:07PM -0700, Austin Schuh wrote:
> > I'm running xfstests and got the following BUG with lockdep enabled.
> > I'm running the 4.1.6-rt5 kernel from TI's tree on a TI ARM chip.
> > 
> > Any ideas on what could be causing it, or if it is a real problem?
> > 
> > I see some patches in Dave's latest 4.3 pull request that discuss
> > lockdep.  Are there any ones there that are worth backporting to my
> > 4.1.6 kernel?
> > 
> 
> I suspect Dave's recent rework of the lockdep namespace bits is what you
> want:
> 
> 	0952c818 xfs: clean up inode lockdep annotations

Yes, that works around the issue that causes this:

> > [ 4357.394974] BUG: looking up invalid subclass: 8

i.e. that we have about 15 different subclass annotations for
different inode locking situations we need to shoe horn into 8
subclasses...

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

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

end of thread, other threads:[~2015-09-13 23:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09  6:54 [RT XFS] BUG from lockdep in xfs Austin Schuh
2015-09-09 11:44 ` Brian Foster
2015-09-13 23:50   ` Dave Chinner

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).