Bug 5294 - [ANCK-4.19][ck27.4][anolis7.9][x86_64]xfstests:xfs-2测试用例xfs/546失败,output mismatch: -syncfs: Input/output erro
Summary: [ANCK-4.19][ck27.4][anolis7.9][x86_64]xfstests:xfs-2测试用例xfs/546失败,output mism...
Status: NEW
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-23 18:01 UTC by wangpingping
Modified: 2023-05-23 18:06 UTC (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wangpingping alibaba_cloud_group 2023-05-23 18:01:08 UTC
[缺陷描述]:
xfstests:xfs-2下新增测试用例xfs/546失败;

部分失败日志如下:
# ./check xfs/546
FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/x86_64 VM20230426-1 4.19.91-27.4.an7.x86_64 #1 SMP Thu May 18 13:25:10 CST 2023
MKFS_OPTIONS  -- -f /dev/vdb2
MOUNT_OPTIONS -- /dev/vdb2 /fs/vdb2

xfs/546       - output mismatch (see /tmp/tone/run/xfstests/results//xfs/546.out.bad)
    --- tests/xfs/546.out       2023-05-22 18:56:10.292350896 +0800
    +++ /tmp/tone/run/xfstests/results//xfs/546.out.bad 2023-05-23 17:39:32.541034762 +0800
    @@ -1,2 +1 @@
     QA output created by 546
    -syncfs: Input/output error
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/xfs/546.out /tmp/tone/run/xfstests/results//xfs/546.out.bad'  to see the entire diff)
Ran: xfs/546
Failures: xfs/546
Failed 1 of 1 tests


[复现概率]:
必现

[复现环境]:
内核:
# uname -r
4.19.91-27.4.an7.x86_64
[root@VM20230426-1 xfstests]# cat /etc/os-release
NAME="Anolis OS"
VERSION="7.9"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.9"
PRETTY_NAME="Anolis OS 7.9"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugs.openanolis.cn/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CPU信息:
# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             2
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 85
Model name:            Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
Stepping:              7
CPU MHz:               2499.998
BogoMIPS:              4999.99
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              1024K
L3 cache:              36608K
NUMA node0 CPU(s):     0-7
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx avx512f avx512dq rdseed adx smap avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves

内存信息:
# free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        757M         11G        684K        3.6G         14G
Swap:            0B          0B          0B

[复现步骤]:
1.下载测试代码
2.编译
cd xfstests-dev
export CFLAGS="-fcommon"
make
make install

3.初始化环境,执行用例
wipefs -a --force /dev/vdb1  
wipefs -a --force /dev/vdb2
mkfs -t xfs -L OStest -q -f /dev/vdb1
mkfs -t xfs -L OStest -q -f /dev/vdb2

export FSTYP=xfs
export TEST_DIR=/fs/vdb1
export TEST_DEV=/dev/vdb1
export SCRATCH_MNT=/fs/vdb2
export SCRATCH_DEV=/dev/vdb2
umount -l /fs/vdb1 /fs/vdb2
mkdir -p /fs/vdb1 /fs/vdb2

./check xfs/546

[预期结果]:
用例执行成功

[实际结果]:
用例执行失败
Comment 1 wangpingping alibaba_cloud_group 2023-05-23 18:06:44 UTC
bugzilla有相似缺陷,显示已经修复,麻烦帮忙确认下ck27.4版本
anck-5.10:https://bugzilla.openanolis.cn/show_bug.cgi?id=3656
anck-4.19:https://bugzilla.openanolis.cn/show_bug.cgi?id=3915