Bug 5852 - [alinux2][nightly][x86]kernel-selftests测试套新增的用例bpf.test_flow_dissector.sh执行失败
Summary: [alinux2][nightly][x86]kernel-selftests测试套新增的用例bpf.test_flow_dissector.sh执行失败
Status: NEW
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: shuming
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-12 16:27 UTC by meil_wei
Modified: 2023-07-13 10:45 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 meil_wei alibaba_cloud_group 2023-07-12 16:27:35 UTC
Description of problem:
2023.7.12 nightly测试中,kernel-selftests测试套新增的用例bpf.test_flow_dissector.sh执行失败

# ./test_flow_dissector.sh
bpffs not mounted. Mounting...
0: IP
1: IPV6
2: IPV6OP
3: IPV6FR
4: MPLS
5: VLAN
./flow_dissector_load: bpf_prog_attach bpf_flow.o
selftests: test_flow_dissector [FAILED]

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/bpf
./test_flow_dissector.sh  --执行test_flow_dissector.sh用例

Actual results:
用例执行通过

Expected results:
用例执行失败

Additional info:
# uname -r
4.19.91-1467.git.60eb3a56365f.al7.x86_64

# free -g
              total        used        free      shared  buff/cache   available
Mem:             15           0           5           0           9          14
Swap:             0           0           0

# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    1
Socket(s):             2
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 85
Model name:            Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
Stepping:              4
CPU MHz:               2499.998
BogoMIPS:              4999.99
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K
NUMA node0 CPU(s):     0-3
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves

# cat /etc/os-release
NAME="Alibaba Cloud Linux (Aliyun Linux)"
VERSION="2.1903 LTS (Hunting Beagle)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="2.1903"
PRETTY_NAME="Alibaba Cloud Linux (Aliyun Linux) 2.1903 LTS (Hunting Beagle)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.19.91-1467.git.60eb3a56365f.al7.x86_64 root=UUID=a49396ed-9913-4468-869c-d335043e80ef ro crashkernel=0M-2G:0M,2G-8G:192M,8G-128G:256M,128G-:384M cryptomgr.notests cgroup.memory=nokmem rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295

bpf.test_flow_dissector.sh用例为2023.7.12日新增用例
Comment 1 zhixin01 alibaba_cloud_group 2023-07-13 10:45:16 UTC
anolis8 4.19 x86 nightly也有相同的失败,bpf.test_flow_dissector.sh用例为新增用例,之前没有,系和下面的PR有关,请开发同学确认下

[4.19] [Feature]merge bpf set 2
https://gitee.com/anolis/cloud-kernel/pulls/1847

内核版本:
# uname -r
4.19.91-447.git.d0bb551ee628.an8.x86_64