Bug 3507 - [Anolis8.6][ck-4.19][aarch64][社区版kernel nightly] kernel-selftests:bpf.test_lwt_seg6local.sh测试fail,提示libbpf: failed to load object 'test_lwt_seg6local.o'
Summary: [Anolis8.6][ck-4.19][aarch64][社区版kernel nightly] kernel-selftests:bpf.test_lw...
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: kernel - anck-4.19 (show other bugs) kernel - anck-4.19
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: shuancue
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-16 18:53 UTC by anolislw
Modified: 2023-02-21 14:52 UTC (History)
1 user (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 2022-12-16 18:53:03 UTC
【问题简述】
Anolis8.6][ck-4.19 aarch6,社区版kernel nightly,kernel-selftests:bpf.test_lwt_seg6local.sh测试fail 
fail job:https://tone.openanolis.cn/ws/jfupduzb/test_result/39129

[期望结果]
case pass

[实际结果]
[[root@qibo-anolis8-nightly-func-arm-1 bpf]# ./test_lwt_seg6local.sh
libbpf: kernel doesn't support global data
libbpf: failed to load object 'test_lwt_seg6local.o'
Failed to parse eBPF program: Operation not supported
selftests: test_lwt_seg6local [FAILED]

[root@qibo-anolis8-nightly-func-arm-1 bpf]# uname -r
4.19.91-240.git.54fd3ed84e1d.an8.aarch64

[复验步骤]
rpm -i kernel-4.19.91-240.git.54fd3ed84e1d.an8.src.rpm
yum install yum-utils
yum-builddep -y /root/rpmbuild/SPECS/kernel.spec    #自动安装前置依赖包  需要yum-utils
rpmbuild -bp /root/rpmbuild/SPECS/kernel.spec
cd BUILD/kernel-4.19.91-240.git.54fd3ed84e1d.an8/linux-4.19.91-240.git.54fd3ed84e1d.an8.aarch64/
cd tools/
cd testing/
cd selftests/
cd bpf/
make
make install
./test_lwt_seg6local.sh

[测试环境]
[root@qibo-anolis8-nightly-func-arm-1 bpf]# uname -r
4.19.91-240.git.54fd3ed84e1d.an8.aarch64
[root@qibo-anolis8-nightly-func-arm-1 bpf]# cat /etc/redhat-release
Anolis OS release 8.6
[root@qibo-anolis8-nightly-func-arm-1 bpf]# uname -r
4.19.91-240.git.54fd3ed84e1d.an8.aarch64
[root@qibo-anolis8-nightly-func-arm-1 bpf]# cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-4.19.91-240.git.54fd3ed84e1d.an8.aarch64 root=UUID=69f901e7-05b1-40ca-bff0-947d6f410fe7 ro cryptomgr.notests cgroup.memory=nokmem rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet console=tty0 biosdevname=0 net.ifnames=0 console=ttyAMA0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M
[root@qibo-anolis8-nightly-func-arm-1 bpf]# df -g
df: invalid option -- 'g'
Try 'df --help' for more information.
[root@qibo-anolis8-nightly-func-arm-1 bpf]# free -g
              total        used        free      shared  buff/cache   available
Mem:             14           0          10           0           3          14
Swap:             0           0           0
[root@qibo-anolis8-nightly-func-arm-1 bpf]# 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
[root@qibo-anolis8-nightly-func-arm-1 bpf]#
Comment 1 zhixin01 alibaba_cloud_group 2023-01-12 10:17:26 UTC
anolis8.6 ck4.19 x86_64 nightly社区版有同样失败:
# ./test_lwt_seg6local.sh
libbpf: kernel doesn't support global data
libbpf: failed to load object 'test_lwt_seg6local.o'
Failed to parse eBPF program: Operation not supported
selftests: test_lwt_seg6local [FAILED]

# 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/"

# uname -r
4.19.91-263.git.c452e2d70d27.an8.x86_64