[缺陷描述]: xfs文件系统,xfstests下xfs/279用例fail,output mismatch 测试日志: # ./check tests/xfs/279 FSTYP -- xfs (non-debug) PLATFORM -- Linux/x86_64 i22e11410 4.19.91-494.git.63e7c9620.an8.x86_64 #1 SMP Sun Oct 16 13:58:51 UTC 2022 MKFS_OPTIONS -- -f -bsize=4096 /dev/nvme0n1p2 MOUNT_OPTIONS -- /dev/nvme0n1p2 /fs/nvme0n1p2 xfs/279 7s ... [failed, exit status 1]- output mismatch (see /tmp/tone/run/xfstests/results//xfs/279.out.bad) --- tests/xfs/279.out 2022-10-17 09:32:09.122303853 +0800 +++ /tmp/tone/run/xfstests/results//xfs/279.out.bad 2022-10-17 18:09:42.212930529 +0800 @@ -9,27 +9,6 @@ mkfs with opts: -b size=2048 -f DEVICE Passed. Got sector size: 512 -=================== -4k physical 512b logical unaligned -=================== -mkfs with opts: DEVICE ... (Run 'diff -u /tmp/tone/run/xfstests/tests/xfs/279.out /tmp/tone/run/xfstests/results//xfs/279.out.bad' to see the entire diff) Ran: xfs/279 Failures: xfs/279 Failed 1 of 1 tests 内核信息: # uname -r 4.19.91-494.git.63e7c9620.an8.x86_64 操作系统信息: # cat /etc/os-release NAME="Anolis OS" VERSION="8.2" ID="anolis" ID_LIKE="rhel fedora centos" VERSION_ID="8.2" PLATFORM_ID="platform:an8" PRETTY_NAME="Anolis OS 8.2" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" cpu信息: # lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 96 On-line CPU(s) list: 0-95 Thread(s) per core: 2 Core(s) per socket: 24 Socket(s): 2 NUMA node(s): 1 Vendor ID: GenuineIntel BIOS Vendor ID: Intel(R) Corporation CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz BIOS Model name: Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz Stepping: 4 CPU MHz: 1581.742 CPU max MHz: 3100.0000 CPU min MHz: 1000.0000 BogoMIPS: 5000.00 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 33792K NUMA node0 CPU(s): 0-95 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke md_clear flush_l1d 内存信息: # free -h total used free shared buff/cache available Mem: 755Gi 5.1Gi 748Gi 238Mi 1.2Gi 746Gi Swap: 2.0Gi 183Mi 1.8Gi [期望结果]: 用例pass [实际结果]: 用例fail [问题发生概率]: 高概率出现失败(执行5次用例,4次出现失败) [复现步骤]: 1. 准备环境 wipefs -a --force /dev/nvme0n1p1 wipefs -a --force /dev/nvme0n1p2 wipefs -a --force /dev/nvme0n1p3 wipefs -a --force /dev/nvme0n1p4 mkfs -t xfs -L OStest -q -f /dev/nvme0n1p1 mkfs -t xfs -L OStest -q -f /dev/nvme0n1p2 mkfs -t xfs -L OStest -q -f /dev/nvme0n1p3 mkfs -t xfs -L OStest -q -f /dev/nvme0n1p4 export FSTYP=xfs export TEST_DIR=/fs/nvme0n1p1 export TEST_DEV=/dev/nvme0n1p1 export SCRATCH_MNT=/fs/nvme0n1p2 export SCRATCH_DEV=/dev/nvme0n1p2 mkdir -p /fs/sdb1 /fs/nvme0n1p2 2. 下载xfstests测试代码 3. 编译测试源码 cd xfstests-dev export CFLAGS="-fcommon" make make install 4.执行测试用例 ./check tests/xfs/279