Bug 3700 - [Anolis8][anck-5.10][aarch64][社区nightly] kernel-selftest测试套ptrace.vmaccess用例执行fail
Summary: [Anolis8][anck-5.10][aarch64][社区nightly] kernel-selftest测试套ptrace.vmaccess用例执...
Status: NEW
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: shuancue
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-11 15:11 UTC by yunhe123
Modified: 2024-05-07 20:53 UTC (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yunhe123 alibaba_cloud_group 2023-01-11 15:11:50 UTC
Description of problem:
kernel-selftest测试套ptrace.vmaccess用例执行fail,日志如下:

[root@qibo-anolis8-nightly-func-arm-4 ptrace]# ./vmaccess
TAP version 13
1..2
# Starting 2 tests from 1 test cases.
#  RUN           global.vmaccess ...
#            OK  global.vmaccess
ok 1 global.vmaccess
#  RUN           global.attach ...
# attach: Test terminated by timeout
#          FAIL  global.attach
not ok 2 global.attach
# FAILED: 1 / 2 tests passed.
# Totals: pass:1 fail:1 xfail:0 xpass:0 skip:0 error:0

版本信息:
[root@qibo-anolis8-nightly-func-arm-4 ~]# uname -r
5.10.134-264.git.53f303a6c3fa.an8.aarch64
[root@qibo-anolis8-nightly-func-arm-4 ~]# 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/"

[root@qibo-anolis8-nightly-func-arm-4 ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:           15Gi       229Mi        14Gi        11Mi       570Mi        14Gi
Swap:            0B          0B          0B
[root@qibo-anolis8-nightly-func-arm-4 ~]# 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

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


How reproducible:
必现

Steps to Reproduce:
rpm -ivh xxx.src.rpm  默认安装到/root下
yum-builddep -y rpmbuild/SPECS/kernel.spec   自动安装前置依赖包,需要yum-utils
rpmbuild -bp ./rpmbuild/SPECS/kernel.spec   # 这个步骤会打相关的patch, 解压缩tar包,生成BUILD目录
cd rpmbuild/BUILD/kernel-xxx/linux-xxx/  

接下来就可以编译测试了
cd  /tools/testing/selftests/bpf/
make

执行相关用例:
cd kernel-selftests/kernel-selftests/ptrace
./vmaccess

Actual results:
用例执行fail

Expected results:
用例执行pass

Additional info:
已知问题,结论是:有修复补丁,经过测试有效,但未被社区接收,等待社区结论
Comment 1 anolislw alibaba_cloud_group 2023-03-06 13:14:55 UTC
Anolis 23 x86_64环境,社区nightly kernel-selftest测试 case:ptrace.vmaccess也存在该问题
----------
[root@qibo-anolis23-nightly-func-x86-1 ptrace]# ./vmaccess
TAP version 13
1..2
# Starting 2 tests from 1 test cases.
#  RUN           global.vmaccess ...
#            OK  global.vmaccess
ok 1 global.vmaccess
#  RUN           global.attach ...
# attach: Test terminated by timeout
#          FAIL  global.attach
not ok 2 global.attach
# FAILED: 1 / 2 tests passed.
# Totals: pass:1 fail:1 xfail:0 xpass:0 skip:0 error:0
[root@qibo-anolis23-nightly-func-x86-1 ptrace]#
[root@qibo-anolis23-nightly-func-x86-1 ptrace]# uname -r
5.10.134-1.git.2ed1510fd4be.an23.x86_64
[root@qibo-anolis23-nightly-func-x86-1 ptrace]# cat /etc/anolis-release
Anolis OS release 23
Comment 2 Banana alibaba_cloud_group 2023-06-09 15:27:24 UTC
Anolis23 5.10 aarch64 nightly环境下存在相同问题

[root@qibo-anolis23-nightly-func-arm-1 kernel-selftests]# uname -r
5.10.134-127.git.f4a20a6d6812.an23.aarch64
[root@qibo-anolis23-nightly-func-arm-1 kernel-selftests]# cd
[root@qibo-anolis23-nightly-func-arm-1 ~]# uname -r
5.10.134-127.git.f4a20a6d6812.an23.aarch64
[root@qibo-anolis23-nightly-func-arm-1 ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"
Comment 3 yunmeng365524 2024-05-07 20:53:35 UTC
社区有修复的代码,看看更新一下测试代码,或回合一下patch