Bug 3409 - [Anck-5.10-16][x86-64/aarch64][ck-4.19 aarch64][nightly]xfstests测试套ext4-2-bigalloc/generic/112 run fail
Summary: [Anck-5.10-16][x86-64/aarch64][ck-4.19 aarch64][nightly]xfstests测试套ext4-2-big...
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: kernel - anck-4.19 (show other bugs) kernel - anck-4.19
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: xiaoguangwang
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-09 17:30 UTC by anolislw
Modified: 2023-10-16 10:37 UTC (History)
5 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 2022-12-09 17:30:23 UTC
[问题简述]
在Anolis8.6 aarch64环境下,nightly的xfstests测试中ext4-2-bigalloc/generic/112 run fail

[期望结果]
case pass

[实际结果]
[root@l57h15217 xfstests]# ./check generic/112
FSTYP         -- ext4
PLATFORM      -- Linux/aarch64 l57h15217 4.19.91-562.git.33fa3ee82.an8.aarch64 #1 SMP Thu Dec 8 13:55:59 UTC 2022
MKFS_OPTIONS  -- -F /dev/nvme0n1p2
MOUNT_OPTIONS -- -o acl,user_xattr /dev/nvme0n1p2 /mnt/nvme0n1p2

generic/112 11s ... [failed, exit status 1]- output mismatch (see /var/lib/xfstests/results//generic/112.out.bad)
    --- tests/generic/112.out 2022-12-09 13:29:18.159187085 +0800
    +++ /var/lib/xfstests/results//generic/112.out.bad  2022-12-09 17:22:22.368338845 +0800
    @@ -4,15 +4,4 @@
     -----------------------------------------------
     fsx.0 : -A -d -N numops -S 0
     -----------------------------------------------
    -
    ------------------------------------------------
    -fsx.1 : -A -d -N numops -S 0 -x
    ------------------------------------------------
    ...
    (Run 'diff -u /var/lib/xfstests/tests/generic/112.out /var/lib/xfstests/results//generic/112.out.bad'  to see the entire diff)
Ran: generic/112
Failures: generic/112
Failed 1 of 1 tests

[root@l57h15217 xfstests]# hostname -I
11.159.87.130 172.17.0.1 10.88.0.1 fd40:2400:0:113:bace:f6ff:fe15:ccd6 fd40:2400:0:112:bace:f6ff:fe15:ccd6
[root@l57h15217 xfstests]# uname -r
4.19.91-562.git.33fa3ee82.an8.aarch64

[复现步骤]
提前磁盘分好2个分区
git clone https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git
yum install -y xfsprogs-devel libuuid-devel libattr-devel libacl-devel libaio-devel libtool
cd xfstests-dev
make && make install
mkfs -t ext4 -E lazy_itable_init=0,lazy_journal_init=0 -L OStest -q -F -O bigalloc -C 16k -q -F /dev/nvme0n1p1
mkfs -t ext4 -E lazy_itable_init=0,lazy_journal_init=0 -L OStest -q -F -O bigalloc -C 16k -q -F /dev/nvme0n1p2
mkdir /mnt/nvme0n1p1
mkdir /mnt/nvme0n1p2
#TEST_DEV/SCRATCH_DEV为文件系统所在的磁盘或分区
export TEST_DEV=/dev/nvme0n1p1
export SCRATCH_DEV=/dev/nvme0n1p2
export FSTYP=ext4
#TEST_DIR/SCRATCH_MNT表示待测试文件系统的挂载目录
export SCRATCH_MNT=/mnt/nvme0n1p2
export TEST_DIR=/mnt/nvme0n1p1
cd /var/lib/xfstests
./check generic/112

[环境信息]
[root@l57h15216 xfstests]# uname -r
4.19.91-562.git.33fa3ee82.an8.aarch64
[root@l57h15216 xfstests]# cat /etc/redhat-release
Anolis OS release 8.6
[root@l57h15216 xfstests]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        378G     0  378G   0% /dev
tmpfs           378G     0  378G   0% /dev/shm
tmpfs           378G  4.1G  374G   2% /run
tmpfs           378G     0  378G   0% /sys/fs/cgroup
/dev/sda2        49G   14G   34G  29% /
/dev/sda1      1022M  6.7M 1016M   1% /boot/efi
tmpfs            76G     0   76G   0% /run/user/0
[root@l57h15216 xfstests]# free -g
              total        used        free      shared  buff/cache   available
Mem:            755           4         740           4          10         743
Swap:             1           0           1
[root@l57h15216 xfstests]# cat /proc/cmdline
BOOT_IMAGE=(hd1,gpt2)/boot/vmlinuz-4.19.91-562.git.33fa3ee82.an8.aarch64 root=UUID=155c08da-f348-4f0a-87d2-c9304f9b2f7b ro console=tty0 console=ttyS0,115200rd.driver.pre=ahci crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M
[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
Comment 1 yunhe123 alibaba_cloud_group 2023-04-26 14:55:46 UTC
anolis8-5.10-aarch存在同样的问题,日志如下:
[failed, exit status 1]- output mismatch (see /tmp/tone/run/xfstests/results//generic/112.out.bad)
    --- tests/generic/112.out   2023-04-26 10:23:02.929749430 +0800
    +++ /tmp/tone/run/xfstests/results//generic/112.out.bad     2023-04-26 14:01:47.601749430 +0800
    @@ -4,15 +4,4 @@
     -----------------------------------------------
     fsx.0 : -A -d -N numops -S 0
     -----------------------------------------------
    -
    ------------------------------------------------
    -fsx.1 : -A -d -N numops -S 0 -x
    ------------------------------------------------
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/112.out /tmp/tone/run/xfstests/results//generic/112.out.bad'  to see the entire diff)

# diff -u /tmp/tone/run/xfstests/tests/generic/112.out /tmp/tone/run/xfstests/results//generic/112.out.bad
--- /tmp/tone/run/xfstests/tests/generic/112.out        2023-04-26 10:23:02.929749430 +0800
+++ /tmp/tone/run/xfstests/results//generic/112.out.bad 2023-04-26 14:01:47.601749430 +0800
@@ -4,15 +4,4 @@
 -----------------------------------------------
 fsx.0 : -A -d -N numops -S 0
 -----------------------------------------------
-
------------------------------------------------
-fsx.1 : -A -d -N numops -S 0 -x
------------------------------------------------
-
------------------------------------------------
-fsx.2 : -A -d -N numops -l filelen -S 0
------------------------------------------------
-
------------------------------------------------
-fsx.3 : -A -d -N numops -l filelen -S 0 -x
------------------------------------------------
+    fsx (-A -d -N 1000 -S 0) returned 0 - see 112.0.full
Comment 2 zhixin01 alibaba_cloud_group 2023-05-16 16:28:41 UTC
anolis8-4.19-x86_64也有同样失败:
# uname -r
4.19.91-710.git.30c6cdce0a.an8.x86_64

测试日志如下:
generic/112       [failed, exit status 1]- output mismatch (see /tmp/tone/run/xfstests/results//generic/112.out.bad)
    --- tests/generic/112.out   2023-05-16 16:00:08.768949666 +0800
    +++ /tmp/tone/run/xfstests/results//generic/112.out.bad     2023-05-16 16:20:32.769934280 +0800
    @@ -4,15 +4,4 @@
     -----------------------------------------------
     fsx.0 : -A -d -N numops -S 0
     -----------------------------------------------
    -
    ------------------------------------------------
    -fsx.1 : -A -d -N numops -S 0 -x
    ------------------------------------------------
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/112.out /tmp/tone/run/xfstests/results//generic/112.out.bad'  to see the entire diff)
Ran: generic/112
Failures: generic/112
Failed 1 of 1 tests

[tone]Error: The return code of run() in run.sh is not 0
generic/112: Failed
Test running: Done

# diff -u /tmp/tone/run/xfstests/tests/generic/112.out /tmp/tone/run/xfstests/results//generic/112.out.bad
--- /tmp/tone/run/xfstests/tests/generic/112.out        2023-05-16 16:00:08.768949666 +0800
+++ /tmp/tone/run/xfstests/results//generic/112.out.bad 2023-05-16 16:20:32.769934280 +0800
@@ -4,15 +4,4 @@
 -----------------------------------------------
 fsx.0 : -A -d -N numops -S 0
 -----------------------------------------------
-
------------------------------------------------
-fsx.1 : -A -d -N numops -S 0 -x
------------------------------------------------
-
------------------------------------------------
-fsx.2 : -A -d -N numops -l filelen -S 0
------------------------------------------------
-
------------------------------------------------
-fsx.3 : -A -d -N numops -l filelen -S 0 -x
------------------------------------------------
+    fsx (-A -d -N 1000 -S 0) returned 0 - see 112.0.full
Comment 3 meil_wei alibaba_cloud_group 2023-05-18 17:36:27 UTC
alinux2 x86 nightly版本有同样问题

generic/112       [failed, exit status 1]- output mismatch (see /tmp/tone/run/xfstests/results//generic/112.out.bad)
    --- tests/generic/112.out	2023-05-17 22:30:58.659151799 +0800
    +++ /tmp/tone/run/xfstests/results//generic/112.out.bad	2023-05-17 22:44:10.917889341 +0800
    @@ -4,15 +4,4 @@
     -----------------------------------------------
     fsx.0 : -A -d -N numops -S 0
     -----------------------------------------------
    -
    ------------------------------------------------
    -fsx.1 : -A -d -N numops -S 0 -x
    ------------------------------------------------
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/112.out /tmp/tone/run/xfstests/results//generic/112.out.bad'  to see the entire diff)

# uname -r
4.19.91-1411.git.c18ed0b83a1b.al7.x86_64
Comment 4 wangpingping alibaba_cloud_group 2023-05-23 14:25:50 UTC
anolis7-4.19-x86 ck27.4有同样失败;
内核:4.19.91-27.4.an7.x86_64

部分失败日志如下:
generic/112       [failed, exit status 1]- output mismatch (see /tmp/tone/run/xfstests/results//generic/112.out.bad)
    --- tests/generic/112.out	2023-05-22 18:05:38.622826805 +0800
    +++ /tmp/tone/run/xfstests/results//generic/112.out.bad	2023-05-22 18:15:56.775683367 +0800
    @@ -4,15 +4,4 @@
     -----------------------------------------------
     fsx.0 : -A -d -N numops -S 0
     -----------------------------------------------
    -
    ------------------------------------------------
    -fsx.1 : -A -d -N numops -S 0 -x
    ------------------------------------------------
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/112.out /tmp/tone/run/xfstests/results//generic/112.out.bad'  to see the entire diff)
Comment 5 wangpingping alibaba_cloud_group 2023-10-13 18:11:56 UTC
alinux3 ANCK5.10-16版本测试 5.10.134-16_rc1.al8 x86-64和aarch64内核依旧存在此问题

失败日志如下:
generic/112       [failed, exit status 1]- output mismatch (see /var/tmp/tone/run/xfstests/results//generic/112.out.bad)
    --- tests/generic/112.out	2023-10-12 11:26:13.087807030 +0800
    +++ /var/tmp/tone/run/xfstests/results//generic/112.out.bad	2023-10-12 11:50:05.553508183 +0800
    @@ -4,15 +4,4 @@
     -----------------------------------------------
     fsx.0 : -A -d -N numops -S 0
     -----------------------------------------------
    -
    ------------------------------------------------
    -fsx.1 : -A -d -N numops -S 0 -x
    ------------------------------------------------
    ...
    (Run 'diff -u /var/tmp/tone/run/xfstests/tests/generic/112.out /var/tmp/tone/run/xfstests/results//generic/112.out.bad'  to see the entire diff)