Description of problem: Anolis23 x86_64 ECS环境,社区nightly xfstests测试case:xfs/082执行失败 Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: wipefs -a --force /dev/vdb1 wipefs -a --force /dev/vdb2 wipefs -a --force /dev/vdb3 wipefs -a --force /dev/vdb4 mkfs -t xfs -L OStest -q -f /dev/vdb1 mkfs -t xfs -L OStest -q -f /dev/vdb2 mkfs -t xfs -L OStest -q -f /dev/vdb3 mkfs -t xfs -L OStest -q -f /dev/vdb4 export FSTYP=xfs export TEST_DIR=/fs/vdb1 export TEST_DEV=/dev/vdb1 export SCRATCH_MNT=/fs/vdb2 export SCRATCH_DEV=/dev/vdb2 mkdir -p /fs/vdb1 /fs/vdb2 git clone --branch anck-5.10 https://gitee.com/anolis/xfstests.git export CFLAGS="-fcommon" cd xfstests make configure ./configure make && make install ./check tests/xfs/082 Actual results: [root@qibo-anolis23-nightly-func-x86-1 xfstests]# ./check xfs/082 FSTYP -- xfs (non-debug) PLATFORM -- Linux/x86_64 qibo-anolis23-nightly-func-x86-1 5.10.134-103.git.59ebaa9c900f.an23.x86_64 #1 SMP Mon May 8 21:37:04 CST 2023 MKFS_OPTIONS -- -f /dev/vdb2 MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /dev/vdb2 /fs/vdb2 xfs/082 - output mismatch (see /root/xfstests/results//xfs/082.out.bad) --- tests/xfs/082.out 2023-05-08 18:12:40.018105911 +0800 +++ /root/xfstests/results//xfs/082.out.bad 2023-05-09 17:20:33.292253849 +0800 @@ -1,3 +1 @@ QA output created by 082 -bad magic number -xfs_copy: couldn't read superblock, error=22 ... (Run 'diff -u /root/xfstests/tests/xfs/082.out /root/xfstests/results//xfs/082.out.bad' to see the entire diff) Ran: xfs/082 Failures: xfs/082 Failed 1 of 1 tests [root@qibo-anolis23-nightly-func-x86-1 xfstests]# diff -u /root/xfstests/tests/xfs/082.out /root/xfstests/results//xfs/082.out.bad --- /root/xfstests/tests/xfs/082.out 2023-05-08 18:12:40.018105911 +0800 +++ /root/xfstests/results//xfs/082.out.bad 2023-05-09 17:20:33.292253849 +0800 @@ -1,3 +1 @@ QA output created by 082 -bad magic number -xfs_copy: couldn't read superblock, error=22 Expected results: case pass Additional info: root@qibo-anolis23-nightly-func-x86-1 xfstests]# uname -r 5.10.134-103.git.59ebaa9c900f.an23.x86_64 [root@qibo-anolis23-nightly-func-x86-1 xfstests]# cat /etc/anolis-release Anolis OS release 23 [root@qibo-anolis23-nightly-func-x86-1 xfstests]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 4.0M 0 4.0M 0% /dev tmpfs 7.6G 0 7.6G 0% /dev/shm tmpfs 3.1G 540K 3.1G 1% /run /dev/vda1 40G 14G 27G 34% / /dev/vdc1 98G 3.4G 90G 4% /tmp tmpfs 1.6G 0 1.6G 0% /run/user/0 [root@qibo-anolis23-nightly-func-x86-1 xfstests]# free -g total used free shared buff/cache available Mem: 15 0 14 0 0 14 Swap: 0 0 0 [root@qibo-anolis23-nightly-func-x86-1 xfstests]# cat /proc/cmdline BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.10.134-103.git.59ebaa9c900f.an23.x86_64 root=UUID=ece72b7f-465b-433d-8b3b-e5fa53a04642 ro rhgb cryptomgr.notests rcupdate.rcu_cpu_stall_timeout=300 quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M [root@qibo-anolis23-nightly-func-x86-1 xfstests]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 46 bits physical, 57 bits virtual Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Vendor ID: GenuineIntel BIOS Vendor ID: Alibaba Cloud Model name: Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz BIOS Model name: pc-i440fx-2.1 CPU @ 0.0GHz BIOS CPU family: 1 CPU family: 6 Model: 106 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 Stepping: 6 BogoMIPS: 5399.99 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 s s ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_known_freq pni p clmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hy pervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ibrs_enhanced fsgsbase tsc_adjust bmi 1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves wbnoinvd arat avx512vbmi pku ospke avx512_v bmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid fsrm arch_capabilities Virtualization features: Hypervisor vendor: KVM Virtualization type: full Caches (sum of all): L1d: 96 KiB (2 instances) L1i: 64 KiB (2 instances) L2: 2.5 MiB (2 instances) L3: 48 MiB (1 instance) NUMA: NUMA node(s): 1 NUMA node0 CPU(s): 0-3 Vulnerabilities: Itlb multihit: Not affected L1tf: Not affected Mds: Not affected Meltdown: Not affected Mmio stale data: Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown Retbleed: Not affected Spec store bypass: Vulnerable Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Spectre v2: Mitigation; Enhanced IBRS, RSB filling, PBRSB-eIBRS SW sequence Srbds: Not affected Tsx async abort: Not affected
alinux3-5.10.134-16_rc1.al8内核依旧存在此问题; 失败日志如下: # ./tone run xfstests:xfs-2 Test Suite : xfstests Test Conf : xfstests:xfs-2 Test Setting : fs=xfs nr_disk=2 Test Run Path: /var/tmp/tone/run/xfstests Test Result : /var/tmp/tone/result/xfstests/xfs-2/13/stdout.log Test Cache : /var/tmp/tone/cache/xfstests /var/tmp/tone/run/xfstests mkfsopt is /var/tmp/tone/bin/disksetup.py --device disk --partitionnumber 2 --filesystem xfs --usemounted wipefs -a -f /dev/vdb wipefs -a -f /dev/vdb partprobe /dev/vdb parted -s /dev/vdb mklabel gpt mkpart primary 2048 51200 partprobe /dev/vdb parted -s /dev/vdb mkpart primary 51200 102400 mkfs -t xfs -L OStest -q -f /dev/vdb1 mount -o inode64 /dev/vdb1 /fs/vdb1 mkfs -t xfs -L OStest -q -f /dev/vdb2 mount -o inode64 /dev/vdb2 /fs/vdb2 options is FSTYP -- xfs (non-debug) PLATFORM -- Linux/aarch64 iZbp14hx0ntomiz7dwopndZ 5.10.134-16_rc1.al8.aarch64 #1 SMP Tue Oct 10 20:05:13 CST 2023 MKFS_OPTIONS -- -f /dev/vdb2 MOUNT_OPTIONS -- /dev/vdb2 /fs/vdb2 xfs/082 - output mismatch (see /var/tmp/tone/run/xfstests/results//xfs/082.out.bad) --- tests/xfs/082.out 2023-10-11 18:02:45.649868316 +0800 +++ /var/tmp/tone/run/xfstests/results//xfs/082.out.bad 2023-10-16 11:02:26.934519413 +0800 @@ -1,3 +1,3 @@ QA output created by 082 bad magic number -xfs_copy: couldn't read superblock, error=22 +xfs_copy: V1 inodes unsupported. Please try an older xfsprogs. ... (Run 'diff -u /var/tmp/tone/run/xfstests/tests/xfs/082.out /var/tmp/tone/run/xfstests/results//xfs/082.out.bad' to see the entire diff) Ran: xfs/082 Failures: xfs/082 Failed 1 of 1 tests [tone]Error: The return code of run() in run.sh is not 0 xfs/082: Failed Test running: Done 根据报错提示降低xfsprogs包的版本到xfsprogs-5.0.0-4.1.al8.aarch64(yum源里面最老版版本),用例执行仍然失败。 当前环境xfsprogs包的版本: # rpm -qa |grep xfsprogs xfsprogs-5.0.0-11.0.1.al8.aarch64