From: Dave Jones <davej@redhat.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>,
Linux Kernel <linux-kernel@vger.kernel.org>,
Miklos Szeredi <mszeredi@suse.cz>, Jan Kara <jack@suse.cz>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: processes hung after sys_renameat, and 'missing' processes
Date: Wed, 6 Jun 2012 21:19:15 -0400 [thread overview]
Message-ID: <20120607011915.GA17566@redhat.com> (raw)
In-Reply-To: <CA+55aFyp2GUbc218eb5BDyAqz+cOPTJMVcb4ptk+f1_RBB+-mg@mail.gmail.com>
On Wed, Jun 06, 2012 at 05:42:35PM -0700, Linus Torvalds wrote:
> So Al meant you to test mutex_is_locked(dentry->d_inode->i_mutex) of
> the parents.
ok, I ended up with..
WARN_ON_ONCE(!mutex_is_locked(&target->d_parent->d_inode->i_mutex));
if (dentry->d_parent != NULL)
WARN_ON_ONCE(!mutex_is_locked(&dentry->d_inode->i_mutex));
but..
> And I'd suggest making it just a WARN_ON_ONCE(), because if you make
> it a BUG_ON() and it triggers, your system will likely be dead. And
> ONCE is all that matters - it should never happen.
I hit the second WARN very early on, before I even get out of the initramfs.
[ 6.365556] WARNING: at fs/dcache.c:2350 d_move+0xaf/0xc0()
[ 6.365793] Modules linked in:
[ 6.365909] Pid: 134, comm: mount Not tainted 3.5.0-rc1+ #69
[ 6.366030] Call Trace:
[ 6.366147] [<ffffffff8104910f>] warn_slowpath_common+0x7f/0xc0
[ 6.366271] [<ffffffff8104916a>] warn_slowpath_null+0x1a/0x20
[ 6.366396] [<ffffffff811c5c4f>] d_move+0xaf/0xc0
[ 6.366521] [<ffffffff811b9654>] vfs_rename+0x3c4/0x4e0
[ 6.366647] [<ffffffff811bd741>] sys_renameat+0x201/0x230
[ 6.366773] [<ffffffff8132e59c>] ? debug_check_no_obj_freed+0x16c/0x210
[ 6.366902] [<ffffffff81171cfc>] ? vm_munmap+0x5c/0x80
[ 6.367026] [<ffffffff81086f91>] ? get_parent_ip+0x11/0x50
[ 6.367148] [<ffffffff81086f91>] ? get_parent_ip+0x11/0x50
[ 6.367273] [<ffffffff81651919>] ? sub_preempt_count+0x79/0xd0
[ 6.367397] [<ffffffff81655937>] ? sysret_check+0x1b/0x56
[ 6.367521] [<ffffffff810b7dd5>] ? trace_hardirqs_on_caller+0x115/0x1a0
[ 6.367647] [<ffffffff81326f4e>] ? trace_hardirqs_on_thunk+0x3a/0x3f
[ 6.367772] [<ffffffff811bd78b>] sys_rename+0x1b/0x20
[ 6.367891] [<ffffffff81655912>] system_call_fastpath+0x16/0x1b
Did I screw up the test again ? I'm feeling a bit hard-of-thinking tonight.
> > To be clear, do you want me to try that with or without the reverts ?
>
> I think either would be interesting.
For now, I still have those two commits applied.
Dave
next prev parent reply other threads:[~2012-06-07 1:19 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-03 22:36 processes hung after sys_renameat, and 'missing' processes Dave Jones
2012-06-03 22:51 ` Dave Jones
2012-06-03 23:07 ` Linus Torvalds
2012-06-03 23:17 ` Al Viro
2012-06-03 23:28 ` Al Viro
2012-06-03 23:40 ` Al Viro
2012-06-03 23:59 ` Al Viro
2012-06-04 0:07 ` Dave Jones
2012-06-06 19:42 ` Dave Jones
2012-06-06 22:38 ` Linus Torvalds
2012-06-06 23:00 ` Dave Jones
2012-06-06 23:31 ` Linus Torvalds
2012-06-06 23:54 ` Al Viro
2012-06-07 0:29 ` Dave Jones
2012-06-07 0:40 ` Al Viro
2012-06-07 0:42 ` Linus Torvalds
2012-06-07 1:19 ` Dave Jones [this message]
2012-06-07 1:29 ` Al Viro
2012-06-07 1:31 ` Dave Jones
2012-06-07 1:31 ` Al Viro
2012-06-07 1:42 ` Dave Jones
2012-06-07 1:45 ` Linus Torvalds
2012-06-07 1:54 ` Al Viro
2012-06-07 2:08 ` Dave Jones
2012-06-07 19:36 ` Al Viro
2012-06-07 20:43 ` Sage Weil
2012-06-07 23:12 ` Eric W. Biederman
2012-06-07 23:39 ` Al Viro
2012-06-07 23:57 ` Linus Torvalds
2012-06-08 0:36 ` Al Viro
2012-06-08 0:42 ` Linus Torvalds
2012-06-08 0:59 ` Al Viro
2012-06-08 5:25 ` Eric W. Biederman
2012-06-08 5:48 ` Al Viro
2012-06-08 7:54 ` Eric W. Biederman
2012-06-08 20:20 ` Al Viro
2012-06-08 2:08 ` Eric W. Biederman
2012-06-08 2:37 ` Al Viro
2012-06-08 2:18 ` Al Viro
2012-06-08 16:22 ` J. Bruce Fields
2012-06-08 17:44 ` Linus Torvalds
2012-06-11 12:17 ` J. Bruce Fields
2012-06-07 1:40 ` Linus Torvalds
2012-06-07 0:35 ` Linus Torvalds
2012-06-07 10:26 ` Peter Zijlstra
2012-06-07 15:30 ` Linus Torvalds
2012-06-08 7:31 ` Peter Zijlstra
2012-06-08 14:38 ` Dave Jones
2012-06-08 14:51 ` Peter Zijlstra
2012-06-08 15:01 ` Dave Jones
2012-06-08 15:11 ` Peter Zijlstra
2012-06-08 15:21 ` Dave Jones
2012-06-08 14:46 ` J. Bruce Fields
2012-06-08 15:08 ` Peter Zijlstra
2012-06-11 12:17 ` J. Bruce Fields
2012-06-04 0:00 ` Dave Jones
2012-06-04 0:16 ` Linus Torvalds
2012-06-04 0:20 ` Al Viro
2012-06-04 9:35 ` Peter Zijlstra
2012-06-04 9:29 ` Peter Zijlstra
2012-06-04 10:49 ` Peter Zijlstra
2012-06-07 0:13 ` Dave Jones
-- strict thread matches above, loose matches on Subject: below --
2012-06-07 7:07 Miklos Szeredi
2012-06-07 15:44 ` Linus Torvalds
2012-06-11 16:02 ` Miklos Szeredi
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=20120607011915.GA17566@redhat.com \
--to=davej@redhat.com \
--cc=jack@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=mszeredi@suse.cz \
--cc=peterz@infradead.org \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
/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.