Bug 5982 - [alinux3][x86_64][nightly]kernelselftest:bpf.test_tc_edt.sh概率性失败,elapsed: 20 sec; bps difference: -19.93%
Summary: [alinux3][x86_64][nightly]kernelselftest:bpf.test_tc_edt.sh概率性失败,elapsed: 20 ...
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-25 18:38 UTC by wangpingping
Modified: 2023-07-25 18:38 UTC (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wangpingping alibaba_cloud_group 2023-07-25 18:38:14 UTC
[缺陷描述]:
bpf.test_tc_edt.sh出现概率性失败;
仅x86_64有此问题,aarch64没有问题;

nmap-ncat软件版本:
# rpm -qa |grep nmap-ncat
nmap-ncat-7.70-6.al8.x86_64


失败日志如下:
# ./test_tc_edt.sh

BTF debug data section '.BTF' rejected: Invalid argument (22)!
 - Length:       2486
Verifier analysis:

magic: 0xeb9f
version: 1
flags: 0x0
hdr_len: 24
type_off: 0
type_len: 864
str_off: 864
str_len: 1598
btf_total_size: 2486
[1] PTR (anon) type_id=2
[2] STRUCT __sk_buff size=184 vlen=32
        len type_id=3 bits_offset=0
        pkt_type type_id=3 bits_offset=32
        mark type_id=3 bits_offset=64
        queue_mapping type_id=3 bits_offset=96
        protocol type_id=3 bits_offset=128
        vlan_present type_id=3 bits_offset=160
        vlan_tci type_id=3 bits_offset=192
        vlan_proto type_id=3 bits_offset=224
        priority type_id=3 bits_offset=256
        ingress_ifindex type_id=3 bits_offset=288
        ifindex type_id=3 bits_offset=320
        tc_index type_id=3 bits_offset=352
        cb type_id=5 bits_offset=384
        hash type_id=3 bits_offset=544
        tc_classid type_id=3 bits_offset=576
        data type_id=3 bits_offset=608
        data_end type_id=3 bits_offset=640
        napi_id type_id=3 bits_offset=672
        family type_id=3 bits_offset=704
        remote_ip4 type_id=3 bits_offset=736
        local_ip4 type_id=3 bits_offset=768
        remote_ip6 type_id=7 bits_offset=800
        local_ip6 type_id=7 bits_offset=928
        remote_port type_id=3 bits_offset=1056
        local_port type_id=3 bits_offset=1088
        data_meta type_id=3 bits_offset=1120
        (anon) type_id=8 bits_offset=1152
        tstamp type_id=10 bits_offset=1216
        wire_len type_id=3 bits_offset=1280
        gso_segs type_id=3 bits_offset=1312
        (anon) type_id=12 bits_offset=1344
        gso_size type_id=3 bits_offset=1408
[3] TYPEDEF __u32 type_id=4
[4] INT unsigned int size=4 bits_offset=0 nr_bits=32 encoding=(none)
[5] ARRAY (anon) type_id=3 index_type_id=6 nr_elems=5
[6] INT __ARRAY_SIZE_TYPE__ size=4 bits_offset=0 nr_bits=32 encoding=(none)
[7] ARRAY (anon) type_id=3 index_type_id=6 nr_elems=4
[8] UNION (anon) size=8 vlen=1
        flow_keys type_id=9 bits_offset=0
[9] PTR (anon) type_id=24
[10] TYPEDEF __u64 type_id=11
[11] INT long long unsigned int size=8 bits_offset=0 nr_bits=64 encoding=(none)
[12] UNION (anon) size=8 vlen=1
        sk type_id=13 bits_offset=0
[13] PTR (anon) type_id=25
[14] FUNC_PROTO (anon) return=15 args=(1 skb)
[15] INT int size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
[16] FUNC tc_prog type_id=14
[17] STRUCT bpf_map_def size=20 vlen=5
        type type_id=4 bits_offset=0
        key_size type_id=4 bits_offset=32
        value_size type_id=4 bits_offset=64
        max_entries type_id=4 bits_offset=96
        map_flags type_id=4 bits_offset=128
[18] VAR flow_map type_id=17 linkage=1
[19] INT char size=1 bits_offset=0 nr_bits=8 encoding=SIGNED
[20] ARRAY (anon) type_id=19 index_type_id=6 nr_elems=4
[21] VAR __license type_id=20 linkage=1
[22] DATASEC license size=0 vlen=1 size == 0

elapsed: 20 sec; bps difference: -5.66%
FAIL


跑10次用例的失败情况:
elapsed: 20 sec; bps difference: -7.00%
FAIL
elapsed: 20 sec; bps difference: -0.01%
PASS
elapsed: 20 sec; bps difference: -0.03%
PASS
elapsed: 20 sec; bps difference: -1.96%
FAIL
elapsed: 20 sec; bps difference: -6.33%
FAIL
elapsed: 20 sec; bps difference: -0.97%
PASS
elapsed: 20 sec; bps difference: -0.01%
PASS
elapsed: 20 sec; bps difference: -0.01%
PASS
elapsed: 20 sec; bps difference: -1.26%
FAIL
elapsed: 20 sec; bps difference: -10.08%
FAIL

[复现概率]:
概率性失败,10次大概出现3,4次

[复现环境]:
内核:
5.10.134-1001.git.dd0596c292a8.al8.x86_64

# cat /etc/os-release
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos"
VERSION_ID="3"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

cpu信息:
# lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              8
On-line CPU(s) list: 0-7
Thread(s) per core:  2
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
BIOS Vendor ID:      Alibaba Cloud
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
BIOS Model name:     pc-i440fx-2.1
Stepping:            7
CPU MHz:             2499.998
BogoMIPS:            4999.99
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            36608K
NUMA node0 CPU(s):   0-7
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 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 invpcid_single pti ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1

内存信息:
# free -h
              total        used        free      shared  buff/cache   available
Mem:           31Gi       430Mi        29Gi       2.0Mi       1.0Gi        30Gi
Swap:            0B          0B          0B

[预期结果]:
用例执行成功

[实际结果]:
概率性失败