Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp987330pxu; Wed, 6 Jan 2021 09:22:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgucDRuC5JWsq6dJ08fC0a6wYMmtOqWHtA1syyje9UCqWeHFyuaU/VLDHCnfqOwfZ/FcNH X-Received: by 2002:a05:6402:1a2f:: with SMTP id be15mr4671715edb.209.1609953772159; Wed, 06 Jan 2021 09:22:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609953772; cv=none; d=google.com; s=arc-20160816; b=EEmSjM27wWE80b55m5gtydwIc2i4E5pycyHV3StV32K7KRbhclk9i7pYbCaOkwQwaf dvB7kj0sxfnzJlauWijFJ5T4uge7EfzWZnHfZSuNTxmN+MPKe04bNpFx4WBy+3RBNr+5 WiWP1XRXYStldrktDLtYzt1uti80u0fbohP/AdLhlA062AGwfkEPKj52zrgsPMbhe9Rf 4NYndvvYOQez1XZiGkj7UKBVPJR8slL8aCIzegX7bLWJOjr72vDNNHgWMz9et1wfqBIA Xrn/4dcK5gCmldqDJLryHuZxiO7TMoNc9GtLCajvXaMS8q+woLrBqYYQsp+S8GZ3gA+k FXxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Vx2Ma+VjpklY8w9hQsd5Cif6ifk/e3NGPOUHrIdxikw=; b=WHw3NdFDNsYjKvKV54egDLk42lg+ge+Z6jz962HHz22j/HgtOtzhEtxMnHQi8IzDmC zlpv86TM3Fsn7PRV9SlDgPjl6jmWwPk9Br1gkpKoSM+q5e4XEKOG/A5C+OovWctXRNRP 5yDLCaPZjuQCxmVNshDgPPR0QdV9oidbZ5U90JTZuH5sbBG30GnlEUr+pYC67rHXYNvx KAo+xI4BTYIklr0xULN9vrdHVB2fdRj3Ow+tORMjmyYO/SisFUbrFFB1zWshRvi5v9nX t0AehpNdtlx3SKWWfZSgiqfQyg2UYKmGHuh3wFDDJjig08vvOxGkPE6l+5+HMvuv9lKH 29Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XrEv5AiF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf6si1065892edb.557.2021.01.06.09.22.28; Wed, 06 Jan 2021 09:22:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XrEv5AiF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727450AbhAFRVT (ORCPT + 99 others); Wed, 6 Jan 2021 12:21:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:33256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727305AbhAFRVT (ORCPT ); Wed, 6 Jan 2021 12:21:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7033123106; Wed, 6 Jan 2021 17:20:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609953638; bh=tG483r6vSnH9q4KcPpc+fYsYrKAgLFenh4LOpI9MOeE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XrEv5AiFCg7oby6QMVQS2REt2mZxeBqgKabR3TufWYYR+rnHN/Y+pCL/etyHK8KY5 yXuJIG8lSFwu9PDqysxCE0Wwv04s53xiA/21+EAN/EdrRfqpn2K/NcM0LPoevRC8YZ Zn6jf36KYBLxvLDfo8H+DlV1nsZpe6PLOqUj0eYM+DTTko+7JOUfd8CLw2+pvq7ZkG SDSEikynYeiOcdrodBp4lgEObuMnGCfEIHXpxuUUc6TTUIqV7A7Al7kps0BmLWZMWf Ca0nfbVxz3SaYqw/CaN8fBGbyRWZCeClW0NG7tJBRTH+ghblhrmqxCw4dDi2OBiljq YvohqFfz2gh3g== Date: Wed, 6 Jan 2021 17:20:34 +0000 From: Will Deacon To: Russell King - ARM Linux admin Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Theodore Ts'o , Andreas Dilger , linux-ext4@vger.kernel.org Subject: Re: Aarch64 EXT4FS inode checksum failures - seems to be weak memory ordering issues Message-ID: <20210106172033.GA2165@willie-the-truck> References: <20210105154726.GD1551@shell.armlinux.org.uk> <20210106115359.GB26994@C02TD0UTHF1T.local> <20210106135253.GJ1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210106135253.GJ1551@shell.armlinux.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 06, 2021 at 01:52:53PM +0000, Russell King - ARM Linux admin wrote: > On Wed, Jan 06, 2021 at 11:53:59AM +0000, Mark Rutland wrote: > > ... and are you using defconfig or something else? > > Not sure I replied to this. I'm not using the defconfig, I've my own > .config > > As I mentioned, Will has built a 5.10 kernel using Arnd's gcc 4.9.4 > and hasn't been able to reproduce it. He's sent me his kernel, which > I've booted here, and haven't yet been able to provoke it. > > Meanwhile, my 5.9 kernel continues to exhibit this problem, so I've > sent Will my .config (which I'll include here.) There are differences > in some of the block layer configuration. There's differences in the > errata configuration, but we don't think that's a cause (they're not > relevant for Cortex A72). > > Our plan is: > - Will is switching to 5.9, and using my config as a base for his > platform. > - Will is going to send me his modified version of my config. > - We are both going to build using the same kernel sources and same > config. > - We are going to test our own kernels, and also swap kernel images > and test each others. > > Watch this space for more news... I've managed to reproduce the corruption on my AMD Seattle board (8x A57). I haven't had a chance to dig deeper yet, but here's the recipe which works for me: 1. I'm using GCC 4.9.4 simply to try to get as close as I can to rmk's setup. I don't know if this is necessary or not, but the toolchain is here: https://kernel.org/pub/tools/crosstool/files/bin/arm64/4.9.4/arm64-gcc-4.9.4-nolibc-aarch64-linux-gnu.tar.xz and I needed to pull down an old libmpfr to get cc1 to work: http://ports.ubuntu.com/pool/main/m/mpfr4/libmpfr4_3.1.2-1_arm64.deb 2. I build a 5.9 kernel with the config here: https://mirrors.edge.kernel.org/pub/linux/kernel/people/will/bugs/rmk/config-5.9.0 and the resulting Image is here: https://mirrors.edge.kernel.org/pub/linux/kernel/people/will/bugs/rmk/Image-5.9.0 3. Using that kernel, I boot into a 64-bit Debian 10 filesystem and open a couple of terminals over SSH. 4. In one terminal, I run: $ while (true); do find /var /usr /bin /sbin -type f -print0 | xargs -0 md5sum > /dev/null; echo 2 | sudo tee /proc/sys/vm/drop_caches; done (note that sudo will prompt you for a password on the first iteration) 5. In the other terminal, I run: $ while (true); do ./hackbench ; sleep 1; done where hackbench is built from: https://people.redhat.com/mingo/cfs-scheduler/tools/hackbench.c and compiled according to comment in the source code. With that, I see the following after ten seconds or so: EXT4-fs error (device sda2): ext4_lookup:1707: inode #674497: comm md5sum: iget: checksum invalid Russell, Mark -- does this recipe explode reliably for you too? Will