Re: [PATCH][v3.2 stable tree] dcache: Balance rcu_read_lock in have_submounts()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2015-02-12 at 00:28 -0500, Steven Rostedt wrote:
> On Wed, 11 Feb 2015 03:15:37 +0000
> Ben Hutchings <ben@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxx>
[...]

Thanks.

Ben.

-- 
Ben Hutchings
Never attribute to conspiracy what can adequately be explained by stupidity.

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]