Bug 1216 - [Anck 4.19][ck26_rc3][xfs文件系统]xfstests ext4-overlay generic/571 +Client reported failure
Summary: [Anck 4.19][ck26_rc3][xfs文件系统]xfstests ext4-overlay generic/571 +Client repor...
Status: RESOLVED FIXED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: fs (show other bugs) fs
Version: 4.19-026.x
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Ferry Meng
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-13 16:27 UTC by kangjiangbo
Modified: 2023-07-03 11:04 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 kangjiangbo 2022-05-13 16:27:26 UTC
Description of problem:
xfs文件系统,xfstests ext4-overlay generic/571 +Client reported failure
x86和arm均存在该问题,非regression,RC1版本亦存在此问题
an8成功

失败几率:必现

Version-Release number of selected component (if applicable):
# uname -r
4.19.91-26_rc3.an7.aarch64
# uname -r
4.19.91-26_rc3.an7.x86_64

# cat /etc/os-release
NAME="Anolis OS"
VERSION="7.7"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.7"
PRETTY_NAME="Anolis OS 7.7"
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"



How reproducible:
1. 准备环境
#准备disk1 disk2测试盘,视本地环境修改
disk1=vdb1
disk2=vdb2

dmsetup remove_all
wipefs -a --force /dev/$disk1
wipefs -a --force /dev/$disk2

mkfs -t ext4 -q -F /dev/$disk1
mkfs -t ext4 -q -F /dev/$disk2

export TEST_DIR=/fs/$disk1
export TEST_DEV=/dev/$disk1
export FSTYP=ext4
export SCRATCH_MNT=/fs/scratch
mkdir /fs/$disk1 -p
mkdir /fs/scratch -p
export SCRATCH_DEV=/dev/$disk2

2. 下载xfstests测试代码

3. 编译测试源码
cd xfstests-dev
export CFLAGS="-fcommon"
make
make install

4.执行测试用例
./check -overlay tests/generic/571


Actual results:
./check -overlay tests/generic/571
FSTYP         -- overlay
PLATFORM      -- Linux/aarch64 iZ2zebfu2pfe96wy4xb5lsZ 4.19.91-26_rc3.an7.aarch64 #1 SMP Tue May 10 20:56:42 CST 2022
MKFS_OPTIONS  -- /fs/vdb2
MOUNT_OPTIONS -- /fs/vdb2 /fs/vdb2/ovl-mnt

generic/571 7s ... [failed, exit status 1]- output mismatch (see /tmp/tone/run/xfstests/results//generic/571.out.bad)
    --- tests/generic/571.out   2022-05-11 18:45:56.481456941 +0800
    +++ /tmp/tone/run/xfstests/results//generic/571.out.bad     2022-05-13 16:14:34.784517030 +0800
    @@ -1,2 +1,3 @@
     QA output created by 571
    -success!
    +Client reported failure (6)
    +(see /tmp/tone/run/xfstests/results//generic/571.full for details)
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/571.out /tmp/tone/run/xfstests/results//generic/571.out.bad'  to see the entire diff)
Ran: generic/571
Failures: generic/571
Failed 1 of 1 tests

Expected results:

Additional info:
xfsprogs-4.5.0-22.an7
xfsprogs-4.19.0-5.0.1.an7
均失败
x86和arm均存在该问题,非regression,RC1版本亦存在此问题
an8成功
Comment 1 wangpingping alibaba_cloud_group 2023-05-23 13:39:45 UTC
anolis7-4.19内核4.19.91-27.4.an7.x86_64有相同失败;

失败日志如下:
generic/571       [failed, exit status 1]- output mismatch (see /tmp/tone/run/xfstests/results//generic/571.out.bad)
    --- tests/generic/571.out	2023-05-22 16:40:54.333482538 +0800
    +++ /tmp/tone/run/xfstests/results//generic/571.out.bad	2023-05-22 17:12:26.692821437 +0800
    @@ -1,2 +1,3 @@
     QA output created by 571
    -success!
    +Client reported failure (6)
    +(see /tmp/tone/run/xfstests/results//generic/571.full for details)
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/571.out /tmp/tone/run/xfstests/results//generic/571.out.bad'  to see the entire diff)
Comment 2 anolislw alibaba_cloud_group 2023-05-23 15:48:35 UTC
anolis8 aarch64物理机环境 xfstests/ext4-2-overlay测试case:generic/571也存在该问题

---------------------------------
[root@nu4f13168 xfstests]# ./check -overlay generic/571
mount: /mnt/nvme0n1p1: can't find in /etc/fstab.
FSTYP         -- overlay
PLATFORM      -- Linux/aarch64 nu4f13168 4.19.91-729.git.94e780376.an8.aarch64 #1 SMP Mon May 22 13:57:04 UTC 2023
MKFS_OPTIONS  -- /mnt/nvme0n1p2
MOUNT_OPTIONS -- /mnt/nvme0n1p2 /mnt/nvme0n1p2/ovl-mnt

umount: /mnt/nvme0n1p2: not mounted.
mount: /mnt/nvme0n1p1: can't find in /etc/fstab.
umount: /mnt/nvme0n1p1: not mounted.
generic/571       [failed, exit status 1]- output mismatch (see /tmp/tone/run/xfstests/results//generic/571.out.bad)
    --- tests/generic/571.out   2023-05-23 15:27:40.761571320 +0800
    +++ /tmp/tone/run/xfstests/results//generic/571.out.bad     2023-05-23 15:46:08.754755191 +0800
    @@ -1,2 +1,3 @@
     QA output created by 571
    -success!
    +Client reported failure (6)
    +(see /tmp/tone/run/xfstests/results//generic/571.full for details)
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/571.out /tmp/tone/run/xfstests/results//generic/571.out.bad'  to see the entire diff)
Ran: generic/571
Failures: generic/571
Failed 1 of 1 tests

[root@nu4f13168 xfstests]# diff -u /tmp/tone/run/xfstests/tests/generic/571.out /tmp/tone/run/xfstests/results//generic/571.out.bad
--- /tmp/tone/run/xfstests/tests/generic/571.out        2023-05-23 15:27:40.761571320 +0800
+++ /tmp/tone/run/xfstests/results//generic/571.out.bad 2023-05-23 15:46:08.754755191 +0800
@@ -1,2 +1,3 @@
 QA output created by 571
-success!
+Client reported failure (6)
+(see /tmp/tone/run/xfstests/results//generic/571.full for details)
[root@nu4f13168 xfstests]#
[root@nu4f13168 xfstests]# uname -r
4.19.91-729.git.94e780376.an8.aarch64
[root@nu4f13168 xfstests]# cat /etc/anolis-release
Anolis OS release 8.8
Comment 3 ZiyangZhang alibaba_cloud_group 2023-05-24 14:34:18 UTC
关于anolis8的失败情况,请新开一个bug
Comment 4 Ferry Meng alibaba_cloud_group 2023-06-30 17:38:21 UTC
there exists filelock counting error in 'overlayfs' since linux-4.19.
overlayfs should avoid using i/d_count when judges conficts among write lease applying.

refer to commit 387e3746d01c34457d6a73688acd90428725070b upstream.
Comment 5 小龙 admin 2023-07-03 10:12:22 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/1824
Comment 6 Joseph Qi alibaba_cloud_group 2023-07-03 11:04:08 UTC
(In reply to 小龙 from comment #5)
> The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/1824

merged