Bug 28972 - [ANCK-6.6.102-5.2.1_rc1][riscv64][anolis23.3]ltp net.nfs 中用例nfs09_v30_ip4t、nfs09_v30_ip6t失败,报错:TFAIL: Wrong file contents, expected 'File truncated', got 'File truncated not'
Summary: [ANCK-6.6.102-5.2.1_rc1][riscv64][anolis23.3]ltp net.nfs 中用例nfs09_v30_ip4t、nf...
Status: NEW
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: riscv Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: feynmang
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-29 17:23 UTC by wangxiaorou92
Modified: 2025-12-29 17:32 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wangxiaorou92 alibaba_cloud_group 2025-12-29 17:23:01 UTC
【问题描述】
ltp net.nfs 中用例nfs09_v30_ip4t、nfs09_v30_ip6t失败,报错:TFAIL: Wrong file contents, expected 'File truncated', got 'File truncated not'

日志如下:
<<<test_start>>>
tag=nfs09_v30_ip6t stime=1766080864
cmdline="nfs09.sh -6 -v 3 -t tcp"
contacts=""
analysis=exit
<<<test_output>>>
nfs09 1 TINFO: Running: nfs09.sh -6 -v 3 -t tcp
nfs09 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface
nfs09 1 TINFO: add local addr 10.0.0.2/24
nfs09 1 TINFO: add local addr fd00:1:1:1::2/64
nfs09 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface
nfs09 1 TINFO: add remote addr 10.0.0.1/24
nfs09 1 TINFO: add remote addr fd00:1:1:1::1/64
nfs09 1 TINFO: Network config (local -- remote):
nfs09 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1
nfs09 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24
nfs09 1 TINFO: fd00:1:1:1::2/64 -- fd00:1:1:1::1/64
tst_device.c:96: TINFO: Found free device 1 '/dev/loop1'
tst_supported_fs_types.c:169: TINFO: Skipping ext2 as requested by the test
tst_supported_fs_types.c:169: TINFO: Skipping ext3 as requested by the test
tst_supported_fs_types.c:97: TINFO: Kernel supports ext4
tst_supported_fs_types.c:62: TINFO: mkfs.ext4 does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports xfs
tst_supported_fs_types.c:62: TINFO: mkfs.xfs does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports btrfs
tst_supported_fs_types.c:58: TINFO: mkfs.btrfs does not exist
tst_supported_fs_types.c:105: TINFO: Skipping bcachefs because of FUSE blacklist
tst_supported_fs_types.c:169: TINFO: Skipping vfat as requested by the test
tst_supported_fs_types.c:169: TINFO: Skipping exfat as requested by the test
tst_supported_fs_types.c:169: TINFO: Skipping ntfs as requested by the test
tst_supported_fs_types.c:169: TINFO: Skipping tmpfs as requested by the test
nfs09 1 TINFO: === Testing on ext4 ===
nfs09 1 TINFO: Formatting ext4 with opts='/dev/loop1'
nfs09 1 TINFO: Mounting device: mount -t ext4 /dev/loop1 /tmp/ltp-ps108J3aYh/LTP_nfs09.WLWakCIcrF/mntpoint 
nfs09 1 TINFO: timeout per run is 0h 15m 0s
nfs09 1 TINFO: mount.nfs: (linux nfs-utils 2.6.3)
nfs09 1 TINFO: setup NFSv3, socket type tcp6
nfs09 1 TINFO: Mounting /tmp/ltp-ps108J3aYh/LTP_nfs09.WLWakCIcrF/3/0
nfs09 1 TINFO: Mounting NFS: mount -v -t nfs -o proto=tcp6,vers=3 [fd00:1:1:1::2]:/tmp/ltp-ps108J3aYh/LTP_nfs09.WLWakCIcrF/mntpoint/3/tcp6 /tmp/ltp-ps108J3aYh/LTP_nfs09.WLWakCIcrF/3/0
nfs09 1 TPASS: ls -l 'testfile' failed as expected
nfs09 1 TFAIL: Wrong file contents, expected 'File truncated', got 'File truncated not'
nfs09 2 TINFO: Cleaning up testcase
nfs09 2 TINFO: Unmounting /tmp/ltp-ps108J3aYh/LTP_nfs09.WLWakCIcrF/3/0
nfs09 2 TINFO: === Testing on xfs ===
nfs09 2 TINFO: Formatting xfs with opts='/dev/loop1'
nfs09 2 TINFO: Mounting device: mount -t xfs /dev/loop1 /tmp/ltp-ps108J3aYh/LTP_nfs09.WLWakCIcrF/mntpoint 
nfs09 2 TINFO: timeout per run is 0h 15m 0s
nfs09 2 TINFO: mount.nfs: (linux nfs-utils 2.6.3)
nfs09 2 TINFO: setup NFSv3, socket type tcp6
nfs09 2 TINFO: Mounting /tmp/ltp-ps108J3aYh/LTP_nfs09.WLWakCIcrF/3/0
nfs09 2 TINFO: Mounting NFS: mount -v -t nfs -o proto=tcp6,vers=3 [fd00:1:1:1::2]:/tmp/ltp-ps108J3aYh/LTP_nfs09.WLWakCIcrF/mntpoint/3/tcp6 /tmp/ltp-ps108J3aYh/LTP_nfs09.WLWakCIcrF/3/0
nfs09 2 TPASS: ls -l 'testfile' failed as expected
nfs09 2 TFAIL: Wrong file contents, expected 'File truncated', got 'File truncated not'
nfs09 3 TINFO: Cleaning up testcase
nfs09 3 TINFO: Unmounting /tmp/ltp-ps108J3aYh/LTP_nfs09.WLWakCIcrF/3/0

