Bug 8965 - [Anolis23.1 GA][Beta][ANCK-6.6.25-2][aarch64][xfstests]xfstests测试套ext4-2-overlay执行generic/732测试项FAIL
Summary: [Anolis23.1 GA][Beta][ANCK-6.6.25-2][aarch64][xfstests]xfstests测试套ext4-2-over...
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:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-08 15:36 UTC by Banana
Modified: 2024-05-11 14:35 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Banana alibaba_cloud_group 2024-05-08 15:36:13 UTC
[问题描述]:
xfstests测试套ext4-2-overlay执行generic/732测试项FAIL

[root@iZbp143ti4ccpaufkzata7Z xfstests]# ./check -overlay tests/generic/732
FSTYP         -- overlay
PLATFORM      -- Linux/aarch64 iZbp143ti4ccpaufkzata7Z 6.6.25-2_rc1.an23.aarch64 #1 SMP PREEMPT_DYNAMIC Thu Apr 11 15:02:38 CST 2024
MKFS_OPTIONS  -- /fs/nvme1n1p2
MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /fs/nvme1n1p2 /fs/nvme1n1p2/ovl-mnt

generic/732 2s ... [failed, exit status 1]- output mismatch (see /root/tone/run/xfstests/results//generic/732.out.bad)
    --- tests/generic/732.out   2024-04-19 15:32:10.571544909 +0800
    +++ /root/tone/run/xfstests/results//generic/732.out.bad    2024-05-08 15:31:21.455115985 +0800
    @@ -1,2 +1,6 @@
     QA output created by 732
     Silence is golden
    +mount: /fs/nvme1n1p1/ovl-mnt/mountpoint2-732: /fs/nvme1n1p2 already mounted on /fs/nvme1n1p1/ovl-mnt/mountpoint1-732.
    +       dmesg(1) may have more information after failed mount system call.
    +mount -o context=system_u:object_r:root_t:s0 /fs/nvme1n1p2 /fs/nvme1n1p1/ovl-mnt/mountpoint2-732 failed
    +(see /root/tone/run/xfstests/results//generic/732.full for details)
    ...
    (Run 'diff -u /root/tone/run/xfstests/tests/generic/732.out /root/tone/run/xfstests/results//generic/732.out.bad'  to see the entire diff)
Ran: generic/732
Failures: generic/732
Failed 1 of 1 tests

[root@iZbp143ti4ccpaufkzata7Z xfstests]# cat /root/tone/run/xfstests/results//generic/732.out.bad
QA output created by 732
Silence is golden
mount: /fs/nvme1n1p1/ovl-mnt/mountpoint2-732: /fs/nvme1n1p2 already mounted on /fs/nvme1n1p1/ovl-mnt/mountpoint1-732.
       dmesg(1) may have more information after failed mount system call.
mount -o context=system_u:object_r:root_t:s0 /fs/nvme1n1p2 /fs/nvme1n1p1/ovl-mnt/mountpoint2-732 failed
(see /root/tone/run/xfstests/results//generic/732.full for details)

dmesg日志报错:
	overlayfs: upperdir is in-use as upperdir/workdir of another mount, mount with '-o index=off' to override exclusive upperdir protection.

[环境信息]:
机器类型:ECS

[内核信息]:
[root@iZbp143ti4ccpaufkzata7Z xfstests]# uname -r
6.6.25-2_rc1.an23.aarch64

[操作系统信息]:
[root@iZbp143ti4ccpaufkzata7Z xfstests]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[文件系统]
[root@iZbp143ti4ccpaufkzata7Z xfstests]# df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  4.0M     0  4.0M   0% /dev
tmpfs          tmpfs      16G     0   16G   0% /dev/shm
tmpfs          tmpfs     6.1G  768K  6.1G   1% /run
efivarfs       efivarfs  256K   17K  240K   7% /sys/firmware/efi/efivars
/dev/nvme0n1p2 xfs        40G   11G   30G  27% /
tmpfs          tmpfs      16G     0   16G   0% /tmp
/dev/nvme0n1p1 vfat      500M  6.5M  494M   2% /boot/efi
tmpfs          tmpfs     3.1G     0  3.1G   0% /run/user/0

[问题发生概率]:
必现

[复现步骤]:
1、部署xfstests环境
2、部署测试环境
wipefs -a -f /dev/nvme1n1
wipefs -a -f /dev/nvme1n1
partprobe /dev/nvme1n1
parted -s /dev/nvme1n1 mklabel gpt mkpart primary 2048 190774
partprobe /dev/nvme1n1
parted -s /dev/nvme1n1 mkpart primary 190774 381548

mkfs -t ext4 -E lazy_itable_init=0,lazy_journal_init=0 -L OStest -q -F  -q -F /dev/nvme1n1p2
mkdir -p /fs/nvme1n1p2
mount  /dev/nvme1n1p2 /fs/nvme1n1p2
mkfs -t ext4 -E lazy_itable_init=0,lazy_journal_init=0 -L OStest -q -F  -q -F /dev/nvme1n1p1
mkdir -p /fs/nvme1n1p1
mount  /dev/nvme1n1p1 /fs/nvme1n1p1
export FSTYP=ext4
export TEST_DEV=/dev/nvme1n1p1
export SCRATCH_DEV=/dev/nvme1n1p2
export TEST_DIR=/fs/nvme1n1p1
export SCRATCH_MNT=/fs/nvme1n1p2
3、执行./check -overlay tests/generic/732命令
Comment 1 Banana alibaba_cloud_group 2024-05-11 14:35:56 UTC
在An23.1 6.6.25-2_rc1.an23.x86_64 ECS和物理机环境均存在相同问题

[root@iZbp1c9jzchxjqive233ufZ xfstests]# ./check -overlay tests/generic/732
FSTYP         -- overlay
PLATFORM      -- Linux/x86_64 iZbp1c9jzchxjqive233ufZ 6.6.25-2_rc1.an23.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 11 15:05:18 CST 2024
MKFS_OPTIONS  -- /fs/nvme1n1p2
MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /fs/nvme1n1p2 /fs/nvme1n1p2/ovl-mnt

generic/732 1s ... [failed, exit status 1]- output mismatch (see /root/tone/run/xfstests/results//generic/732.out.bad)
    --- tests/generic/732.out   2024-05-07 14:36:14.778427667 +0800
    +++ /root/tone/run/xfstests/results//generic/732.out.bad    2024-05-11 14:33:39.268267062 +0800
    @@ -1,2 +1,6 @@
     QA output created by 732
     Silence is golden
    +mount: /fs/nvme1n1p1/ovl-mnt/mountpoint2-732: /fs/nvme1n1p2 already mounted on /fs/nvme1n1p1/ovl-mnt/mountpoint1-732.
    +       dmesg(1) may have more information after failed mount system call.
    +mount -o context=system_u:object_r:root_t:s0 /fs/nvme1n1p2 /fs/nvme1n1p1/ovl-mnt/mountpoint2-732 failed
    +(see /root/tone/run/xfstests/results//generic/732.full for details)
    ...
    (Run 'diff -u /root/tone/run/xfstests/tests/generic/732.out /root/tone/run/xfstests/results//generic/732.out.bad'  to see the entire diff)
Ran: generic/732
Failures: generic/732
Failed 1 of 1 tests

-----实际输出-----
[root@iZbp1c9jzchxjqive233ufZ xfstests]# cat /root/tone/run/xfstests/results//generic/732.out.bad
QA output created by 732
Silence is golden
mount: /fs/nvme1n1p1/ovl-mnt/mountpoint2-732: /fs/nvme1n1p2 already mounted on /fs/nvme1n1p1/ovl-mnt/mountpoint1-732.
       dmesg(1) may have more information after failed mount system call.
mount -o context=system_u:object_r:root_t:s0 /fs/nvme1n1p2 /fs/nvme1n1p1/ovl-mnt/mountpoint2-732 failed
(see /root/tone/run/xfstests/results//generic/732.full for details)

-----预期输出-----
[root@iZbp1c9jzchxjqive233ufZ xfstests]# cat /root/tone/run/xfstests/tests/generic/732.out
QA output created by 732
Silence is golden

[root@iZbp1c9jzchxjqive233ufZ xfstests]# uname -r
6.6.25-2_rc1.an23.x86_64
[root@iZbp1c9jzchxjqive233ufZ xfstests]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[root@iZbp1c9jzchxjqive233ufZ xfstests]# df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  4.0M     0  4.0M   0% /dev
tmpfs          tmpfs     7.6G     0  7.6G   0% /dev/shm
tmpfs          tmpfs     3.1G  592K  3.1G   1% /run
/dev/nvme0n1p2 xfs        40G  5.1G   35G  13% /
tmpfs          tmpfs     7.6G   26M  7.6G   1% /tmp
tmpfs          tmpfs     1.6G     0  1.6G   0% /run/user/0