Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2575477imm; Thu, 16 Aug 2018 11:46:16 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyF4wznfduQ7xCdNt9JAQptA9c9mgondasxv9W2KpWHiC1ZPy9RLtj8eC+o6gKqNtYUNlKK X-Received: by 2002:a63:2a0b:: with SMTP id q11-v6mr29768742pgq.36.1534445176556; Thu, 16 Aug 2018 11:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534445176; cv=none; d=google.com; s=arc-20160816; b=pPgIontr2NR6v1CLQsUbvJ1IaS9FG9er0Q6X1ww+RXy5tdLpK7VKJkw5fzMBozHZaB 97gXGJhagoEd/S5JDYeUj5bO0/dXDjZIxSbp2lCwT1Gd7iqbgZA81Zu36zngnIWuHuz7 4549aocVrx0YN2KYUvfej0DQFJ5Ic+PV/hN4CP/JWWryR0W/vEoXTi+tt52SbuNWGQMh VPV7llBLZ0U7ctrJ0chXbQdtdxt+IG7wuJwOxsMSGXjY6FoMDY+dENYTliX6aszY4GZ/ /CCN9Sg74cGCyj3DE15dDvAAd8YWHFYiPsTzTzedGA3GhYl+NqyECEdaAtGvpRMlkPIm Zimg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=alIChM2asgfj7vyQrMYs0a4ocDl1OghK/2AfWTYX/y8=; b=olvIHOzFMVxrLObFIXbRYTH2fxROHkl5kEiFkw+C0rdbLw/6RumVXjzxLYrxjrlurU K0Bp2hNRbydmCJN6TYZh1mdoJ0I01uvShO4x7yvMBm2WnsgebaBbyUeperS8n0jVgQ6p a6DrgWMvuUvyrzQySN9STqR26TIzgiPgWPwcxJuNEI08CKx9ijlCHLnvGLhxesusL2bT DtnnlJEtiUG0ZxyD9fClPgykMEb8RkSQD2fuEVo2YX2aycdzJnMnUvXFdcbStkK8QrA5 9iWrMYNEXn8zaRDM296/2gIw3aNZijx61dUxXsnypGc4906/nx0FjX8x3Mz+3kHByuw/ D39g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=epva8soZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7-v6si19710pgh.473.2018.08.16.11.46.00; Thu, 16 Aug 2018 11:46:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=epva8soZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404231AbeHPT07 (ORCPT + 99 others); Thu, 16 Aug 2018 15:26:59 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:46118 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727526AbeHPT07 (ORCPT ); Thu, 16 Aug 2018 15:26:59 -0400 Received: by mail-yw1-f68.google.com with SMTP id e23-v6so3315693ywe.13; Thu, 16 Aug 2018 09:27:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=alIChM2asgfj7vyQrMYs0a4ocDl1OghK/2AfWTYX/y8=; b=epva8soZFN3ufnqrABxj35tGdph6/TDY82a1FhlQSmAKcCD357iZRERESqUaB5TyPZ Jh9dYbWs1LMW4Uq9BU6t/W1kzjeC6R/InJDsLGT0rn3RE+iWSlMwKiP77gi9epxqrW83 Cgge5ecShH8S7qK6uKyzybY71KvbHqqCi8dPfZnJRR1P6eYZkL0jSovYS4Al4iK2zzvB +pD/gMemE0bUSbpmSc1v7A132Hl2DE6HiybiTCuoeX+lt/XFqvVoXJdRaf9kHIS3zrAi SAOPWdoYYCXUsoPFqDF5umX7FjKKG5Isv+VICXuxkyzVAEgbbpn4MULcMl85WDgkfrCI 2joQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=alIChM2asgfj7vyQrMYs0a4ocDl1OghK/2AfWTYX/y8=; b=tMgmZsZD5+96H65BeKy72DEvInxSMm9QUkWRBgW7ubaqXlloEqA2QHxbjYcgnQzPxE 9dxBEbaK5t80L+7q/blBHlf0bJVVPytXXsleE9onQIeIVa3B5bNywf1VZRo7cCulsG6S GSJTH4sHXRin8BtPbLRW8XLYGZi4EdDYl2rqJ/fbA73K+nBM+f3808KvZmCVIUqiI3El ZMevctI0CC3sohTAr9Pj4++c0rw3s6WbsZlQRdguQZ2Epwa9k7MC3znoDekulYX5Gk3n Q9+JaFM9ssmkmkDPYb2PEjH2E5kfoJYYBrUzvKAdYoQeuzu1lgvCuf7F6CIkELzGm6kc 31WQ== X-Gm-Message-State: AOUpUlHN5tyXEA/RKksjqPnaD++8wdpqTUvFuN51+f663AuHHxDtpq3h s0csl3gbSR8mPIQPHwGNRnPIG0Qm3sn+2Y7VeMI= X-Received: by 2002:a0d:e501:: with SMTP id o1-v6mr16627964ywe.409.1534436848546; Thu, 16 Aug 2018 09:27:28 -0700 (PDT) MIME-Version: 1.0 References: <20180729220317.GB30522@ZenIV.linux.org.uk> <20180729220453.13431-1-viro@ZenIV.linux.org.uk> <20180729220453.13431-3-viro@ZenIV.linux.org.uk> In-Reply-To: From: Amir Goldstein Date: Thu, 16 Aug 2018 19:29:13 +0300 Message-ID: Subject: Re: [PATCH 03/16] vfs: don't evict uninitialized inode To: Miklos Szeredi Cc: Al Viro , linux-fsdevel , Linus Torvalds , linux-kernel , Greg KH Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 30, 2018 at 10:41 AM Miklos Szeredi wrote: > > 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. > Miklos, Seeing that it wasn't fixed 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. > Should we propose for stable the upstream commits: e950564b97fd vfs: don't evict uninitialized inode c2b6d621c4ff new primitive: discard_new_inode() Or should we go with the independent v1 patch: https://patchwork.kernel.org/patch/10511969/ Thanks, Amir.