Description of problem: anolis8.8物理机aarch64环境下,nightly kernel-selftests测试,case:bpf.test_btf run fail Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. rpm -i http://ci-storage.alibaba.net/kernel/anolis8/ck-4.19/aarch64/20230903_838/kernel-4.19.91-838.git.fd31626d5e.an8.src.rpm 2. yum-builddep -y /root/rpmbuild/SPECS/kernel.spec && rpmbuild -bp /root/rpmbuild/SPECS/kernel.spec 3. cd ~/rpmbuild/BUILD/kernel-4.19.91-838.git.fd31626d5e.an8/linux-4.19.91-838.git.fd31626d5e.an8.aarch64/tools/testing/selftests/ 4. make -C bpf;cd bpf;./test_btf Actual results: BTF raw test[73] (func proto (Invalid return type)): OK BTF raw test[74] (func proto (with func name)): OK BTF raw test[75] (func proto (const void arg)): OK BTF raw test[76] (func (void func(int a, unsigned int b))): OK BTF raw test[77] (func (No func name)): OK BTF raw test[78] (func (Invalid func name)): OK BTF raw test[79] (func (Some arg has no name)): OK BTF raw test[80] (func (Non zero vlen)): OK BTF raw test[81] (func (Not referring to FUNC_PROTO)): OK BTF GET_INFO test[1] (== raw_btf_size+1): OK BTF GET_INFO test[2] (== raw_btf_size-3): 38...39...40...OK BTF GET_INFO test[3] (Large bpf_btf_info): OK BTF GET_INFO test[4] (BTF ID): OK BTF libbpf test[1] (test_btf_haskv.o): libbpf: Error loading ELF section .BTF: -22. Ignored and continue. do_test_file:2860:FAIL bpf_object__btf_fd: -1 BTF libbpf test[2] (test_btf_nokv.o): libbpf: Error loading ELF section .BTF: -22. Ignored and continue. do_test_file:2860:FAIL bpf_object__btf_fd: -1 PASS:85 SKIP:0 FAIL:2 [root@l57h15216 bpf]# echo $? 255 Expected results: case pass Additional info: [root@l57h15216 bpf]# uname -r 4.19.91-838.git.fd31626d5e.an8.aarch64 [root@l57h15216 bpf]# [root@l57h15216 bpf]# cat /proc/cmdline BOOT_IMAGE=(hd1,gpt2)/boot/vmlinuz-4.19.91-838.git.fd31626d5e.an8.aarch64 root=UUID=126440a1-ccaf-4e91-8b27-4709dc96b297 ro cryptomgr.notests 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 slub_debug=FPZU kmemleak=on cgwb_v1 crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M cgroup.memory=nokmem psi=1 [root@l57h15216 bpf]# [root@l57h15216 bpf]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 378G 0 378G 0% /dev tmpfs 378G 0 378G 0% /dev/shm tmpfs 378G 2.6M 378G 1% /run tmpfs 378G 0 378G 0% /sys/fs/cgroup /dev/sda2 20G 12G 6.3G 66% / /dev/sda1 500M 6.8M 493M 2% /boot/efi tmpfs 76G 0 76G 0% /run/user/0 [root@l57h15216 bpf]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 223.6G 0 disk ├─sda1 8:1 1 500M 0 part /boot/efi └─sda2 8:2 1 19.5G 0 part / nvme0n1 259:0 0 1.5T 0 disk └─nvme0n1p1 259:1 0 1.4T 0 part [root@l57h15216 bpf]# [root@l57h15216 bpf]# free -g total used free shared buff/cache available Mem: 755 3 748 0 2 747 Swap: 0 0 0 [root@l57h15216 bpf]# [root@l57h15216 bpf]# lscpu Architecture: aarch64 Byte Order: Little Endian CPU(s): 96 On-line CPU(s) list: 0-95 Thread(s) per core: 1 Core(s) per socket: 48 Socket(s): 2 NUMA node(s): 1 Vendor ID: HiSilicon BIOS Vendor ID: HiSilicon Model: 0 Model name: Kunpeng-920 BIOS Model name: HUAWEI Kunpeng 920 5250 Stepping: 0x1 CPU MHz: 2600.000 CPU max MHz: 2600.0000 CPU min MHz: 200.0000 BogoMIPS: 200.00 L1d cache: 64K L1i cache: 64K L2 cache: 512K L3 cache: 24576K NUMA node0 CPU(s): 0-95 Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm [root@l57h15216 bpf]# [root@l57h15216 bpf]# cat /proc/cmdline BOOT_IMAGE=(hd1,gpt2)/boot/vmlinuz-4.19.91-838.git.fd31626d5e.an8.aarch64 root=UUID=126440a1-ccaf-4e91-8b27-4709dc96b297 ro cryptomgr.notests 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 slub_debug=FPZU kmemleak=on cgwb_v1 crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M cgroup.memory=nokmem psi=1
anolis8 4.19 x86_64也有相同的问题 # uname -r 4.19.91-843.git.be155cb8f5.an8.x86_64