Bug 5593 - [Anolis 23][ANCK-5.10-15][rc1][aarch64]kernel-selftests测试套net.vrf-xfrm-tests.sh执行FAIL
Summary: [Anolis 23][ANCK-5.10-15][rc1][aarch64]kernel-selftests测试套net.vrf-xfrm-tests....
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: net (show other bugs) net
Version: 5.10.y-15
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: rc
Assignee: 宁畅
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-25 14:01 UTC by Banana
Modified: 2023-07-07 17:06 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Banana alibaba_cloud_group 2023-06-25 14:01:25 UTC
[问题描述]:kernel-selftests测试套net.vrf-xfrm-tests.sh执行FAIL

TAP version 13
1..1
# selftests: net: vrf-xfrm-tests.sh
#
# No qdisc on VRF device
# TEST: IPv4 no xfrm policy                                           [FAIL]
# TEST: IPv6 no xfrm policy                                           [FAIL]
# TEST: IPv4 xfrm policy based on address                             [FAIL]
# TEST: IPv6 xfrm policy based on address                             [FAIL]
# TEST: IPv6 xfrm policy with VRF in selector                         [FAIL]
# TEST: IPv4 xfrm policy with xfrm device                             [FAIL]
# TEST: IPv6 xfrm policy with xfrm device                             [FAIL]
#
# netem qdisc on VRF device
# TEST: IPv4 no xfrm policy                                           [FAIL]
# TEST: IPv6 no xfrm policy                                           [FAIL]
# TEST: IPv4 xfrm policy based on address                             [FAIL]
# TEST: IPv6 xfrm policy based on address                             [FAIL]
# TEST: IPv6 xfrm policy with VRF in selector                         [FAIL]
# TEST: IPv4 xfrm policy with xfrm device                             [FAIL]
# TEST: IPv6 xfrm policy with xfrm device                             [FAIL]
#
# Tests passed:   0
# Tests failed:  14
not ok 1 selftests: net: vrf-xfrm-tests.sh # exit=1


[环境信息]:
机器类型:ECS

[内核信息]:
[root@iZbp1ii1c5ncl3wps7jauwZ ~]# uname -r
5.10.134-15_rc1.an23.aarch64

[操作系统信息]:
[root@iZbp1ii1c5ncl3wps7jauwZ kernel-selftests]# 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@iZbp1ii1c5ncl3wps7jauwZ kernel-selftests]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.16.1.175  netmask 255.255.255.0  broadcast 172.16.1.255
        inet6 fe80::ff16:be8d:22f:71bf  prefixlen 64  scopeid 0x20<link>
        ether 00:16:3e:25:42:18  txqueuelen 1000  (Ethernet)
        RX packets 1396916  bytes 482089576 (459.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 925207  bytes 2122054677 (1.9 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 9858648  bytes 2722323000 (2.5 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 9858648  bytes 2722323000 (2.5 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ltp_ns_veth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.2  netmask 255.255.255.0  broadcast 0.0.0.0
        inet6 fe80::a804:c2ff:fe9d:549  prefixlen 64  scopeid 0x20<link>
        inet6 fd00:1:1:1::2  prefixlen 64  scopeid 0x0<global>
        ether aa:04:c2:9d:05:49  txqueuelen 1000  (Ethernet)
        RX packets 3600499  bytes 2182486850 (2.0 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3610426  bytes 2172429830 (2.0 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth-outside: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::e0aa:e9ff:fead:f837  prefixlen 64  scopeid 0x20<link>
        ether e2:aa:e9:ad:f8:37  txqueuelen 1000  (Ethernet)
        RX packets 108  bytes 7676 (7.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 109  bytes 7806 (7.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[问题发生概率]:
必现

[复现步骤]:
1、安装对应内核的kernel-selftests测试套
2、执行:
    ./run_kselftest.sh -t net.vrf-xfrm-tests.sh
3、查看执行结果
Comment 1 Banana alibaba_cloud_group 2023-06-25 14:04:30 UTC
An23 5.10 nightly arm环境执行pass
ok 41 selftests: net: txtimestamp.sh
# selftests: net: vrf-xfrm-tests.sh
# 
# No qdisc on VRF device
# TEST: IPv4 no xfrm policy                                           [ OK ]
# TEST: IPv6 no xfrm policy                                           [ OK ]
# TEST: IPv4 xfrm policy based on address                             [ OK ]
# TEST: IPv6 xfrm policy based on address                             [ OK ]
# TEST: IPv6 xfrm policy with VRF in selector                         [ OK ]
# TEST: IPv4 xfrm policy with xfrm device                             [ OK ]
# TEST: IPv6 xfrm policy with xfrm device                             [ OK ]
# 
# netem qdisc on VRF device
# TEST: IPv4 no xfrm policy                                           [ OK ]
# TEST: IPv6 no xfrm policy                                           [ OK ]
# TEST: IPv4 xfrm policy based on address                             [ OK ]
# TEST: IPv6 xfrm policy based on address                             [ OK ]
# TEST: IPv6 xfrm policy with VRF in selector                         [ OK ]
# TEST: IPv4 xfrm policy with xfrm device                             [ OK ]
# TEST: IPv6 xfrm policy with xfrm device                             [ OK ]
# 
# Tests passed:  14
# Tests failed:   0
ok 42 selftests: net: vrf-xfrm-tests.sh
Comment 2 yunmeng365524 2023-06-26 11:16:30 UTC
只有x86有问题,清帮忙确认一下这用例是不是跟架构相关
Comment 3 Banana alibaba_cloud_group 2023-06-26 11:34:00 UTC
换了一台g6r的ECS执行此case是pass的,FAIL的是倚天ECS,请研发帮忙确认是否与机型相关。

g6r机器信息:

[root@iZbp16r2fddn7wde4ano78Z ~]# uname -r
5.10.134-15_rc1.an23.aarch64

[root@iZbp16r2fddn7wde4ano78Z ~]# 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@iZbp16r2fddn7wde4ano78Z ~]# cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 50.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x3
CPU part        : 0xd0c
CPU revision    : 1
address sizes   : 48 bits physical, 48 bits virtual

processor       : 1
BogoMIPS        : 50.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x3
CPU part        : 0xd0c
CPU revision    : 1
address sizes   : 48 bits physical, 48 bits virtual

processor       : 2
BogoMIPS        : 50.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x3
CPU part        : 0xd0c
CPU revision    : 1
address sizes   : 48 bits physical, 48 bits virtual

processor       : 3
BogoMIPS        : 50.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x3
CPU part        : 0xd0c
CPU revision    : 1
address sizes   : 48 bits physical, 48 bits virtual

[root@iZbp16r2fddn7wde4ano78Z ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.16.3.6  netmask 255.255.255.0  broadcast 172.16.3.255
        inet6 fe80::3352:e44d:d8e4:1317  prefixlen 64  scopeid 0x20<link>
        ether 00:16:3e:26:36:fd  txqueuelen 1000  (Ethernet)
        RX packets 501288  bytes 514329082 (490.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 231087  bytes 236822204 (225.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 7046773  bytes 2425664653 (2.2 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7046773  bytes 2425664653 (2.2 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth-outside: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::e0aa:e9ff:fead:f837  prefixlen 64  scopeid 0x20<link>
        ether e2:aa:e9:ad:f8:37  txqueuelen 1000  (Ethernet)
        RX packets 36  bytes 2636 (2.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 38  bytes 2836 (2.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Comment 4 宁畅 alibaba_cloud_group 2023-07-07 17:06:47 UTC
怀疑这个测试需要某个虚拟设备,优先级比较低,暂时 delay。