Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp693219pxx; Wed, 28 Oct 2020 14:41:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDBOgcFKG8KsuwA/3MCKoJRgA4CHn7F4PRzBF+BKQzqc7YTRAYjQng0plY6MV0Ze5NTOon X-Received: by 2002:aa7:cf95:: with SMTP id z21mr961828edx.346.1603921314770; Wed, 28 Oct 2020 14:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603921314; cv=none; d=google.com; s=arc-20160816; b=mwDN5XaIXh9LrtL5gKAHVW3MDVLiCO80pQPgUlm+kKs4MgPFGG9dZdgnYEx8wfSJ+8 M9kYYgpYkNoBWnoiAIL1AhQbjlR92Jx50E4atrx2f/odKY85WJCExP3RcpUllnKAGcgy FA4WxvywmesX4HOgmNk+Oq6db0w/M+/5ztv8+6vABn1qPlIH04bVz7MFEmcyp2QhE5ik T81rzTXDtc5VPPqSIGRH9UJH752nIk3JM0ffmas1wcCZrvrmGTdQS3qrHUm1ZmfjGHCf ATpfMzmHLPuJhx6ZEcAiZmfByweu0KNcGA9YwVHzUgeacQq8X8StmxcJvtIZCrbgUYeF gcVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=4BzN+Ek1Cbe0vPrVZB8rqeBJi1VYNIpQ5oa30yycfeU=; b=xzbA1XVztv9JoRb5szscUL1cGs+6pS+ev5DnV4jgwp/m8blyzKmjrABCTdOjropfdY DFFcIuNMxxAX40qEV9ffUPmOlpP8DmbTCcKUHSYLoPuOLBv6j3vcz7vPZwIr4tTRLQsu zC1a+l0bgFvz0rCE3JiJZJdT7lPoxwoXrIzi268QLAw5ysgehRPL6dSYFEPHupGPuVbv t6CyQUgximf0v8raFU6uTGOGkI1BgUBs2XjP7fmcFYB6NdANKHHvesfMsSpxw+I8uYaE /rlLLmzcG3ZVoegT32uBTqOG2vrbMzwvnaouXBCiVy1JwXMGWoomWvBabuvk+ajK6RSI AQIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by20si492636ejc.528.2020.10.28.14.41.31; Wed, 28 Oct 2020 14:41:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726026AbgJ1VdT (ORCPT + 99 others); Wed, 28 Oct 2020 17:33:19 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:56515 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725942AbgJ1VdO (ORCPT ); Wed, 28 Oct 2020 17:33:14 -0400 Received: from callcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 09S3ceIO021057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Oct 2020 23:38:40 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id E94A7420107; Tue, 27 Oct 2020 23:38:39 -0400 (EDT) Date: Tue, 27 Oct 2020 23:38:39 -0400 From: "Theodore Y. Ts'o" To: Luo Meng Cc: adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, jack@suse.cz Subject: Re: [PATCH] ext4: fix invalid inode checksum Message-ID: <20201028033839.GK5691@mit.edu> References: <20201020013631.3796673-1-luomeng12@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201020013631.3796673-1-luomeng12@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Oct 20, 2020 at 09:36:31AM +0800, Luo Meng wrote: > During the stability test, there are some errors: > ext4_lookup:1590: inode #6967: comm fsstress: iget: checksum invalid. > > If the inode->i_iblocks too big and doesn't set huge file flag, checksum > will not be recalculated when update the inode information to it's buffer. > If other inode marks the buffer dirty, then the inconsistent inode will > be flushed to disk. > > Fix this problem by checking i_blocks in advance. > > Signed-off-by: Luo Meng Thanks, this has been applied. - Ted