lkml.org 
[lkml]   [2015]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH][v3.2 stable tree] dcache: Balance rcu_read_lock in have_submounts()
From
Date
On Thu, 2015-02-12 at 00:28 -0500, Steven Rostedt wrote:
> On Wed, 11 Feb 2015 03:15:37 +0000
> Ben Hutchings <ben@decadent.org.uk> wrote:
>
> > I've reviewed locking contexts in all three functions that I changed
> > when backporting "deal with deadlock in d_walk()". It's actually worse
> > than you say:
> >
> > - We don't hold this_parent->d_lock at the 'positive' label in
> > have_submounts(), but it is unlocked after 'rename_retry'.
> > - There is an rcu_read_unlock() after the 'out' label in
> > select_parent(), but it's not held at the 'goto out'.
> >
> > Does the following patch work for you?
>
> I booted the original 3.2 kernel 3 times and it succeeded once, and
> crashed the other two.
>
> I applied this patch and booted it 5 times, and it succeeded every time.
>
> I removed the patch, and it crashed on the very next boot.
>
> Thus, I'd say it seems to have fixed the issue for me.
>
> Tested-by: Steven Rostedt <rostedt@goodmis.org>
[...]

Thanks.

Ben.

--
Ben Hutchings
Never attribute to conspiracy what can adequately be explained by stupidity.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-02-16 01:21    [W:0.538 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site