Summary:
passed   2
failed   2
broken   0
skipped  0
warnings 0

<<<test_start>>>
tag=nfs09_v30_ip4t stime=1766080817
cmdline="nfs09.sh -v 3 -t tcp"
contacts=""
analysis=exit
<<<test_output>>>
nfs09 1 TINFO: Running: nfs09.sh -v 3 -t tcp
nfs09 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface
nfs09 1 TINFO: add local addr 10.0.0.2/24
nfs09 1 TINFO: add local addr fd00:1:1:1::2/64
nfs09 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface
nfs09 1 TINFO: add remote addr 10.0.0.1/24
nfs09 1 TINFO: add remote addr fd00:1:1:1::1/64
nfs09 1 TINFO: Network config (local -- remote):
nfs09 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1
nfs09 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24
nfs09 1 TINFO: fd00:1:1:1::2/64 -- fd00:1:1:1::1/64
tst_device.c:96: TINFO: Found free device 1 '/dev/loop1'
tst_supported_fs_types.c:169: TINFO: Skipping ext2 as requested by the test
tst_supported_fs_types.c:169: TINFO: Skipping ext3 as requested by the test
tst_supported_fs_types.c:97: TINFO: Kernel supports ext4
tst_supported_fs_types.c:62: TINFO: mkfs.ext4 does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports xfs
tst_supported_fs_types.c:62: TINFO: mkfs.xfs does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports btrfs
tst_supported_fs_types.c:58: TINFO: mkfs.btrfs does not exist
tst_supported_fs_types.c:105: TINFO: Skipping bcachefs because of FUSE blacklist
tst_supported_fs_types.c:169: TINFO: Skipping vfat as requested by the test
tst_supported_fs_types.c:169: TINFO: Skipping exfat as requested by the test
tst_supported_fs_types.c:169: TINFO: Skipping ntfs as requested by the test
tst_supported_fs_types.c:169: TINFO: Skipping tmpfs as requested by the test
nfs09 1 TINFO: === Testing on ext4 ===
nfs09 1 TINFO: Formatting ext4 with opts='/dev/loop1'
nfs09 1 TINFO: Mounting device: mount -t ext4 /dev/loop1 /tmp/ltp-ps108J3aYh/LTP_nfs09.akuRsf6wSQ/mntpoint 
nfs09 1 TINFO: timeout per run is 0h 15m 0s
nfs09 1 TINFO: mount.nfs: (linux nfs-utils 2.6.3)
nfs09 1 TINFO: setup NFSv3, socket type tcp
nfs09 1 TINFO: Mounting /tmp/ltp-ps108J3aYh/LTP_nfs09.akuRsf6wSQ/3/0
nfs09 1 TINFO: Mounting NFS: mount -v -t nfs -o proto=tcp,vers=3 10.0.0.2:/tmp/ltp-ps108J3aYh/LTP_nfs09.akuRsf6wSQ/mntpoint/3/tcp /tmp/ltp-ps108J3aYh/LTP_nfs09.akuRsf6wSQ/3/0
nfs09 1 TPASS: ls -l 'testfile' failed as expected
nfs09 1 TFAIL: Wrong file contents, expected 'File truncated', got 'File truncated not'
nfs09 2 TINFO: Cleaning up testcase
nfs09 2 TINFO: Unmounting /tmp/ltp-ps108J3aYh/LTP_nfs09.akuRsf6wSQ/3/0
nfs09 2 TINFO: === Testing on xfs ===
nfs09 2 TINFO: Formatting xfs with opts='/dev/loop1'
nfs09 2 TINFO: Mounting device: mount -t xfs /dev/loop1 /tmp/ltp-ps108J3aYh/LTP_nfs09.akuRsf6wSQ/mntpoint 
nfs09 2 TINFO: timeout per run is 0h 15m 0s
nfs09 2 TINFO: mount.nfs: (linux nfs-utils 2.6.3)
nfs09 2 TINFO: setup NFSv3, socket type tcp
nfs09 2 TINFO: Mounting /tmp/ltp-ps108J3aYh/LTP_nfs09.akuRsf6wSQ/3/0
nfs09 2 TINFO: Mounting NFS: mount -v -t nfs -o proto=tcp,vers=3 10.0.0.2:/tmp/ltp-ps108J3aYh/LTP_nfs09.akuRsf6wSQ/mntpoint/3/tcp /tmp/ltp-ps108J3aYh/LTP_nfs09.akuRsf6wSQ/3/0
nfs09 2 TPASS: ls -l 'testfile' failed as expected
nfs09 2 TFAIL: Wrong file contents, expected 'File truncated', got 'File truncated not'
nfs09 3 TINFO: Cleaning up testcase
nfs09 3 TINFO: Unmounting /tmp/ltp-ps108J3aYh/LTP_nfs09.akuRsf6wSQ/3/0

