Description of problem: kernel-selftest测试套net.pmtu.sh用例执行fail,日志如下: # ./pmtu.sh TEST: ipv4: PMTU exceptions [ OK ] TEST: ipv4: PMTU exceptions - nexthop objects [ OK ] TEST: ipv6: PMTU exceptions [ OK ] TEST: ipv6: PMTU exceptions - nexthop objects [ OK ] TEST: IPv4 over vxlan4: PMTU exceptions [ OK ] TEST: IPv4 over vxlan4: PMTU exceptions - nexthop objects [ OK ] TEST: IPv6 over vxlan4: PMTU exceptions [ OK ] TEST: IPv6 over vxlan4: PMTU exceptions - nexthop objects [ OK ] TEST: IPv4 over vxlan6: PMTU exceptions [ OK ] TEST: IPv4 over vxlan6: PMTU exceptions - nexthop objects [ OK ] TEST: IPv6 over vxlan6: PMTU exceptions [ OK ] TEST: IPv6 over vxlan6: PMTU exceptions - nexthop objects [ OK ] TEST: IPv4 over geneve4: PMTU exceptions [ OK ] TEST: IPv4 over geneve4: PMTU exceptions - nexthop objects [ OK ] TEST: IPv6 over geneve4: PMTU exceptions [ OK ] TEST: IPv6 over geneve4: PMTU exceptions - nexthop objects [ OK ] TEST: IPv4 over geneve6: PMTU exceptions [ OK ] TEST: IPv4 over geneve6: PMTU exceptions - nexthop objects [ OK ] TEST: IPv6 over geneve6: PMTU exceptions [ OK ] TEST: IPv6 over geneve6: PMTU exceptions - nexthop objects [ OK ] TEST: IPv4, bridged vxlan4: PMTU exceptions [ OK ] TEST: IPv4, bridged vxlan4: PMTU exceptions - nexthop objects [ OK ] TEST: IPv6, bridged vxlan4: PMTU exceptions [ OK ] TEST: IPv6, bridged vxlan4: PMTU exceptions - nexthop objects [ OK ] TEST: IPv4, bridged vxlan6: PMTU exceptions [ OK ] TEST: IPv4, bridged vxlan6: PMTU exceptions - nexthop objects [ OK ] TEST: IPv6, bridged vxlan6: PMTU exceptions [ OK ] TEST: IPv6, bridged vxlan6: PMTU exceptions - nexthop objects [ OK ] TEST: IPv4, bridged geneve4: PMTU exceptions [ OK ] TEST: IPv4, bridged geneve4: PMTU exceptions - nexthop objects [ OK ] TEST: IPv6, bridged geneve4: PMTU exceptions [ OK ] TEST: IPv6, bridged geneve4: PMTU exceptions - nexthop objects [ OK ] TEST: IPv4, bridged geneve6: PMTU exceptions [ OK ] TEST: IPv4, bridged geneve6: PMTU exceptions - nexthop objects [ OK ] TEST: IPv6, bridged geneve6: PMTU exceptions [ OK ] TEST: IPv6, bridged geneve6: PMTU exceptions - nexthop objects [ OK ] ovs_bridge not supported TEST: IPv4, OVS vxlan4: PMTU exceptions [SKIP] ovs_bridge not supported TEST: IPv6, OVS vxlan4: PMTU exceptions [SKIP] ovs_bridge not supported TEST: IPv4, OVS vxlan6: PMTU exceptions [SKIP] ovs_bridge not supported TEST: IPv6, OVS vxlan6: PMTU exceptions [SKIP] ovs_bridge not supported TEST: IPv4, OVS geneve4: PMTU exceptions [SKIP] ovs_bridge not supported TEST: IPv6, OVS geneve4: PMTU exceptions [SKIP] ovs_bridge not supported TEST: IPv4, OVS geneve6: PMTU exceptions [SKIP] ovs_bridge not supported TEST: IPv6, OVS geneve6: PMTU exceptions [SKIP] modprobe: FATAL: Module fou not found in directory /lib/modules/5.10.134-264.git.53f303a6c3fa.an8.aarch64 fou44 not supported TEST: IPv4 over fou4: PMTU exceptions [SKIP] modprobe: FATAL: Module fou not found in directory /lib/modules/5.10.134-264.git.53f303a6c3fa.an8.aarch64 fou46 not supported TEST: IPv6 over fou4: PMTU exceptions [SKIP] modprobe: FATAL: Module fou6 not found in directory /lib/modules/5.10.134-264.git.53f303a6c3fa.an8.aarch64 fou64 not supported TEST: IPv4 over fou6: PMTU exceptions [SKIP] modprobe: FATAL: Module fou6 not found in directory /lib/modules/5.10.134-264.git.53f303a6c3fa.an8.aarch64 fou66 not supported TEST: IPv6 over fou6: PMTU exceptions [SKIP] modprobe: FATAL: Module fou not found in directory /lib/modules/5.10.134-264.git.53f303a6c3fa.an8.aarch64 gue44 not supported TEST: IPv4 over gue4: PMTU exceptions [SKIP] modprobe: FATAL: Module fou not found in directory /lib/modules/5.10.134-264.git.53f303a6c3fa.an8.aarch64 gue46 not supported TEST: IPv6 over gue4: PMTU exceptions [SKIP] modprobe: FATAL: Module fou6 not found in directory /lib/modules/5.10.134-264.git.53f303a6c3fa.an8.aarch64 gue64 not supported TEST: IPv4 over gue6: PMTU exceptions [SKIP] modprobe: FATAL: Module fou6 not found in directory /lib/modules/5.10.134-264.git.53f303a6c3fa.an8.aarch64 gue66 not supported TEST: IPv6 over gue6: PMTU exceptions [SKIP] TEST: IPv4 over IPv4: PMTU exceptions [ OK ] TEST: IPv4 over IPv4: PMTU exceptions - nexthop objects [ OK ] TEST: IPv6 over IPv4: PMTU exceptions [ OK ] TEST: IPv6 over IPv4: PMTU exceptions - nexthop objects [ OK ] TEST: IPv4 over IPv6: PMTU exceptions [ OK ] TEST: IPv4 over IPv6: PMTU exceptions - nexthop objects [ OK ] TEST: IPv6 over IPv6: PMTU exceptions [ OK ] TEST: IPv6 over IPv6: PMTU exceptions - nexthop objects [ OK ] TEST: vti6: PMTU exceptions [ OK ] TEST: vti4: PMTU exceptions [ OK ] TEST: vti4: default MTU assignment [ OK ] TEST: vti6: default MTU assignment [ OK ] TEST: vti4: MTU setting on link creation [ OK ] TEST: vti6: MTU setting on link creation [ OK ] TEST: vti6: MTU changes on link changes [ OK ] TEST: ipv4: cleanup of cached exceptions [ OK ] TEST: ipv4: cleanup of cached exceptions - nexthop objects [ OK ] TEST: ipv6: cleanup of cached exceptions [ OK ] TEST: ipv6: cleanup of cached exceptions - nexthop objects [FAIL] can't delete veth device in a timely manner, PMTU dst likely leaked TEST: ipv4: list and flush cached exceptions [ OK ] TEST: ipv4: list and flush cached exceptions - nexthop objects [ OK ] TEST: ipv6: list and flush cached exceptions [ OK ] TEST: ipv6: list and flush cached exceptions - nexthop objects [ OK ] TEST: ipv4: PMTU exception w/route replace [ OK ] TEST: ipv4: PMTU exception w/route replace - nexthop objects [ OK ] TEST: ipv6: PMTU exception w/route replace [ OK ] TEST: ipv6: PMTU exception w/route replace - nexthop objects [ OK ] 版本信息: [root@qibo-anolis8-nightly-func-arm-4 ~]# uname -r 5.10.134-264.git.53f303a6c3fa.an8.aarch64 [root@qibo-anolis8-nightly-func-arm-4 ~]# 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/" [root@qibo-anolis8-nightly-func-arm-4 ~]# free -h total used free shared buff/cache available Mem: 15Gi 229Mi 14Gi 11Mi 570Mi 14Gi Swap: 0B 0B 0B [root@qibo-anolis8-nightly-func-arm-4 ~]# 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): 1 Cluster(s): 1 NUMA node(s): 1 Vendor ID: ARM BIOS Vendor ID: Alibaba Cloud Model: 1 Model name: Neoverse-N1 BIOS Model name: virt-rhel7.6.0 Stepping: r3p1 BogoMIPS: 50.00 NUMA node0 CPU(s): 0-3 Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs Version-Release number of selected component (if applicable): How reproducible: 必现 Steps to Reproduce: 下载当前内核 对应的kernel*src.rpm, rpm -ivh kernel*.src.rpm which yum-builddep || yum install -y yum-utils which rpmbuild || yum install -y rpm-build yum-builddep -y $rpmbuild_dir/SPECS/kernel.spec rpmbuild -bp $rpmbuild_dir/SPECS/kernel.spec cd /root/rpmbuild/BUILD/kernel*/linux*/tools/testing/selftests/net ./pmtu.sh Actual results: 用例执行通过 Expected results: 用例执行失败 Additional info: 已知问题,可跳过 结论是: https://lore.kernel.org/all/1628651099.3998537-1-xuanzhuo@linux.alibaba.com/ 这个问题我提交到了社区但是一直没有进展. 是 ipv6 的设计问题导致的. 先纪录吧.
已知问题,可跳过 结论是: https://lore.kernel.org/all/1628651099.3998537-1-xuanzhuo@linux.alibaba.com/ 这个问题提交到了社区但是一直没有进展. 是 ipv6 的设计问题导致的. 先纪录吧.
veth删除功能的时效性不能满足用例要求,将测试用例中的'sleep 1' --> 'sleep 3'后测试用例可通过,且不影响功能问题。经过验证,在英特尔、倚天机型上有类似问题,故判断测试用例设计的合理性存在问题,故降低问题优先级
Anolis23 x86虚拟机环境,社区nightly kernel-selftests测试该case有相同问题 ------------ [root@qibo-anolis23-nightly-func-x86-1 net]# ./pmtu.sh TEST: vti4: MTU setting on link creation [ OK ] TEST: vti6: MTU setting on link creation [ OK ] TEST: vti6: MTU changes on link changes [ OK ] TEST: ipv4: cleanup of cached exceptions [ OK ] TEST: ipv4: cleanup of cached exceptions - nexthop objects [ OK ] TEST: ipv6: cleanup of cached exceptions [ OK ] TEST: ipv6: cleanup of cached exceptions - nexthop objects [FAIL] can't delete veth device in a timely manner, PMTU dst likely leaked TEST: ipv4: list and flush cached exceptions [ OK ] TEST: ipv4: list and flush cached exceptions - nexthop objects [ OK ] TEST: ipv6: list and flush cached exceptions [ OK ] TEST: ipv6: list and flush cached exceptions - nexthop objects [ OK ] TEST: ipv4: PMTU exception w/route replace [ OK ] TEST: ipv4: PMTU exception w/route replace - nexthop objects [ OK ] TEST: ipv6: PMTU exception w/route replace [ OK ] TEST: ipv6: PMTU exception w/route replace - nexthop objects [ OK ] [root@qibo-anolis23-nightly-func-x86-1 net]# echo $? 1 [root@qibo-anolis23-nightly-func-x86-1 net]# uname -r 5.10.134-1.git.2ed1510fd4be.an23.x86_64 [root@qibo-anolis23-nightly-func-x86-1 net]# cat /etc/anolis-release Anolis OS release 23