Bug 1095 - [Anck 4.19][ck26_rc1][xfs文件系统]xfstests xfs xfs/512 -Permission denied
Summary: [Anck 4.19][ck26_rc1][xfs文件系统]xfstests xfs xfs/512 -Permission denied
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-05 18:17 UTC by kangjiangbo
Modified: 2023-07-03 10:43 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-05 18:17:33 UTC
Description of problem:
xfs文件系统,xfstests下xfs/512 -Permission denied
x86和arm均存在该问题

失败几率:100%
测试日志:
# ./check tests/xfs/512
FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/x86_64 iZ2ze6n8cezigzjqlcfjadZ 4.19.91-26_rc1.an7.x86_64 #1 SMP Mon Apr 25 17:24:24 CST 2022
MKFS_OPTIONS  -- -f -bsize=4096 /dev/vdb2
MOUNT_OPTIONS -- /dev/vdb2 /fs/scratch

xfs/512 - output mismatch (see /tmp/tone/run/xfstests/results//xfs/512.out.bad)
    --- tests/xfs/512.out       2022-04-27 21:06:26.819734110 +0800
    +++ /tmp/tone/run/xfstests/results//xfs/512.out.bad 2022-05-05 18:16:23.932466051 +0800
    @@ -4,4 +4,4 @@
     With ACL:
     This is a test
     ACL Removed through attr:
    -Permission denied
    +This is a test
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/xfs/512.out /tmp/tone/run/xfstests/results//xfs/512.out.bad'  to see the entire diff)
Ran: xfs/512
Failures: xfs/512
Failed 1 of 1 tests




Version-Release number of selected component (if applicable):
# uname -a
Linux iZ2ze6n8cezigzjqlcfjadZ 4.19.91-26_rc1.an7.x86_64 #1 SMP Mon Apr 25 17:24:24 CST 2022 x86_64 x86_64 x86_64 GNU/Linux
# uname -a
Linux iZ2zebfu2pfe96wy4xb5lsZ 4.19.91-26_rc1.an7.aarch64 #1 SMP Mon Apr 25 17:30:58 CST 2022 aarch64 aarch64 aarch64 GNU/Linux
# 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 xfs -L OStest -q -f /dev/$disk1
mkfs -t xfs -L OStest -q -f /dev/$disk2

export TEST_DIR=/fs/$disk1
export TEST_DEV=/dev/$disk1
export FSTYP=xfs
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 tests/xfs/510


Expected results:


Additional info:
xfsprogs-4.5.0-22.an7.x86_64
Comment 1 kangjiangbo 2022-05-05 18:17:43 UTC
an8 pass
Comment 2 kangjiangbo 2022-05-07 16:47:35 UTC
使用最新xfstests代码https://github.com/kdave/xfstests.git + xfsprogs-4.19.0-5.0.1.an7 依然失败
Comment 3 Joseph Qi alibaba_cloud_group 2022-05-16 09:45:34 UTC
待更新 xfsprogs 版本,优先解降低
Comment 4 meil_wei alibaba_cloud_group 2023-01-06 18:32:46 UTC
Anolis7 4.19 aarch64最新的nightly内核有同样的问题
# 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"

# uname -r
4.19.91-256.git.dc94d81.an7.aarch64
Comment 5 zhixin01 alibaba_cloud_group 2023-01-10 17:17:55 UTC
Anolis8 4.19 x86_64最新的nightly内核有同样的问题:
# uname -r
4.19.91-261.git.98e6929d1498.an8.x86_64

# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.6"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.6"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.6"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

# yum list xfsprogs
Last metadata expiration check: 0:29:00 ago on Tue 10 Jan 2023 04:32:18 PM CST.
Installed Packages
xfsprogs.x86_64                                            5.0.0-10.0.3.an8                                             @System
Comment 6 wangpingping alibaba_cloud_group 2023-01-11 14:45:11 UTC
anolis7-4.19-x86-64最新nightly内核有同样失败
# uname -r
4.19.91-255.git.98e6929.an7.x86_64
# 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"

xfsfrogs版本:
#  yum list xfsprogs
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Installed Packages
xfsprogs.x86_64                                            4.19.0-5.0.1.an7                                             @anaconda/7
Comment 7 anolislw alibaba_cloud_group 2023-01-11 17:05:44 UTC
anolis8.6 ck-4.19 aarch64该case存在相同问题

xfs/512       - output mismatch (see /tmp/tone/run/xfstests/results//xfs/512.out.bad)
    --- tests/xfs/512.out	2023-01-10 23:47:30.455531898 +0800
    +++ /tmp/tone/run/xfstests/results//xfs/512.out.bad	2023-01-11 02:03:58.210674067 +0800
    @@ -4,4 +4,4 @@
     With ACL: 
     This is a test
     ACL Removed through attr:
    -Permission denied
    +This is a test
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/xfs/512.out /tmp/tone/run/xfstests/results//xfs/512.out.bad'  to see the entire diff)
Comment 8 Ferry Meng alibaba_cloud_group 2023-06-29 20:22:33 UTC
4.19内核缺少补丁f16fe3ecde62 ("xfs: bulkstat should copy lastip whenever userspace supplies one")

注意,目前stable版本未合入该补丁
Comment 9 小龙 admin 2023-07-03 09:50:23 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/1822
Comment 10 Joseph Qi alibaba_cloud_group 2023-07-03 10:43:17 UTC
(In reply to 小龙 from comment #9)
> The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/1822

merged