[lkml]   [2018]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 03/16] vfs: don't evict uninitialized inode
On Mon, Jul 30, 2018 at 7:09 AM, Amir Goldstein <> wrote:
> On Mon, Jul 30, 2018 at 1:04 AM, Al Viro <> wrote:
>> From: Miklos Szeredi <>
>> iput() ends up calling ->evict() on new inode, which is not yet initialized
>> by owning fs. So use destroy_inode() instead.
>> Add to sb->s_inodes list only if inode is not in I_CREATING state (meaning
>> that it wasn't allocated with new_inode(), which already does the
>> insertion).
>> Reported-by: Al Viro <>
>> Signed-off-by: Miklos Szeredi <>
>> Fixes: 80ea09a002bf ("vfs: factor out inode_insert5()")
> Backport hint: this patch depends on the patch ("new primitive:
> discard_new_inode()") currently commit 22dc9a168272 in Al's for-next.
> Still trying to figure out the best format to channel this information to
> stable maintainers...

Why are we talking about stable? This regression was introduced in
4.18-rc1, spotted by Al *and* reported by testers. It needs to be
fixed in one way or other in 4.18.

I've nothing against applying "new primitive: discard_new_inode() now
+ this patch, but if it is deemed too risky at this point, we could
just revert the buggy commit 80ea09a002bf ("vfs: factor out
inode_insert5()") and its dependencies.


 \ /
  Last update: 2018-07-30 09:41    [W:0.063 / U:1.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site