Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp838215ybg; Thu, 19 Mar 2020 09:37:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs4iJdWhY/TLlDJSZ+BZOotbVM36sGJuMEzwTAKUES4G3Muu+y5C0XWPxvxnGV/Lnu2wVck X-Received: by 2002:a9d:1d43:: with SMTP id m61mr3062553otm.91.1584635825211; Thu, 19 Mar 2020 09:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584635825; cv=none; d=google.com; s=arc-20160816; b=UmIlvrw/gU2T/iK+62Juwvu/jDSj6TCR33ze4CHbdFz7HVQ9i8hvuehbxkFIcIvQXL pbfAhpARZWNnEk7Fv0a9Jq0/xF/G7h+p/FyAliY7R4XoMQRVxChOj17fz/XzFLctj5DK SVQAY0kVVGru3j2Q9lEYYmgujdHq/QuV2gP3dXy6MTAK4rtDeEnitmCRmCSKHC6FyHO3 6CQofdBCEhX8T/UmfEWHypaKrYT/ItKCSRbbF91Eb6o5Gr3iDDNBZO2Xkcjat/aiqC8M HRru8KVfS9CgtcQRl+RMTlU5wB5eGTMOWAzAMGs/iXrCgfjO1FSzmxtwSFfpgXFGsihD ayCw== 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:message-id:subject:cc :to:from:date; bh=wZruGxkcV0DoAL5C558qpY4ui3ucXRY9dkG9aWBiWS0=; b=Q+//lAoOIsmTBhJCQT0qHXGqrUPJVAEcK6ZfecG/rttr4zavxiMlywk0zLUmYQrQdC ZkeEIOIYdkcq3DPJDeyRVFZ33CPR0Xk0mPRbzAckhcvCmNdKoVifayYcdSMG/PTgz3I0 z3+KOK2uc+0TU+FaP2hf7kfg+nr9M3M8rx2CL2wiRVQJkR2GjYnDdAww0xSW1GzfP9+7 oJGkQWtDwW8mpGIjPx2tk60uuv3zN1pp2S4f0DyHYZgVvoF3sil9wxDeStjm0xu1MimR GcK9vjrLKDrLm0JNxt70CVxflBfQ9M/D37KTRjbRvh4iotrquHRdXh2M+NWdn3z1uh4q WhJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 q25si1509544ota.36.2020.03.19.09.36.40; Thu, 19 Mar 2020 09:37:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727517AbgCSQgQ (ORCPT + 99 others); Thu, 19 Mar 2020 12:36:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:53500 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727477AbgCSQgP (ORCPT ); Thu, 19 Mar 2020 12:36:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 38FA3AD88; Thu, 19 Mar 2020 16:36:14 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id DE54C1E0D46; Thu, 19 Mar 2020 17:36:13 +0100 (CET) Date: Thu, 19 Mar 2020 17:36:13 +0100 From: Jan Kara To: "Aneesh Kumar K.V" Cc: linux-ext4@vger.kernel.org, "Theodore Y. Ts'o" , Ritesh Harjani Subject: Re: Ext4 corruption with VM images as 3 > drop_caches Message-ID: <20200319163613.GA3339@quack2.suse.cz> References: <87pndagw7s.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pndagw7s.fsf@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi! On Wed 18-03-20 09:17:51, Aneesh Kumar K.V wrote: > With new vm install I am finding corruption with the vm image if I > follow up the install with echo 3 > /proc/sys/vm/drop_caches > > The file system reports below error. > > Begin: Running /scripts/local-bottom ... done. > Begin: Running /scripts/init-bottom ... > [ 4.916017] EXT4-fs error (device vda2): ext4_lookup:1700: inode #787185: comm sh: iget: checksum invalid > done. > [ 5.244312] EXT4-fs error (device vda2): ext4_lookup:1700: inode #917954: comm init: iget: checksum invalid > [ 5.257246] EXT4-fs error (device vda2): ext4_lookup:1700: inode #917954: comm init: iget: checksum invalid > /sbin/init: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 74 > [ 5.271207] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 > > And debugfs reports > > debugfs: stat <917954> > Inode: 917954 Type: bad type Mode: 0000 Flags: 0x0 > Generation: 0 Version: 0x00000000 > User: 0 Group: 0 Size: 0 > File ACL: 0 > Links: 0 Blockcount: 0 > Fragment: Address: 0 Number: 0 Size: 0 > ctime: 0x00000000 -- Wed Dec 31 18:00:00 1969 > atime: 0x00000000 -- Wed Dec 31 18:00:00 1969 > mtime: 0x00000000 -- Wed Dec 31 18:00:00 1969 > Size of extra inode fields: 0 > Inode checksum: 0x00000000 > BLOCKS: > debugfs: > > Bisecting this finds > Commit 244adf6426ee31a83f397b700d964cff12a247d3("ext4: make > dioread_nolock the default") as bad. If I revert the same on top of linus > upstream(fb33c6510d5595144d585aa194d377cf74d31911) I don't hit the > corrupttion anymore. Thanks for report and the bisection! Is this guest or host kernel that you were bisecting? I presume host but I want to make sure. Honza -- Jan Kara SUSE Labs, CR