Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp248467ybb; Thu, 19 Mar 2020 21:08:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vviPXxfa9mAh7T7fm6RBoZyej2O9CJbJDK3i/ZPdyYMLjtaRIhuD99Smlpa4Am60iv15iht X-Received: by 2002:a05:6808:491:: with SMTP id z17mr4850118oid.78.1584677283599; Thu, 19 Mar 2020 21:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584677283; cv=none; d=google.com; s=arc-20160816; b=hXEAJqG013cBv721IvnYLov1ME8FvQ9saRwXM+2xx2COmCrw3bpVWAQtwqK+3TNun5 7iPuWGGcUyT2hNNVRLMbG+I5DO3zR92nxtRQrCkZ8WzONzGytBAacQGGX54rQgz80c/P LI4qBF5CvaeQbotiw4G9ndEcNgnQ9d24Utqm6lLDbgCbi5mCnda6RK7y/laEpW2pRWId j4WY2XDh6IhzmRlSOzx4itxaGs7Ank43+43LXQhI7ELzo8GRWkxQMtYcBPAzQuUTVmuj PbFWeW+kFEJ4oqThEMvztcVFDkctYMlPHEAut1OaJwI9bGRSwIqllNBKGVMYKOIk8WrW NzjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=M53nMqLh2yBVbKM0qZUBZHfZdVFw4OfHjwk8CEQP6PA=; b=yHoHB3Dd682Y/NqUdTWaqG0zDdFGTB3VPZBHi3jSBddTejlRV5hQY4lEONJcjC/Iu0 5qQxjG6hattL92gj61hhrR992NcBu2IVgUwlE7dxwyHvzBwDKM4eE3BVtSem35giz23g rOD/NhaVozfaRJqkKhTSiBlVmkftfs+WJJP2Yi21I4iSYWLcXfNXg2erBeLjig4VXUfw h9D1hVgsboJEcqk2/N7ay8H5PKCKV5sxc40W3kXpMuSVPTJC/YRzsbIvQGhWkH9C4HwI qLRzYlnHCBRm5oVLuzc398fVvLJa3f0LqTHTuJKy7RXLhjSwLovJuhFnP06MgxrxuoyB QpfQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g144si2180372oib.40.2020.03.19.21.07.37; Thu, 19 Mar 2020 21:08:03 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725883AbgCTEHg (ORCPT + 99 others); Fri, 20 Mar 2020 00:07:36 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:55953 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgCTEHg (ORCPT ); Fri, 20 Mar 2020 00:07:36 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02K43d2E084809 for ; Fri, 20 Mar 2020 00:07:34 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2yua3wyhkv-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 20 Mar 2020 00:07:34 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 20 Mar 2020 04:07:32 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 20 Mar 2020 04:07:30 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 02K47TKU55509186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 20 Mar 2020 04:07:29 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 963CA4C05C; Fri, 20 Mar 2020 04:07:29 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B33D04C050; Fri, 20 Mar 2020 04:07:28 +0000 (GMT) Received: from [9.85.72.106] (unknown [9.85.72.106]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 20 Mar 2020 04:07:28 +0000 (GMT) Subject: Re: Ext4 corruption with VM images as 3 > drop_caches To: Jan Kara Cc: linux-ext4@vger.kernel.org, "Theodore Y. Ts'o" , Ritesh Harjani References: <87pndagw7s.fsf@linux.ibm.com> <20200319163613.GA3339@quack2.suse.cz> From: "Aneesh Kumar K.V" Date: Fri, 20 Mar 2020 09:37:27 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200319163613.GA3339@quack2.suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 20032004-0008-0000-0000-00000360629C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20032004-0009-0000-0000-00004A81C286 Message-Id: <27f3cc91-fd3c-b806-bbd6-fb10b0a86ea0@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.645 definitions=2020-03-19_10:2020-03-19,2020-03-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 phishscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 adultscore=0 malwarescore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003200017 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 3/19/20 10:06 PM, Jan Kara wrote: > 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. > host kernel. W.r.t guest kernel, it is not dependent on guest kernel version. I was able to recreate with different guest kernel versions (ubuntu 5.3.0-42-generic kernel and also with upstream) -aneesh