[问题描述]: xfstests测试套ext4文件格式执行generic/645测试项FAIL [root@iZbp143ti4ccpaufkzata7Z xfstests]# ./check tests/generic/645 FSTYP -- ext4 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 -- -F /dev/nvme1n1p2 MOUNT_OPTIONS -- -o acl,user_xattr -o context=system_u:object_r:root_t:s0 /dev/nvme1n1p2 /fs/nvme1n1p2 generic/645 [failed, exit status 1]- output mismatch (see /root/tone/run/xfstests/results//generic/645.out.bad) --- tests/generic/645.out 2024-04-19 15:32:10.359548772 +0800 +++ /root/tone/run/xfstests/results//generic/645.out.bad 2024-05-07 15:28:28.443401081 +0800 @@ -1,2 +1,4 @@ QA output created by 645 Silence is golden +idmapped-mounts.c: 6671: nested_userns - Success - failure: sys_mount_setattr +vfstest.c: 2418: run_test - Success - failure: test that nested user namespaces behave correctly when attached to idmapped mounts ... (Run 'diff -u /root/tone/run/xfstests/tests/generic/645.out /root/tone/run/xfstests/results//generic/645.out.bad' to see the entire diff) Ran: generic/645 Failures: generic/645 Failed 1 of 1 tests [root@iZbp143ti4ccpaufkzata7Z xfstests]# cat /root/tone/run/xfstests/results//generic/645.out.bad QA output created by 645 Silence is golden -------------- 多出内容 idmapped-mounts.c: 6671: nested_userns - Success - failure: sys_mount_setattr vfstest.c: 2418: run_test - Success - failure: test that nested user namespaces behave correctly when attached to idmapped mounts [环境信息]: 机器类型: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 tests/generic/645命令
在同一个机器上ext4-2-bigalloc的generic/645测试FAIL,问题相同
An23.1 6.6.25-2_rc1.an23.x86_64环境有相同问题 [root@iZbp1c9jzchxjqive233ufZ xfstests]# ./check tests/generic/645 FSTYP -- ext4 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 -- -F /dev/nvme1n1p2 MOUNT_OPTIONS -- -o acl,user_xattr -o context=system_u:object_r:root_t:s0 /dev/nvme1n1p2 /fs/nvme1n1p2 generic/645 [failed, exit status 1]- output mismatch (see /root/tone/run/xfstests/results//generic/645.out.bad) --- tests/generic/645.out 2024-05-07 14:36:14.583425985 +0800 +++ /root/tone/run/xfstests/results//generic/645.out.bad 2024-05-10 16:29:14.374486201 +0800 @@ -1,2 +1,4 @@ QA output created by 645 Silence is golden +idmapped-mounts.c: 6671: nested_userns - Success - failure: sys_mount_setattr +vfstest.c: 2418: run_test - Success - failure: test that nested user namespaces behave correctly when attached to idmapped mounts ... (Run 'diff -u /root/tone/run/xfstests/tests/generic/645.out /root/tone/run/xfstests/results//generic/645.out.bad' to see the entire diff) Ran: generic/645 Failures: generic/645 Failed 1 of 1 tests [root@iZbp1c9jzchxjqive233ufZ xfstests]# cat /root/tone/run/xfstests/results//generic/645.out.bad QA output created by 645 Silence is golden idmapped-mounts.c: 6671: nested_userns - Success - failure: sys_mount_setattr vfstest.c: 2418: run_test - Success - failure: test that nested user namespaces behave correctly when attached to idmapped mounts [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 /dev/nvme1n1p2 ext4 19G 2.1M 18G 1% /fs/nvme1n1p2 /dev/nvme1n1p1 ext4 17G 2.1M 16G 1% /fs/nvme1n1p1
记录下 在Anolis23.2 x86_64(内核:6.6.25-2.2_rc1.an23.x86_64)环境下,xfstests测试执行ext4文件系统测试,generic/645也也在上述问题 -------------------------------- [root@5f9Lab15 xfstests]# ./check generic/645 FSTYP -- ext4 PLATFORM -- Linux/x86_64 5f9Lab15 6.6.25-2.2_rc1.an23.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 31 21:26:10 CST 2024 MKFS_OPTIONS -- -F /dev/nvme0n1p2 MOUNT_OPTIONS -- -o acl,user_xattr /dev/nvme0n1p2 /mnt/nvme0n1p2 generic/645 [failed, exit status 1]- output mismatch (see /tone/run/xfstests/results//generic/645.out.bad) --- tests/generic/645.out 2024-11-18 13:30:13.184122223 +0800 +++ /tone/run/xfstests/results//generic/645.out.bad 2024-11-18 13:48:38.215083418 +0800 @@ -1,2 +1,4 @@ QA output created by 645 Silence is golden +idmapped-mounts.c: 6671: nested_userns - Success - failure: sys_mount_setattr +vfstest.c: 2418: run_test - Success - failure: test that nested user namespaces behave correctly when attached to idmapped mounts ... (Run 'diff -u /tone/run/xfstests/tests/generic/645.out /tone/run/xfstests/results//generic/645.out.bad' to see the entire diff) Ran: generic/645 Failures: generic/645 Failed 1 of 1 tests [root@5f9Lab15 xfstests]# uname -r 6.6.25-2.2_rc1.an23.x86_64
在该环境下,测试xfs文件系统格式,case:generic/645 也存在存在相同问题 -------------------------- [root@5f9Lab15 xfstests]# ./check generic/645 FSTYP -- xfs (non-debug) PLATFORM -- Linux/x86_64 5f9Lab15 6.6.25-2.2_rc1.an23.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 31 21:26:10 CST 2024 MKFS_OPTIONS -- -f /dev/nvme0n1p2 MOUNT_OPTIONS -- /dev/nvme0n1p2 /fs/nvme0n1p2 generic/645 [failed, exit status 1]- output mismatch (see /tone/run/xfstests/results//generic/645.out.bad) --- tests/generic/645.out 2024-11-18 13:30:13.184122223 +0800 +++ /tone/run/xfstests/results//generic/645.out.bad 2024-11-18 14:17:41.221205703 +0800 @@ -1,2 +1,4 @@ QA output created by 645 Silence is golden +idmapped-mounts.c: 6671: nested_userns - Success - failure: sys_mount_setattr +vfstest.c: 2418: run_test - Success - failure: test that nested user namespaces behave correctly when attached to idmapped mounts ... (Run 'diff -u /tone/run/xfstests/tests/generic/645.out /tone/run/xfstests/results//generic/645.out.bad' to see the entire diff) Ran: generic/645 Failures: generic/645 Failed 1 of 1 tests
在Anolis23.2 6.6.25-2.2_rc1.an23.aarch64环境 xfstests测试的ext4格式和xfs格式generic/645均fail,问题相同 [root@4f7Lab15 xfstests]# ./check tests/generic/645 FSTYP -- ext4 PLATFORM -- Linux/aarch64 4f7Lab15 6.6.25-2.2_rc1.an23.aarch64 #1 SMP PREEMPT_DYNAMIC Thu Oct 31 21:22:28 CST 2024 MKFS_OPTIONS -- -F /dev/nvme0n1p2 MOUNT_OPTIONS -- -o acl,user_xattr /dev/nvme0n1p2 /fs/nvme0n1p2 generic/645 [failed, exit status 1]- output mismatch (see /root/xfstests/results//generic/645.out.bad) --- tests/generic/645.out 2024-11-12 15:17:30.318088760 +0800 +++ /root/xfstests/results//generic/645.out.bad 2024-11-20 10:04:34.964238260 +0800 @@ -1,2 +1,4 @@ QA output created by 645 Silence is golden +idmapped-mounts.c: 6671: nested_userns - Success - failure: sys_mount_setattr +vfstest.c: 2418: run_test - Success - failure: test that nested user namespaces behave correctly when attached to idmapped mounts ... (Run 'diff -u /root/xfstests/tests/generic/645.out /root/xfstests/results//generic/645.out.bad' to see the entire diff) This test wants kernel fix: dacfd001eaf2 fs/mnt_idmapping.c: Return -EINVAL when no map is written Ran: generic/645 Failures: generic/645 Failed 1 of 1 tests [root@4f7Lab15 xfstests]# df -Th 文件系统 类型 大小 已用 可用 已用% 挂载点 /dev/sda4 xfs 221G 16G 205G 8% / devtmpfs devtmpfs 4.0M 0 4.0M 0% /dev tmpfs tmpfs 378G 0 378G 0% /dev/shm efivarfs efivarfs 88K 59K 30K 67% /sys/firmware/efi/efivars tmpfs tmpfs 152G 3.9M 152G 1% /run /dev/sda2 xfs 960M 217M 744M 23% /boot tmpfs tmpfs 378G 0 378G 0% /tmp /dev/sda1 vfat 200M 6.5M 194M 4% /boot/efi tmpfs tmpfs 76G 64K 76G 1% /run/user/42 tmpfs tmpfs 76G 44K 76G 1% /run/user/0 [root@4f7Lab15 xfstests]# uname -r 6.6.25-2.2_rc1.an23.aarch64 [root@4f7Lab15 xfstests]# cat /etc/os-release NAME="Anolis OS" VERSION="23.1" ID="anolis" VERSION_ID="23.1" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23.1" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/"