Aarch64 EXT4FS inode checksum failures - seems to be weak memory ordering issues
Mark Rutland
mark.rutland at arm.com
Wed Jan 6 06:53:59 EST 2021
On Tue, Jan 05, 2021 at 03:47:26PM +0000, Russell King - ARM Linux admin wrote:
> Hi,
Hi Russell,
> This is an update on where I am with this long standing issue at the
> current time.
>
> Since 5.4, I have been struggling with several of my ARM64 systems, of
> different SoC vendors and differing filesystem media, were sporadically
> reporting inode checksum failures on their root filesystems. The time
> taken to report this has been anything between a few hours and three
> months of uptime, making the problem unrealistic to bisect.
> However, over the last couple of days, a way to reproduce it has been
> found, at least for the LX2160A based system. Power down, leave the
> machine powered off for some time. Power up, log in and run:
>
> while :; do sleep 5; find /var /usr /bin /sbin -type f -print0 | \
> xargs -0 md5sum >/dev/null; done
I've just set this off on an Raspberry Pi 4 running a locally-built
arm64 v5.10 defconfig. I'm using a SATA SSD mounted via a USB-SATA
adapter. I'll try to give that a few reboots see if I can reproduce the
issue.
Just to check -- how is your ext4 fs mounted? Mine is mounted as:
/dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro)
... and are you using defconfig or something else?
[...]
> It is possible that it could be compiler related, but I don't see that;
> if the "dmb oshld" were strong enough, then it should mean that the
> subsequent reads to checksum the inode data after the inode data has
> been DMA'd into memory should be reading the correct values from memory
> already - but they aren't. And if changing "dmb oshld" to "dsb ld" means
> that the code can then read the right values, that to me points fairly
> definitively to a hardware problem.
Just in case the compiler has some impact, can you way which compilers
you've been using? On the rpi4 I'm using GCC 8.3.0 as packaged by Debian
Buster (10.7).
Thanks,
Mark.
More information about the linux-arm-kernel
mailing list