Bug 4672 - [Anolis23][nightly][x86_64] xfstetsts测试套case:xfs.xfs/543测试失败
Summary: [Anolis23][nightly][x86_64] xfstetsts测试套case:xfs.xfs/543测试失败
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-31 15:19 UTC by anolislw
Modified: 2023-03-31 16:18 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anolislw alibaba_cloud_group 2023-03-31 15:19:47 UTC
Description of problem:
Anolis23 x86_64 ECS环境 ,社区nightly测试 x86_64, xfstetsts测试套case:xfs.xfs/543测试失败

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
wipefs -a -f /dev/vdb
mountpoint /export
parted -s /dev/vdb mklabel gpt mkpart primary 0 10240
parted -s /dev/vdb mkpart primary 10240 20480
parted -s /dev/vdb mkpart primary 20480 30720
parted -s /dev/vdb mkpart primary 30720 40960
mkfs -t xfs -L tone -q -f  -f /dev/vdb2
mount -o inode64 /dev/vdb2 /fs/vdb2
mkfs -t xfs -L tone -q -f  -f /dev/vdb1
mount -o inode64 /dev/vdb1 /fs/vdb1
mkfs -t xfs -L tone -q -f  -f /dev/vdb3
mount -o inode64 /dev/vdb3 /fs/vdb3
mkfs -t xfs -L tone -q -f  -f /dev/vdb4
mount -o inode64 /dev/vdb4 /fs/vdb4
umount -l -f /fs/vdb1
umount -l -f /fs/vdb2
umount -l -f /fs/vdb3
umount -l -f /fs/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
./check xfs/543

Actual results:
[root@qibo-anolis23-nightly-func-x86-1 xfstests]# ./check xfs/543
FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/x86_64 qibo-anolis23-nightly-func-x86-1 5.10.134-64.git.e3bbb1997652.an23.x86_64 #1 SMP Thu Mar 30 21:36:57 CST 2023
MKFS_OPTIONS  -- -f /dev/vdb2
MOUNT_OPTIONS -- /dev/vdb2 /fs/vdb2

