From: David Chinner <dgc@sgi.com>
To: NetArt - Grzegorz Nosek <grzegorz.nosek@netart.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.18 xfs lockdep warning
Date: Thu, 12 Oct 2006 13:03:44 +1000 [thread overview]
Message-ID: <20061012030344.GS19345@melbourne.sgi.com> (raw)
In-Reply-To: <20061011102838.GA10195@tech.serwery.pl>
On Wed, Oct 11, 2006 at 12:28:38PM +0200, NetArt - Grzegorz Nosek wrote:
> Hello all,
>
> (not subscribed, please cc)
>
> I'd like to report a lockdep warning with 2.6.18 while unmounting a
> xfs filesystem.
>
> Tested on vanilla 2.6.18, the trace I get is as follows:
Right now, i don't think it is safe to use lockdep with XFS. We've
just discovered that lockdep can panic the system or cause
use-after-free issues because of the fact that XFS often does not
unlock objects before freeing them. We are working on getting
full lockdep support in XFS, but we are not there yet.
FWIW, this patch might fix the problem you reported.
---
fs/xfs/xfs_iget.c | 1 +
1 file changed, 1 insertion(+)
Index: 2.6.x-xfs-new/fs/xfs/xfs_iget.c
===================================================================
--- 2.6.x-xfs-new.orig/fs/xfs/xfs_iget.c 2006-10-11 14:01:46.000000000 +1000
+++ 2.6.x-xfs-new/fs/xfs/xfs_iget.c 2006-10-12 13:00:55.158588110 +1000
@@ -562,6 +562,7 @@ xfs_ireclaim(xfs_inode_t *ip)
/*
* Free all memory associated with the inode.
*/
+ xfs_iunlock(ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL);
xfs_idestroy(ip);
}
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
prev parent reply other threads:[~2006-10-12 3:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-11 10:28 2.6.18 xfs lockdep warning NetArt - Grzegorz Nosek
2006-10-12 3:03 ` David Chinner [this message]
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=20061012030344.GS19345@melbourne.sgi.com \
--to=dgc@sgi.com \
--cc=grzegorz.nosek@netart.pl \
--cc=linux-kernel@vger.kernel.org \
/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