ptrace-tm-spd-gpr in powerpc/ptrace from ubuntu_kerenl_selftests failed on Bionic P8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Po-Hsu Lin | ||
Bionic |
Fix Released
|
Medium
|
Unassigned |
Bug Description
== Justification ==
ptrace-tm-spd-gpr in powerpc/ptrace will fail with Power8 on Bionic:
$ sudo ./ptrace-tm-spd-gpr
test: ptrace_tm_spd_gpr
tags: git_version:
!! killing ptrace_tm_spd_gpr
!! child died by signal 15
failure: ptrace_tm_spd_gpr
This is due to a segmentation fault that happens on the child process
prior to setting cptr[2] = 1. This causes the parent process to wait
forever at 'while (!pptr[2])' and the test to be killed by the test
harness framework by timeout.
== Fix ==
48dc0ef (selftests/powerpc: Fix ptrace tm failure)
This patch can be cherry-picked for Bionic.
== Test ==
After the patch, the test will pass with:
$ sudo ./ptrace-tm-spd-gpr
test: ptrace_tm_spd_gpr
tags: git_version:
success: ptrace_tm_spd_gpr
== Regression potential ==
None, change for the testing tool only.
This issue only exist in Bionic P8:
$ sudo ./ptrace-tm-spd-gpr
test: ptrace_tm_spd_gpr
tags: git_version:
!! killing ptrace_tm_spd_gpr
!! child died by signal 15
failure: ptrace_tm_spd_gpr
Result on P9:
$ sudo ./ptrace-tm-spd-gpr
test: ptrace_tm_spd_gpr
tags: git_version:unknown
[SKIP] Test skipped on line 125
skip: ptrace_tm_spd_gpr
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-43-generic ppc64le
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Jan 24 06:57 seq
crw-rw---- 1 root audio 116, 33 Jan 24 06:57 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: ppc64el
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CurrentDmesg: [ 3531.661373] ptrace-
Date: Thu Jan 24 07:59:27 2019
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
PciMultimedia:
ProcFB:
ProcKernelCmdLine: root=/dev/
ProcLoadAvg: 0.32 0.53 0.33 1/1478 23438
ProcSwaps:
Filename Type Size Used Priority
/swap.img file 8388544 0 -2
ProcVersion: Linux version 4.15.0-43-generic (buildd@
RelatedPackageV
linux-
linux-
linux-firmware 1.173.3
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
VarLogDump_list: total 0
cpu_cores: Number of cores present = 20
cpu_coreson: Number of cores online = 20
cpu_dscr: DSCR is 0
cpu_freq:
min: 3.694 GHz (cpu 159)
max: 3.694 GHz (cpu 4)
avg: 3.694 GHz
cpu_runmode:
Could not retrieve current diagnostics mode,
No kernel interface to firmware
cpu_smt: SMT=8
CVE References
description: | updated |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Changed in linux (Ubuntu Bionic): | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in linux (Ubuntu): | |
status: | In Progress → Invalid |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
tags: | added: ubuntu-kernel-selftests |
Changed in ubuntu-kernel-tests: | |
status: | Fix Committed → Fix Released |
This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification- needed- bionic' to 'verification- done-bionic' . If the problem still exists, change the tag 'verification- needed- bionic' to 'verification- failed- bionic' .
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you!