[问题简述] Anolis8.6 aarch64环境,nightlycs ,xfstest测试套ext4-2-overlay:generic/003测试fail [复现步骤] git clone https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git cd xfstests-dev make && make install dmsetup remove_all 磁盘分两个分区 wipefs -a --force /dev/nvme0n1p1 wipefs -a --force /dev/nvme0n1p2 mkfs -t ext4 -q -F /dev/nvme0n1p1 mkfs -t ext4 -q -F /dev/nvme0n1p2 mkdir -p /fs/nvme0n1p1 mount -t ext4 /dev/nvme0n1p1 /fs/nvme0n1p1 mkdir -p /fs/nvme0n1p2 mount -t ext4 /dev/nvme0n1p2 /fs/nvme0n1p2 umount -f -l /fs/nvme0n1p1 /fs/nvme0n1p2 export TEST_DIR=/fs/nvme0n1p1 export TEST_DEV=/dev/nvme0n1p1 export FSTYP=ext4 export SCRATCH_MNT=/fs/scratch mkdir /fs/nvme0n1p1 -p mkdir /fs/scratch -p export SCRATCH_DEV=/dev/nvme0n1p2 cd /var/lib/xfstests ./check -overlay generic/003 [期望结果] case pass [实际结果] [root@l57h15216 xfstests]# ./check -overlay generic/003 mount: /fs/nvme0n1p1: can't find in /etc/fstab. FSTYP -- overlay PLATFORM -- Linux/aarch64 l57h15216 4.19.91-518.git.5b6c906de.an8.aarch64 #1 SMP Tue Oct 25 13:55:30 UTC 2022 MKFS_OPTIONS -- /fs/scratch MOUNT_OPTIONS -- /fs/scratch /fs/scratch/ovl-mnt umount: /fs/scratch: not mounted. mount: /fs/nvme0n1p1: can't find in /etc/fstab. umount: /fs/nvme0n1p1: not mounted. generic/003 mount: /fs/scratch: can't find in /etc/fstab. umount: /fs/scratch: not mounted. - output mismatch (see /var/lib/xfstests/results//generic/003.out.bad) --- tests/generic/003.out 2022-10-26 18:29:04.144305647 +0800 +++ /var/lib/xfstests/results//generic/003.out.bad 2022-10-26 18:30:53.554320681 +0800 @@ -1,2 +1,15 @@ QA output created by 003 +mount: /fs/scratch: can't find in /etc/fstab. +umount: /fs/scratch: not mounted. +mount: /fs/scratch: can't find in /etc/fstab. +umount: /fs/scratch: not mounted. +mount: /fs/scratch: can't find in /etc/fstab. +ERROR: access time has changed for dir2 after file access ... (Run 'diff -u /var/lib/xfstests/tests/generic/003.out /var/lib/xfstests/results//generic/003.out.bad' to see the entire diff) Ran: generic/003 Failures: generic/003 Failed 1 of 1 tests [root@l57h15216 xfstests]# cat /var/lib/xfstests/results//generic/003.out.bad QA output created by 003 mount: /fs/scratch: can't find in /etc/fstab. umount: /fs/scratch: not mounted. mount: /fs/scratch: can't find in /etc/fstab. umount: /fs/scratch: not mounted. mount: /fs/scratch: can't find in /etc/fstab. ERROR: access time has changed for dir2 after file access umount: /fs/scratch: not mounted. mount: /fs/scratch: can't find in /etc/fstab. umount: /fs/scratch: not mounted. mount: /fs/scratch: can't find in /etc/fstab. umount: /fs/scratch: not mounted. mount: /fs/scratch: can't find in /etc/fstab. umount: /fs/scratch: not mounted. Silence is golden [测试环境] [root@l57h15216 xfstests]# uname -r 4.19.91-518.git.5b6c906de.an8.aarch64 [root@l57h15216 xfstests]# cat /etc/redhat-release Anolis OS release 8.6 [root@l57h15216 xfstests]# cat /etc/os-release NAME="Anolis OS" VERSION="8.6" ID="anolis" ID_LIKE="rhel fedora centos" VERSION_ID="8.6" PLATFORM_ID="platform:an8" PRETTY_NAME="Anolis OS 8.6" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" [root@l57h15216 xfstests]# lscpu Architecture: aarch64 Byte Order: Little Endian CPU(s): 96 On-line CPU(s) list: 0-95 Thread(s) per core: 1 Core(s) per socket: 48 Socket(s): 2 NUMA node(s): 1 Vendor ID: HiSilicon BIOS Vendor ID: HiSilicon Model: 0 Model name: Kunpeng-920 BIOS Model name: HUAWEI Kunpeng 920 5250 Stepping: 0x1 CPU max MHz: 2600.0000 CPU min MHz: 200.0000 BogoMIPS: 200.00 L1d cache: 64K L1i cache: 64K L2 cache: 512K L3 cache: 24576K NUMA node0 CPU(s): 0-95 Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm [root@l57h15216 xfstests]# [复现频率] 手动测试多次皆fail
相似bug: https://bugzilla.openanolis.cn/show_bug.cgi?id=4830 https://bugzilla.openanolis.cn/show_bug.cgi?id=5307 xfstests合入补丁自测问题解决 https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/commit/?id=e3774b281662d04a3cdab6c2eda2742a61854176 拉取最新版本再测试