Summary:
passed   2
failed   2
broken   0
skipped  0
warnings 0

【重新概率】
必现

【环境信息】
[root@localhost anuser]# uname -a
Linux localhost.localdomain 6.6.102-5.2.1_rc1.an23.riscv64 #1 SMP PREEMPT_DYNAMIC Tue Dec 16 04:26:06 EST 2025 riscv64 riscv64 riscv64 GNU/Linux
[root@localhost anuser]# grubby --info=$(grubby --default-kernel)
index=0
kernel="/boot/vmlinuz-6.6.102-5.2.1_rc1.an23.riscv64"
args="ro console=ttyS0,115200 root=LABEL=ROOT rootfstype=ext4 rootwait rw earlycon selinux=0 LANG=en_US.UTF-8 nvme.use_threaded_interrupts=1 nvme_core.io_timeout=3000 audit=0 per_numa_node_futex=disable"
root="UUID=e297bfa3-2c55-44f8-90cb-ae8eb642d188"
initrd="/boot/initramfs-6.6.102-5.2.1_rc1.an23.riscv64.img"
title="Anolis OS (6.6.102-5.2.1_rc1.an23.riscv64) 23.3"
id="934f52b3285c4e3f930c74e63b821b67-6.6.102-5.2.1_rc1.an23.riscv64"
[root@localhost anuser]# cat /proc/cmdline
root=UUID=e297bfa3-2c55-44f8-90cb-ae8eb642d188 ro console=ttyS0,115200 root=LABEL=ROOT rootfstype=ext4 rootwait rw earlycon selinux=0 LANG=en_US.UTF-8 nvme.use_threaded_interrupts=1 nvme_core.io_timeout=3000 audit=0 per_numa_node_futex=disable
[root@localhost anuser]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23.3"
ID="anolis"
VERSION_ID="23.3"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23.3"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"
[root@localhost anuser]# lscpu
Architecture:          riscv64
  Byte Order:          Little Endian
CPU(s):                64
  On-line CPU(s) list: 0-63
NUMA:
  NUMA node(s):        4
  NUMA node0 CPU(s):   0-7,16-23
  NUMA node1 CPU(s):   8-15,24-31
  NUMA node2 CPU(s):   32-39,48-55
  NUMA node3 CPU(s):   40-47,56-63
[root@localhost anuser]# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 953.9G  0 disk
├─nvme0n1p1 259:1    0 121.9M  0 part /boot/efi
├─nvme0n1p2 259:2    0   488M  0 part /boot
├─nvme0n1p3 259:3    0 143.1G  0 part /
├─nvme0n1p4 259:4    0     1K  0 part
├─nvme0n1p5 259:5    0 286.1G  0 part
└─nvme0n1p6 259:6    0 286.1G  0 part
[root@localhost anuser]# df -hT
Filesystem                                                                 Type      Size  Used Avail Use% Mounted on
/dev/nvme0n1p3                                                             ext4      141G   54G   81G  41% /
devtmpfs                                                                   devtmpfs  4.0M     0  4.0M   0% /dev
tmpfs                                                                      tmpfs      31G     0   31G   0% /dev/shm
tmpfs                                                                      tmpfs      13G  680K   13G   1% /run
tmpfs                                                                      tmpfs      31G  9.1M   31G   1% /tmp
/dev/nvme0n1p2                                                             ext4      448M  197M  222M  48% /boot
/dev/nvme0n1p1                                                             vfat      122M   47M   75M  39% /boot/efi
tmpfs                                                                      tmpfs     6.2G   16K  6.2G   1% /run/user/1000


【复现步骤】
#内核包:
http://8.131.87.1/kojifiles/repos/dist-an23.3-riscv64-gcc14-build/latest/riscv64/toplink/work/tasks/5939/1035939/
#获取ltp源码并编译
git clone http://code.alibaba-inc.com/alikernel/ltp.git --branch Ali6000
export CFLAGS="-fcommon"  
cd ltp
make autotools
make
make install
cd /opt/ltp
#执行用例
./runltp -f net.nfs -s  nfs09_v30_ip4t、nfs09_v30_ip6t

【实际结果】
ltp nfs09_v30_ip4t、nfs09_v30_ip6t 用例运行fail

【预期结果】
ltp nfs09_v30_ip4t、nfs09_v30_ip6t 用例运行pass
Comment 1 wangxiaorou92 alibaba_cloud_group 2025-12-29 17:23:56 UTC
相关bug结论为 won't fix:
https://bugzilla.openanolis.cn/show_bug.cgi?id=8855