【问题描述】 ltp cpuhotplug04 用例运行卡住很久导致超时[ANCK-6.6.102-5.2.1_rc1][riscv64][anolis23.3]ltp net.nfs 中用例 nfslock01_v30_ip4t、nfslock01_v30_ip6t失败,报错 TFAIL: nfs_lock process failed 运行日志如下: <<<test_start>>> tag=nfslock01_v30_ip4t stime=1766080915 cmdline="nfslock01.sh -v 3 -t tcp" contacts="" analysis=exit <<<test_output>>> nfslock01 1 TINFO: Running: nfslock01.sh -v 3 -t tcp nfslock01 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface nfslock01 1 TINFO: add local addr 10.0.0.2/24 nfslock01 1 TINFO: add local addr fd00:1:1:1::2/64 nfslock01 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface nfslock01 1 TINFO: add remote addr 10.0.0.1/24 nfslock01 1 TINFO: add remote addr fd00:1:1:1::1/64 nfslock01 1 TINFO: Network config (local -- remote): nfslock01 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1 nfslock01 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24 nfslock01 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 nfslock01 1 TINFO: === Testing on ext4 === nfslock01 1 TINFO: Formatting ext4 with opts='/dev/loop1' nfslock01 1 TINFO: Mounting device: mount -t ext4 /dev/loop1 /tmp/ltp-ps108J3aYh/LTP_nfslock01.H7dTDjlZAi/mntpoint nfslock01 1 TINFO: timeout per run is 0h 15m 0s nfslock01 1 TINFO: mount.nfs: (linux nfs-utils 2.6.3) nfslock01 1 TINFO: setup NFSv3, socket type tcp nfslock01 1 TINFO: Mounting /tmp/ltp-ps108J3aYh/LTP_nfslock01.H7dTDjlZAi/3/0 nfslock01 1 TINFO: Mounting NFS: mount -v -t nfs -o proto=tcp,vers=3 10.0.0.2:/tmp/ltp-ps108J3aYh/LTP_nfslock01.H7dTDjlZAi/mntpoint/3/tcp /tmp/ltp-ps108J3aYh/LTP_nfslock01.H7dTDjlZAi/3/0 nfslock01 1 TINFO: creating test files (chars: 64, lines: 16384) nfslock01 1 TINFO: Testing locking nfslock01 1 TINFO: locking 'flock_idata' file and writing data nfslock01 1 TINFO: waiting for pids: 1751648 1751649 failed in writeb_lock, errno = 37 failed in writeb_lock, errno = 37 nfslock01 1 TFAIL: nfs_lock process failed nfslock01 2 TINFO: Cleaning up testcase nfslock01 2 TINFO: Unmounting /tmp/ltp-ps108J3aYh/LTP_nfslock01.H7dTDjlZAi/3/0 nfslock01 2 TINFO: === Testing on xfs === nfslock01 2 TINFO: Formatting xfs with opts='/dev/loop1' nfslock01 2 TINFO: Mounting device: mount -t xfs /dev/loop1 /tmp/ltp-ps108J3aYh/LTP_nfslock01.H7dTDjlZAi/mntpoint nfslock01 2 TINFO: timeout per run is 0h 15m 0s nfslock01 2 TINFO: mount.nfs: (linux nfs-utils 2.6.3) nfslock01 2 TINFO: setup NFSv3, socket type tcp nfslock01 2 TINFO: Mounting /tmp/ltp-ps108J3aYh/LTP_nfslock01.H7dTDjlZAi/3/0 nfslock01 2 TINFO: Mounting NFS: mount -v -t nfs -o proto=tcp,vers=3 10.0.0.2:/tmp/ltp-ps108J3aYh/LTP_nfslock01.H7dTDjlZAi/mntpoint/3/tcp /tmp/ltp-ps108J3aYh/LTP_nfslock01.H7dTDjlZAi/3/0 nfslock01 2 TINFO: creating test files (chars: 64, lines: 16384) nfslock01 2 TINFO: Testing locking nfslock01 2 TINFO: locking 'flock_idata' file and writing data nfslock01 2 TINFO: waiting for pids: 1751741 1751742 failed in writeb_lock, errno = 37 nfslock01 2 TFAIL: nfs_lock process failed failed in writeb_lock, errno = 37 nfslock01 3 TINFO: Cleaning up testcase nfslock01 3 TINFO: Unmounting /tmp/ltp-ps108J3aYh/LTP_nfslock01.H7dTDjlZAi/3/0 Summary: passed 0 failed 2 broken 0 skipped 0 warnings 0 <<<test_start>>> tag=nfslock01_v30_ip6t stime=1766081050 cmdline="nfslock01.sh -6 -v 3 -t tcp" contacts="" analysis=exit <<<test_output>>> nfslock01 1 TINFO: Running: nfslock01.sh -6 -v 3 -t tcp nfslock01 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface nfslock01 1 TINFO: add local addr 10.0.0.2/24 nfslock01 1 TINFO: add local addr fd00:1:1:1::2/64 nfslock01 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface nfslock01 1 TINFO: add remote addr 10.0.0.1/24 nfslock01 1 TINFO: add remote addr fd00:1:1:1::1/64 nfslock01 1 TINFO: Network config (local -- remote): nfslock01 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1 nfslock01 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24 nfslock01 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 nfslock01 1 TINFO: === Testing on ext4 === nfslock01 1 TINFO: Formatting ext4 with opts='/dev/loop1' nfslock01 1 TINFO: Mounting device: mount -t ext4 /dev/loop1 /tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/mntpoint nfslock01 1 TINFO: timeout per run is 0h 15m 0s nfslock01 1 TINFO: mount.nfs: (linux nfs-utils 2.6.3) nfslock01 1 TINFO: setup NFSv3, socket type tcp6 nfslock01 1 TINFO: Mounting /tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/3/0 nfslock01 1 TINFO: Mounting NFS: mount -v -t nfs -o proto=tcp6,vers=3 [fd00:1:1:1::2]:/tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/mntpoint/3/tcp6 /tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/3/0 nfslock01 1 TINFO: creating test files (chars: 64, lines: 16384) nfslock01 1 TINFO: Testing locking nfslock01 1 TINFO: locking 'flock_idata' file and writing data nfslock01 1 TINFO: waiting for pids: 1753779 1753780 failed in writeb_lock, errno = 37 nfslock01 1 TFAIL: nfs_lock process failed nfslock01 2 TINFO: Cleaning up testcase nfslock01 2 TINFO: Unmounting /tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/3/0 umount.nfs: /tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/3/0: device is busy nfslock01 2 TWARN: Unmount failed failed in writeb_lock, errno = 37 nfslock01 2 TINFO: === Testing on xfs === nfslock01 2 TINFO: Formatting xfs with opts='/dev/loop1' nfslock01 2 TINFO: Mounting device: mount -t xfs /dev/loop1 /tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/mntpoint nfslock01 2 TINFO: timeout per run is 0h 15m 0s nfslock01 2 TINFO: mount.nfs: (linux nfs-utils 2.6.3) nfslock01 2 TINFO: setup NFSv3, socket type tcp6 nfslock01 2 TINFO: Mounting /tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/3/0 nfslock01 2 TINFO: Mounting NFS: mount -v -t nfs -o proto=tcp6,vers=3 [fd00:1:1:1::2]:/tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/mntpoint/3/tcp6 /tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/3/0 nfslock01 2 TINFO: creating test files (chars: 64, lines: 16384) nfslock01 2 TINFO: Testing locking nfslock01 2 TINFO: locking 'flock_idata' file and writing data nfslock01 2 TINFO: waiting for pids: 1753867 1753868 failed in writeb_lock, errno = 37 nfslock01 2 TFAIL: nfs_lock process failed nfslock01 3 TINFO: Cleaning up testcase nfslock01 3 TINFO: Unmounting /tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/3/0 umount.nfs: /tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/3/0: device is busy nfslock01 3 TWARN: Unmount failed failed in writeb_lock, errno = 37 rm: cannot remove '/tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/3/0': Is a directory rm: cannot remove '/tmp/ltp-ps108J3aYh/LTP_nfslock01.77V3CnoMDA/3/0': Is a directory Summary: passed 0 failed 2 broken 0 skipped 0 warnings 2 【重新概率】 必现 【环境信息】 [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 cpuhotplug -s nfslock01_v30_ip4t ./runltp -f cpuhotplug -s nfslock01_v30_ip6t [ANCK-6.6.102-5.2.1_rc1][riscv64][anolis23.3]ltp net.nfs 中用例 nfslock01_v30_ip4t、nfslock01_v30_ip6t失败,报错 TFAIL: nfs_lock process failed 【实际结果】 ltp net.nfs 中用例 nfslock01_v30_ip4t、nfslock01_v30_ip6t 运行fail 【预期结果】 ltp net.nfs 中用例 nfslock01_v30_ip4t、nfslock01_v30_ip6t 运行pass
相关bug结论为later: https://bugzilla.openanolis.cn/show_bug.cgi?id=8862