[缺陷描述]: 背景:xfstests测试代码同步合入gitee xfstests 5.10代码后,新增此用例失败; 失败日志如下: # ./check -overlay generic/623 FSTYP -- overlay PLATFORM -- Linux/aarch64 VM20200706-16 5.10.134-14.1.al8.aarch64 #1 SMP Thu May 18 13:19:46 CST 2023 MKFS_OPTIONS -- /fs/vdb2 MOUNT_OPTIONS -- /fs/vdb2 /fs/vdb2/ovl-mnt generic/623 - output mismatch (see /tmp/tone/run/xfstests/results//generic/623.out.bad) --- tests/generic/623.out 2023-05-22 10:58:04.353982947 +0800 +++ /tmp/tone/run/xfstests/results//generic/623.out.bad 2023-05-22 14:21:07.361293892 +0800 @@ -1,4 +1,4 @@ QA output created by 623 wrote 4096/4096 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -fsync: Input/output error +XFS_IOC_GOINGDOWN: Inappropriate ioctl for device ... (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/623.out /tmp/tone/run/xfstests/results//generic/623.out.bad' to see the entire diff) HINT: You _MAY_ be missing kernel fix: e4826691cc7e xfs: restore shutdown check in mapped write fault path Ran: generic/623 Failures: generic/623 Failed 1 of 1 tests [复现概率]: 必现 [复现环境]: 内核: # uname -r 5.10.134-14.1.al8.aarch64 # cat /etc/os-release NAME="Alibaba Cloud Linux" VERSION="3 (Soaring Falcon)" ID="alinux" ID_LIKE="rhel fedora centos anolis" VERSION_ID="3" PLATFORM_ID="platform:al8" PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)" ANSI_COLOR="0;31" HOME_URL="https://www.aliyun.com/" CPU信息: # lscpu Architecture: aarch64 Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per cluster: 4 Socket(s): 4 Cluster(s): 1 NUMA node(s): 1 Vendor ID: HiSilicon BIOS Vendor ID: Alibaba Cloud Model: 0 Model name: Kunpeng-920 BIOS Model name: virt-rhel7.6.0 Stepping: 0x1 BogoMIPS: 200.00 NUMA node0 CPU(s): 0-3 Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm 内存信息: # free -h total used free shared buff/cache available Mem: 15Gi 326Mi 14Gi 0.0Ki 532Mi 14Gi Swap: 0B 0B 0B [复现步骤]: 1.下载并编译测试套 git clone --branch kernel-5.10 https://code.alibaba-inc.com/AKTF/xfstests-dev.git cd xfstests export CFLAGS="-fcommon" make configure ./configure make && make install 2.初始化测试盘 dmsetup remove_all wipefs -a --force /dev/vdb1 wipefs -a --force /dev/vdb2 mkfs -t ext4 -q -F /dev/vdb1 mkfs -t ext4 -q -F /dev/vdb2 mkdir -p /fs/vdb1 mount -t ext4 /dev/vdb1 /fs/vdb1 mkdir -p /fs/vdb2 mount -t ext4 /dev/vdb2 /fs/vdb2 umount -f -l /fs/vdb1 /fs/vdb2 3.设置环境变量 export TEST_DIR=/fs/vdb1 export TEST_DEV=/dev/vdb1 export FSTYP=ext4 export SCRATCH_DEV=/dev/vdb2 export SCRATCH_MNT=/fs/vdb2 4.执行测试用例 ./check -overlay generic/623 [预期结果]: 用例执行成功 [实际结果]: 用例执行失败
4.19.91-27.4.an7.x86_64内核有同样问题;
anolis8-5.10-aarch 内部nightly存在同样的问题,日志如下: options is -overlay -E blacklists/exclude FSTYP -- overlay PLATFORM -- Linux/aarch64 nu4f13160 5.10.134-668.git.e244892f6.an8.aarch64 #1 SMP Sun May 28 11:54:54 UTC 2023 MKFS_OPTIONS -- /fs/nvme0n1p2 MOUNT_OPTIONS -- /fs/nvme0n1p2 /fs/nvme0n1p2/ovl-mnt generic/623 - output mismatch (see /tmp/tone/run/xfstests/results//generic/623.out.bad) --- tests/generic/623.out 2023-05-29 12:16:07.301132460 +0800 +++ /tmp/tone/run/xfstests/results//generic/623.out.bad 2023-05-29 14:42:29.089132460 +0800 @@ -1,4 +1,4 @@ QA output created by 623 wrote 4096/4096 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -fsync: Input/output error +XFS_IOC_GOINGDOWN: Inappropriate ioctl for device ... (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/623.out /tmp/tone/run/xfstests/results//generic/623.out.bad' to see the entire diff) HINT: You _MAY_ be missing kernel fix: e4826691cc7e xfs: restore shutdown check in mapped write fault path
an8 5.10 x86 nightly存在同样的问题 # uname -r 5.10.134-706.git.9eb9e601b.an8.x86_64 generic/623 - output mismatch (see /tmp/tone/run/xfstests/results//generic/623.out.bad) --- tests/generic/623.out 2023-05-31 09:47:50.850046712 +0800 +++ /tmp/tone/run/xfstests/results//generic/623.out.bad 2023-05-31 10:31:21.733030726 +0800 @@ -1,4 +1,4 @@ QA output created by 623 wrote 4096/4096 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -fsync: Input/output error +XFS_IOC_GOINGDOWN: Inappropriate ioctl for device ... (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/623.out /tmp/tone/run/xfstests/results//generic/623.out.bad' to see the entire diff) HINT: You _MAY_ be missing kernel fix: e4826691cc7e xfs: restore shutdown check in mapped write fault path
alinux2 nightly内核有同样问题 # uname -r 4.19.91-1425.git.f083b89c83ab.al7.x86_64 generic/623 - output mismatch (see /tmp/tone/run/xfstests/results//generic/623.out.bad) --- tests/generic/623.out 2023-05-31 11:10:01.824970296 +0800 +++ /tmp/tone/run/xfstests/results//generic/623.out.bad 2023-05-31 12:24:36.477027361 +0800 @@ -1,4 +1,4 @@ QA output created by 623 wrote 4096/4096 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -fsync: Input/output error +XFS_IOC_GOINGDOWN: Inappropriate ioctl for device ... (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/623.out /tmp/tone/run/xfstests/results//generic/623.out.bad' to see the entire diff) HINT: You _MAY_ be missing kernel fix: e4826691cc7e xfs: restore shutdown check in mapped write fault path
anolis8 4.19 x86_64有同样失败 # uname -r 4.19.91-739.git.f083b89c83.an8.x86_64 generic/623 - output mismatch (see /tmp/tone/run/xfstests/results//generic/623.out.bad) --- tests/generic/623.out 2023-06-01 10:09:50.552521938 +0800 +++ /tmp/tone/run/xfstests/results//generic/623.out.bad 2023-06-01 10:12:12.679520151 +0800 @@ -1,4 +1,4 @@ QA output created by 623 wrote 4096/4096 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -fsync: Input/output error +XFS_IOC_GOINGDOWN: Inappropriate ioctl for device ... (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/623.out /tmp/tone/run/xfstests/results//generic/623.out.bad' to see the entire diff) HINT: You _MAY_ be missing kernel fix: e4826691cc7e xfs: restore shutdown check in mapped write fault path Ran: generic/623 Failures: generic/623 Failed 1 of 1 tests [tone]Error: The return code of run() in run.sh is not 0 generic/623: Failed Test running: Done
alinux3 ANCK5.10-16版本测试依旧存在此问题 内核:5.10.134-16_rc1.al8 x86和aarch64 generic/623 3s ... - output mismatch (see /root/tone/run/xfstests/results//generic/623.out.bad) --- tests/generic/623.out 2023-10-12 10:19:04.366540894 +0800 +++ /root/tone/run/xfstests/results//generic/623.out.bad 2023-10-12 20:55:00.905425518 +0800 @@ -1,4 +1,4 @@ QA output created by 623 wrote 4096/4096 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -fsync: Input/output error +XFS_IOC_GOINGDOWN: Inappropriate ioctl for device ... (Run 'diff -u /root/tone/run/xfstests/tests/generic/623.out /root/tone/run/xfstests/results//generic/623.out.bad' to see the entire diff)
An23.1 6.6.25-2_rc1.an23.aarch64内核有相同问题, xfstests:ext4-2-overlay测试用例generic/623执行失败 [root@iZbp143ti4ccpaufkzata7Z xfstests]# ./check -overlay tests/generic/623 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/623 2s ... - output mismatch (see /root/tone/run/xfstests/results//generic/623.out.bad) --- tests/generic/623.out 2024-04-19 15:32:10.307549720 +0800 +++ /root/tone/run/xfstests/results//generic/623.out.bad 2024-05-08 15:13:09.318844767 +0800 @@ -1,4 +1,4 @@ QA output created by 623 wrote 4096/4096 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -fsync: Input/output error +XFS_IOC_GOINGDOWN: Inappropriate ioctl for device ... (Run 'diff -u /root/tone/run/xfstests/tests/generic/623.out /root/tone/run/xfstests/results//generic/623.out.bad' to see the entire diff) HINT: You _MAY_ be missing kernel fix: e4826691cc7e xfs: restore shutdown check in mapped write fault path Ran: generic/623 Failures: generic/623 Failed 1 of 1 tests 与预期不符内容 ‘|’前面为预期输出,后面为实际输出 fsync: Input/output error | XFS_IOC_GOINGDOWN: Inappropriate ioctl for device [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
An23.1 6.6.25-2_rc1.an23.x86_64环境有相同问题 xfstests:ext4-2-overlay测试用例generic/623执行失败 [root@iZbp1c9jzchxjqive233ufZ xfstests]# ./check -overlay tests/generic/623 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/623 2s ... - output mismatch (see /root/tone/run/xfstests/results//generic/623.out.bad) --- tests/generic/623.out 2024-05-07 14:36:14.533425553 +0800 +++ /root/tone/run/xfstests/results//generic/623.out.bad 2024-05-11 14:31:11.324976916 +0800 @@ -1,4 +1,4 @@ QA output created by 623 wrote 4096/4096 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -fsync: Input/output error +XFS_IOC_GOINGDOWN: Inappropriate ioctl for device ... (Run 'diff -u /root/tone/run/xfstests/tests/generic/623.out /root/tone/run/xfstests/results//generic/623.out.bad' to see the entire diff) HINT: You _MAY_ be missing kernel fix: e4826691cc7e xfs: restore shutdown check in mapped write fault path Ran: generic/623 Failures: generic/623 Failed 1 of 1 tests -----实际输出----- [root@iZbp1c9jzchxjqive233ufZ xfstests]# cat /root/tone/run/xfstests/results//generic/623.out.bad QA output created by 623 wrote 4096/4096 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) XFS_IOC_GOINGDOWN: Inappropriate ioctl for device -----预期输出----- [root@iZbp1c9jzchxjqive233ufZ xfstests]# cat /root/tone/run/xfstests/tests/generic/623.out QA output created by 623 wrote 4096/4096 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) fsync: Input/output error [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
在alinux3 6.6.71-3_rc1.al8.x86_64内核版本上也存在该问题: generic/623 1s ... - output mismatch (see /var/tmp/tone/run/xfstests/results//generic/623.out.bad) --- tests/generic/623.out 2025-03-03 23:23:37.582671988 +0800 +++ /var/tmp/tone/run/xfstests/results//generic/623.out.bad 2025-03-05 18:16:43.045373689 +0800 @@ -1,4 +1,4 @@ QA output created by 623 wrote 4096/4096 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -fsync: Input/output error +XFS_IOC_GOINGDOWN: Inappropriate ioctl for device ... (Run 'diff -u /var/tmp/tone/run/xfstests/tests/generic/623.out /var/tmp/tone/run/xfstests/results//generic/623.out.bad' to see the entire diff) HINT: You _MAY_ be missing kernel fix: e4826691cc7e xfs: restore shutdown check in mapped write fault path