[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140326053440.GB1292@quack.suse.cz>
Date: Wed, 26 Mar 2014 06:34:40 +0100
From: Jan Kara <jack@...e.cz>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Jan Kara <jack@...e.cz>, Sasha Levin <sasha.levin@...cle.com>,
Al Viro <viro@...iv.linux.org.uk>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: fs: gpf in simple_setattr
On Tue 25-03-14 17:41:59, Linus Torvalds wrote:
> On Tue, Mar 25, 2014 at 2:12 PM, Jan Kara <jack@...e.cz> wrote:
> >
> > Can you try whether the following patch fixes the issue for you?
>
> Good catch, Honza.
>
> I hate how fragile that code ends up being and would love to see that
> "anon_inode_inode" allocation and assignment just once in
> anon_inode_init(), but considering that it wants the superblock
> pointer, I suspect it's not cleanly doable. Oh well. Your patch looks
> like it should make the issue moot, I just dread this happening again
> due to the layout of the code.
Well, I think it could be done relatively cleanly... How about the
attached patch (it boots for me)?
Honza
--
Jan Kara <jack@...e.cz>
SUSE Labs, CR
View attachment "0001-vfs-Allocate-anon_inode_inode-in-anon_inode_init.patch" of type "text/x-patch" (2021 bytes)
Powered by blists - more mailing lists