Bug 4426 - [Anolis23][x86_64][社区nightly & ANCK-5.10-14-rc1] kernel-selftests测试case:net/devlink_port_split.py程序报错IndexError: list index out of range
Summary: [Anolis23][x86_64][社区nightly & ANCK-5.10-14-rc1] kernel-selftests测试case:net/d...
Status: RESOLVED DUPLICATE of bug 4435
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-07 18:19 UTC by anolislw
Modified: 2023-03-13 15:11 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anolislw alibaba_cloud_group 2023-03-07 18:19:15 UTC
Description of problem:
Anolis23 x86_64 社区nightly,kernel-selftests测试case:net/devlink_port_split.py程序报错IndexError: list index out of range

Version-Release number of selected component (if applicable):
How reproducible:

Steps to Reproduce:
1)下载内核src源码包
2)rpm-i kernel-xxx.src.rpm
3) yum-builddep -y ~/rpmbuild/SPECS/kernel.spec
4) rpmbuild -bp ~/rpmbuild/SPECS/kernel.spec
5) cd ~/rpmbuild/BUILD/kernel-5.10.xxx.an23/linux-5.10.xxx.an23.x86_64/
6) cd tools/testing/selftests/net && make && ./devlink_port_split.py


Actual results:
[root@qibo-anck14-an23-milan-tmp net]# ./devlink_port_split.py
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/kernel-5.10.134-38.git.600961b9c9d4.an23/linux-5.10.134-38.git.600961b9c9d4.an23.x86_64/tools/testing/selftests/net/./devlink_port_split.py", line 277, in <module>
    main()
  File "/root/rpmbuild/BUILD/kernel-5.10.134-38.git.600961b9c9d4.an23/linux-5.10.134-38.git.600961b9c9d4.an23.x86_64/tools/testing/selftests/net/./devlink_port_split.py", line 242, in main
    dev = list(devs.keys())[0]
IndexError: list index out of range
[root@qibo-anck14-an23-milan-tmp net]#
[root@qibo-anck14-an23-milan-tmp net]# uname -r
5.10.134-38.git.600961b9c9d4.an23.x86_64
[root@qibo-anck14-an23-milan-tmp net]# cat /etc/anolis-release
Anolis OS release 23


Expected results:
case pass

Additional info:
[root@qibo-anck14-an23-milan-tmp net]# uname -a
Linux qibo-anck14-an23-milan-tmp 5.10.134-38.git.600961b9c9d4.an23.x86_64 #1 SMP Mon Mar 6 22:39:14 CST 2023 x86_64 GNU/Linux
[root@qibo-anck14-an23-milan-tmp net]#
[root@qibo-anck14-an23-milan-tmp net]# cat /etc/anolis-release
Anolis OS release 23
[root@qibo-anck14-an23-milan-tmp net]#
[root@qibo-anck14-an23-milan-tmp net]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs           6.2G  552K  6.2G   1% /run
/dev/vda2        40G   12G   29G  30% /
tmpfs            16G   32K   16G   1% /tmp
tmpfs           3.1G     0  3.1G   0% /run/user/0
[root@qibo-anck14-an23-milan-tmp net]#
[root@qibo-anck14-an23-milan-tmp net]# free -g
               total        used        free      shared  buff/cache   available
Mem:              30           0          27           0           2          29
Swap:              0           0           0
[root@qibo-anck14-an23-milan-tmp net]#
[root@qibo-anck14-an23-milan-tmp net]# cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-5.10.134-38.git.600961b9c9d4.an23.x86_64 root=UUID=29bfdd09-2855-44bd-a225-8f2a34c15e78 ro rhgb cryptomgr.notests rcupdate.rcu_cpu_stall_timeout=300 quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M
[root@qibo-anck14-an23-milan-tmp net]#
[root@qibo-anck14-an23-milan-tmp net]# lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  8
  On-line CPU(s) list:   0-7
Vendor ID:               AuthenticAMD
  BIOS Vendor ID:        Alibaba Cloud
  Model name:            AMD EPYC 7T83 64-Core Processor
    BIOS Model name:     pc-i440fx-2.1  CPU @ 0.0GHz
    BIOS CPU family:     1
    CPU family:          25
    Model:               1
    Thread(s) per core:  2
    Core(s) per socket:  4
    Socket(s):           1
    Stepping:            1
    BogoMIPS:            5090.43
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht s
                         yscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid t
                         sc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline
                         _timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowp
                         refetch osvw topoext invpcid_single vmmcall tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx sma
                         p clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr rdpru wbnoinvd arat vaes vpc
                         lmulqdq rdpid fsrm
Virtualization features:
  Hypervisor vendor:     KVM
  Virtualization type:   full
Caches (sum of all):
  L1d:                   128 KiB (4 instances)
  L1i:                   128 KiB (4 instances)
  L2:                    2 MiB (4 instances)
  L3:                    32 MiB (1 instance)
NUMA:
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-7
Vulnerabilities:
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Not affected
  Retbleed:              Not affected
  Spec store bypass:     Vulnerable
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
  Srbds:                 Not affected
  Tsx async abort:       Not affected
Comment 1 yunmeng365524 2023-03-09 15:46:52 UTC
https://bugzilla.openanolis.cn/show_bug.cgi?id=4435

*** This bug has been marked as a duplicate of bug 4435 ***