kernel_selftests failures on kernel-P10d-LPAR10.ppc64el.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Po-Hsu Lin |
Bug Description
[Impact]
The powerpc tests from kernel selftests were unable to finish properly
on Power10 VM with Focal 5.4 kernel. There will be lots of failures for
powerpc/ptrace and powerpc/tm tests. For example the ptrace-tm-gpr:
# selftests: powerpc/ptrace: ptrace-tm-gpr
# test: ptrace_tm_gpr
# tags: git_version:unknown
# [FAIL] Test FAILED on line 94
# GPR[14]: 1 Expected: 2
# GPR[15]: 1 Expected: 2
# GPR[16]: 1 Expected: 2
# GPR[17]: 1 Expected: 2
# GPR[18]: 1 Expected: 2
# GPR[19]: 1 Expected: 2
# GPR[20]: 1 Expected: 2
# GPR[21]: 1 Expected: 2
# GPR[22]: 1 Expected: 2
# GPR[23]: 1 Expected: 2
# GPR[24]: 1 Expected: 2
# GPR[25]: 1 Expected: 2
# GPR[26]: 1 Expected: 2
# GPR[27]: 1 Expected: 2
# GPR[28]: 1 Expected: 2
# GPR[29]: 1 Expected: 2
# GPR[30]: 1 Expected: 2
# GPR[31]: 1 Expected: 2
# failure: ptrace_tm_gpr
not ok 1 selftests: powerpc/ptrace: ptrace-tm-gpr # exit=1
[Fix]
* 031fd80f87 selftests: Skip TM tests on synthetic TM implementations
This patch has already landed on Jammy+. Only Focal will need this
patch. And it needs to be backported to skip changes on the
tm-signal-
[Test Plan]
Run the patched powerpc tests from kernel selftests:
$ sudo make TARGETS=powerpc run_tests
Previously failing powerpc/ptrace and powerpc/tm tests will be skipped.
For example the ptrace-tm-gpr test:
# selftests: powerpc/ptrace: ptrace-tm-gpr
# test: ptrace_tm_gpr
# tags: git_version:
# [SKIP] Test skipped on line 116
# skip: ptrace_tm_gpr
ok 2 selftests: powerpc/ptrace: ptrace-tm-gpr
[Where problems could occur]
Change limited to testing tools, and it's just skipping unsuitable
tests for specific architecture, no impact to real kernel functions.
== Original Bug Report ==
First time seen on cycle 2023.08.10 because it was the first time we tested this instance.
Tried previous focal version (5.4.09-156) and it seems it's happened before.
The following tests are failing:
* powerpc/
* powerpc/
* powerpc/
* powerpc/
* powerpc/
* powerpc/
* powerpc/
CVE References
tags: | added: sru-20230807 |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Changed in linux (Ubuntu Focal): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux (Ubuntu): | |
status: | New → Fix Released |
Changed in linux (Ubuntu Focal): | |
status: | New → In Progress |
description: | updated |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu): | |
status: | Fix Released → Invalid |
The jenkins job will hang, and a manual inspection shows this is because some processes are still running:
* ptrace-tm-tar
* ptrace-tm-spd-tar
* ptrace-tm-vsx
* ptrace-tm-spd-vsx
* ptrace-tm-spr
And this is why these test failed with timeout.