Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp960481imu; Fri, 9 Nov 2018 08:43:47 -0800 (PST) X-Google-Smtp-Source: AJdET5cfHdWExXqfkCLJqPVSCYe0TsVARBJEpgT0mSpYZpfRSImCI1nvFekvlr0m0qPBUk/xCprB X-Received: by 2002:a62:2782:: with SMTP id n124-v6mr9896802pfn.216.1541781827681; Fri, 09 Nov 2018 08:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541781827; cv=none; d=google.com; s=arc-20160816; b=dwb/5ghheYS3wFopt05WtZJ0qRaN24EhVgVKF2ndt8YtyxxSLqTiGoZpNoA1U2Sbhy EneYeg9xN/+yxx3TKdaqs+ETxhXmEcCv80IruKNNw9JQt1PlsBl/jFbodRa79JnY2VeA vZdJGXaR1GfKtTwAGHQ3fP/IYiOXCPu9qNNWEcJ6RH1qQ4wdLRxysgrWTCWNxfXftvAq fhiPPrrZcVklUmdzXMT+pCztq54dj2bejxyEya0ArZBZPxpOhObiLBZI/TjZBlXvRe3w UZc2jiKzrXLWKNeKLA4aw0sAHUz3yPLvgPmsjhBzGh6ZfMDl74AW4nkHPG5Q03GKEE7P UvpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=y5pInCLpLDHmDsQnlssfB8+twnXggmsrUgpF5Lk7/94=; b=rzkKB9yGX92UhC70vg92UvcZzTSn8g8OWMDQ1coXV8ntELMkEA+tnQSmNl5SCCmT3Z RvQL6ahLP73GZNWejrckz9bV+LQ0uWKlEuwggSL00QHnD1JT3Jym+i4zyAL62WHcz91q yvyE5JuhpgLS4c1V9epqAe6DENZg/M+bQd0wRg/YaZVnD804MsDasy/tdCUyw5YxUa0l Fbn39gopcycrLvXN0Zc4eGQdQzlbfBrTuBdoJKu6cQ76vEdWYLCVwDrdySLV1d5v8wu1 Q8JPDpq1T+cAxvDOUvkI2EzI4CQeFJnpbaYkVuvE69w3ekB6jIzPkddto7dEdpz4G4a7 1Ghw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=omg4cESm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h13-v6si7066688pgq.285.2018.11.09.08.43.21; Fri, 09 Nov 2018 08:43:47 -0800 (PST) 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=fail header.i=@thunk.org header.s=ef5046eb header.b=omg4cESm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728420AbeKJCYG (ORCPT + 99 others); Fri, 9 Nov 2018 21:24:06 -0500 Received: from imap.thunk.org ([74.207.234.97]:32900 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727955AbeKJCYG (ORCPT ); Fri, 9 Nov 2018 21:24:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=y5pInCLpLDHmDsQnlssfB8+twnXggmsrUgpF5Lk7/94=; b=omg4cESmmccWVBmy/SkVGjsNYH cyQ/L0NitVYZR5fPx7gcbpTwv6f3n4Fne1tO7wEHkkALC8hDgMqZ43uimaCXcBmGdjjAafaLvrA7j XgLUDNnCOA/So8GH6DhJU+Dc1CTpHXM9QjjwmHrD179Z/aFbLuK4qNiKOZ7oZvDsC+Do=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1gL9rn-0005wE-K7; Fri, 09 Nov 2018 16:42:43 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id C4F517A00B7; Fri, 9 Nov 2018 11:42:42 -0500 (EST) Date: Fri, 9 Nov 2018 11:42:42 -0500 From: "Theodore Y. Ts'o" To: Vasily Averin Cc: linux-ext4@vger.kernel.org, Andreas Dilger , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] ext4: missing !bh check in ext4_xattr_inode_write() Message-ID: <20181109164242.GA21078@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Vasily Averin , linux-ext4@vger.kernel.org, Andreas Dilger , linux-kernel@vger.kernel.org References: <20181108145429.GE22459@thunk.org> <55574e0e-01a9-3cad-34ab-251e340fb78e@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55574e0e-01a9-3cad-34ab-251e340fb78e@virtuozzo.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 09, 2018 at 08:49:48AM +0300, Vasily Averin wrote: > According to Ted Ts'o ext4_getblk() called in ext4_xattr_inode_write() > should not return bh = NULL > > The only time that bh could be NULL, then, would be in the case of > something really going wrong; a programming error elsewhere (perhaps a > wild pointer dereference) or I/O error causing on-disk file system > corruption (although that would be highly unlikely given that we had > *just* allocated the blocks and so the metadata blocks in question > probably would still be in the cache). > > Fixes e50e5129f384 ("ext4: xattr-in-inode support") > Cc: stable@kernel.org # 4.13 > > Signed-off-by: Vasily Averin Thanks, applied. - Ted