Bug 1230 - [Anck 4.19][ck26_rc3][x86_64/aarch64]perf_event_tests:eacces:Testing EACCES generation...FAILED
Summary: [Anck 4.19][ck26_rc3][x86_64/aarch64]perf_event_tests:eacces:Testing EACCES g...
Status: CONFIRMED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: 4.19-026.x
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: 陈善佩
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-16 17:42 UTC by kangjiangbo
Modified: 2022-05-18 14:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kangjiangbo 2022-05-16 17:42:47 UTC
Description of problem:
perf_test_events 测试集eacces失败,Testing EACCES generation...FAILED
/proc/sys/kernel/perf_event_paranoid =1和2 都是这样


Version-Release number of selected component (if applicable):
# uname -r
4.19.91-26_rc3.an8.x86_64
# uname -r
4.19.91-26_rc3.an8.aarch64

How reproducible:


Steps to Reproduce:
1.git  clone http://github.com/deater/perf_event_tests.git
2.cd perf_event_tests && make
3../tests/error_returns/eacces

Actual results:
# ./tests/error_returns/eacces
This tries to get perf_event_open() to generate
an EACCES return.

+ Trying to attach to CPU with "any thread" set
        Paranoid = 2
        Unexpectedly opened properly.
+ Trying to attach to PID1
        paranoid=2 uid=0
        Was able to open as you areroot running as root
Testing EACCES generation...                               FAILED


Expected results:


Additional info:
类似https://github.com/deater/perf_event_tests/issues/13
普通用户可以执行成功,root 失败
链接中说 https://github.com/deater/perf_event_tests/commit/d2b3ee19c02c3f917414ef421a54186392f8c00c 修复了root失败的问题
-->但是最新包含这个修复的测试代码,用例依然失败