xfs/543       - output mismatch (see /root/xfstests/results//xfs/543.out.bad)
    --- tests/xfs/543.out       2023-03-28 16:03:40.398664508 +0800
    +++ /root/xfstests/results//xfs/543.out.bad 2023-03-31 15:16:00.040629798 +0800
    @@ -1,2 +1,31 @@
     QA output created by 543
    +Invalid value  for -d su option. Not a valid value or illegal suffix
    +Usage: mkfs.xfs
    +/* blocksize */            [-b size=num]
    +/* config file */  [-c options=xxx]
    +/* metadata */             [-m crc=0|1,finobt=0|1,uuid=xxx,rmapbt=0|1,reflink=0|1,
    +                       inobtcount=0|1,bigtime=0|1]
    ...
    (Run 'diff -u /root/xfstests/tests/xfs/543.out /root/xfstests/results//xfs/543.out.bad'  to see the entire diff)
Ran: xfs/543
Failures: xfs/543
Failed 1 of 1 tests

[root@qibo-anolis23-nightly-func-x86-1 xfstests]# diff -u /root/xfstests/tests/xfs/543.out /root/xfstests/results//xfs/543.out.bad
--- /root/xfstests/tests/xfs/543.out    2023-03-28 16:03:40.398664508 +0800
+++ /root/xfstests/results//xfs/543.out.bad     2023-03-31 15:16:00.040629798 +0800
@@ -1,2 +1,31 @@
 QA output created by 543
+Invalid value  for -d su option. Not a valid value or illegal suffix
+Usage: mkfs.xfs
+/* blocksize */                [-b size=num]
+/* config file */      [-c options=xxx]
+/* metadata */         [-m crc=0|1,finobt=0|1,uuid=xxx,rmapbt=0|1,reflink=0|1,
+                           inobtcount=0|1,bigtime=0|1]
+/* data subvol */      [-d agcount=n,agsize=n,file,name=xxx,size=num,
+                           (sunit=value,swidth=value|su=num,sw=num|noalign),
+                           sectsize=num
+/* force overwrite */  [-f]
+/* inode size */       [-i perblock=n|size=num,maxpct=n,attr=0|1|2,
+                           projid32bit=0|1,sparse=0|1]
+/* no discard */       [-K]
+/* log subvol */       [-l agnum=n,internal,size=num,logdev=xxx,version=n
+                           sunit=value|su=num,sectsize=num,lazy-count=0|1]
+/* label */            [-L label (maximum 12 characters)]
+/* naming */           [-n size=num,version=2|ci,ftype=0|1]
+/* no-op info only */  [-N]
+/* prototype file */   [-p fname]
+/* quiet */            [-q]
+/* realtime subvol */  [-r extsize=num,size=num,rtdev=xxx]
+/* sectorsize */       [-s size=num]
+/* version */          [-V]
+                       devicename
+<devicename> is required unless -d name=xxx is given.
+<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
+      xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
+<value> is xxx (512 byte blocks).
+mkfs failed
 Silence is golden

Expected results:
case pass

Additional info:
root@qibo-anolis23-nightly-func-x86-1 xfstests]# cat /etc/anolis-release
Anolis OS release 23
[root@qibo-anolis23-nightly-func-x86-1 xfstests]# uname -r
5.10.134-64.git.e3bbb1997652.an23.x86_64
[root@qibo-anolis23-nightly-func-x86-1 xfstests]# free -g
               total        used        free      shared  buff/cache   available
Mem:              15           0          10           3           3          10
Swap:              0           0           0
[root@qibo-anolis23-nightly-func-x86-1 xfstests]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M  4.0K  4.0M   1% /dev
tmpfs           7.6G  8.0K  7.6G   1% /dev/shm
tmpfs           3.1G  632K  3.1G   1% /run
/dev/vda1        40G   19G   22G  46% /
tmpfs           7.6G  3.2G  4.4G  43% /tmp
tmpfs           1.6G     0  1.6G   0% /run/user/0
[root@qibo-anolis23-nightly-func-x86-1 xfstests]# cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.10.134-64.git.e3bbb1997652.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 ss ht sysc
                         all nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor s
                         sse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowp
                         refetch cpuid_fault invpcid_single ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512
                         f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xget
                         bv1 xsaves wbnoinvd arat avx512vbmi pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg av
                         x512_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
Comment 1 anolislw alibaba_cloud_group 2023-03-31 16:18:24 UTC
(In reply to anolislw from comment #0)
> Description of problem:
> Anolis23 x86_64 ECS环境 ,社区nightly测试 x86_64, xfstetsts测试套case:xfs.xfs/543测试失败
> 
> Version-Release number of selected component (if applicable):
> 
> How reproducible:
> 
> Steps to Reproduce:
> wipefs -a -f /dev/vdb
> mountpoint /export
> parted -s /dev/vdb mklabel gpt mkpart primary 0 10240
> parted -s /dev/vdb mkpart primary 10240 20480
> parted -s /dev/vdb mkpart primary 20480 30720
> parted -s /dev/vdb mkpart primary 30720 40960
> mkfs -t xfs -L tone -q -f  -f /dev/vdb2
> mount -o inode64 /dev/vdb2 /fs/vdb2
> mkfs -t xfs -L tone -q -f  -f /dev/vdb1
> mount -o inode64 /dev/vdb1 /fs/vdb1
> mkfs -t xfs -L tone -q -f  -f /dev/vdb3
> mount -o inode64 /dev/vdb3 /fs/vdb3
> mkfs -t xfs -L tone -q -f  -f /dev/vdb4
> mount -o inode64 /dev/vdb4 /fs/vdb4
> umount -l -f /fs/vdb1
> umount -l -f /fs/vdb2
> umount -l -f /fs/vdb3
> umount -l -f /fs/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
> ./check xfs/543
> 
> Actual results:
> [root@qibo-anolis23-nightly-func-x86-1 xfstests]# ./check xfs/543
> FSTYP         -- xfs (non-debug)
> PLATFORM      -- Linux/x86_64 qibo-anolis23-nightly-func-x86-1
> 5.10.134-64.git.e3bbb1997652.an23.x86_64 #1 SMP Thu Mar 30 21:36:57 CST 2023
> MKFS_OPTIONS  -- -f /dev/vdb2
> MOUNT_OPTIONS -- /dev/vdb2 /fs/vdb2
> 
> xfs/543       - output mismatch (see /root/xfstests/results//xfs/543.out.bad)
>     --- tests/xfs/543.out       2023-03-28 16:03:40.398664508 +0800
>     +++ /root/xfstests/results//xfs/543.out.bad 2023-03-31
> 15:16:00.040629798 +0800
>     @@ -1,2 +1,31 @@
>      QA output created by 543
>     +Invalid value  for -d su option. Not a valid value or illegal suffix
>     +Usage: mkfs.xfs
>     +/* blocksize */            [-b size=num]
>     +/* config file */  [-c options=xxx]
>     +/* metadata */             [-m
> crc=0|1,finobt=0|1,uuid=xxx,rmapbt=0|1,reflink=0|1,
>     +                       inobtcount=0|1,bigtime=0|1]
>     ...
>     (Run 'diff -u /root/xfstests/tests/xfs/543.out
> /root/xfstests/results//xfs/543.out.bad'  to see the entire diff)
> Ran: xfs/543
> Failures: xfs/543
> Failed 1 of 1 tests
> 
> [root@qibo-anolis23-nightly-func-x86-1 xfstests]# diff -u
> /root/xfstests/tests/xfs/543.out /root/xfstests/results//xfs/543.out.bad
> --- /root/xfstests/tests/xfs/543.out    2023-03-28 16:03:40.398664508 +0800
> +++ /root/xfstests/results//xfs/543.out.bad     2023-03-31
> 15:16:00.040629798 +0800
> @@ -1,2 +1,31 @@
>  QA output created by 543
> +Invalid value  for -d su option. Not a valid value or illegal suffix
> +Usage: mkfs.xfs
> +/* blocksize */                [-b size=num]
> +/* config file */      [-c options=xxx]
> +/* metadata */         [-m
> crc=0|1,finobt=0|1,uuid=xxx,rmapbt=0|1,reflink=0|1,
> +                           inobtcount=0|1,bigtime=0|1]
> +/* data subvol */      [-d agcount=n,agsize=n,file,name=xxx,size=num,
> +                           (sunit=value,swidth=value|su=num,sw=num|noalign),
> +                           sectsize=num
> +/* force overwrite */  [-f]
> +/* inode size */       [-i perblock=n|size=num,maxpct=n,attr=0|1|2,
> +                           projid32bit=0|1,sparse=0|1]
> +/* no discard */       [-K]
> +/* log subvol */       [-l agnum=n,internal,size=num,logdev=xxx,version=n
> +                           sunit=value|su=num,sectsize=num,lazy-count=0|1]
> +/* label */            [-L label (maximum 12 characters)]
> +/* naming */           [-n size=num,version=2|ci,ftype=0|1]
> +/* no-op info only */  [-N]
> +/* prototype file */   [-p fname]
> +/* quiet */            [-q]
> +/* realtime subvol */  [-r extsize=num,size=num,rtdev=xxx]
> +/* sectorsize */       [-s size=num]
> +/* version */          [-V]
> +                       devicename
> +<devicename> is required unless -d name=xxx is given.
> +<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
> +      xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
> +<value> is xxx (512 byte blocks).
> +mkfs failed
>  Silence is golden
> 
> Expected results:
> case pass
> 
> Additional info:
> root@qibo-anolis23-nightly-func-x86-1 xfstests]# cat /etc/anolis-release
> Anolis OS release 23
> [root@qibo-anolis23-nightly-func-x86-1 xfstests]# uname -r
> 5.10.134-64.git.e3bbb1997652.an23.x86_64
> [root@qibo-anolis23-nightly-func-x86-1 xfstests]# free -g
>                total        used        free      shared  buff/cache  
> available
> Mem:              15           0          10           3           3        
> 10
> Swap:              0           0           0
> [root@qibo-anolis23-nightly-func-x86-1 xfstests]# df -h
> Filesystem      Size  Used Avail Use% Mounted on
> devtmpfs        4.0M  4.0K  4.0M   1% /dev
> tmpfs           7.6G  8.0K  7.6G   1% /dev/shm
> tmpfs           3.1G  632K  3.1G   1% /run
> /dev/vda1        40G   19G   22G  46% /
> tmpfs           7.6G  3.2G  4.4G  43% /tmp
> tmpfs           1.6G     0  1.6G   0% /run/user/0
> [root@qibo-anolis23-nightly-func-x86-1 xfstests]# cat /proc/cmdline
> BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.10.134-64.git.e3bbb1997652.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 ss ht sysc
>                          all nx pdpe1gb rdtscp lm constant_tsc rep_good nopl
> nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor s
>                          sse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe
> popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowp
>                          refetch cpuid_fault invpcid_single ibrs_enhanced
> fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512
>                          f avx512dq rdseed adx smap avx512ifma clflushopt
> clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xget
>                          bv1 xsaves wbnoinvd arat avx512vbmi pku ospke
> avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg av
>                          x512_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

更正下xfstests的安装部署流程:
git clone --branch anck-5.10 https://gitee.com/anolis/xfstests.git
export CFLAGS="-fcommon"
make configure
./configure
make && make install