ftrace in ubuntu_kernel_selftests hang with Cosmic kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Cosmic |
Fix Released
|
Undecided
|
Po-Hsu Lin |
Bug Description
== Justification ==
Running the ftrace in ubuntu_
When this happens, you won't be able to ssh into this system, and no log can be found in syslog.
This hang is caused by one of the sub-test: kprobe/
Masami's comment from upstream discussion (https:/
In arch/x86/
== Fix ==
43a1b0cb4 (kprobes/x86: Fix instruction patching corruption when copying more than one RIP-relative instruction)
This patch is already in D.
For B/C, they all have this ill-commit 63fef14 and this patch can be cherry-picked. Note that for Bionic kernel it can only be triggered in this way with a kernel built with GCC-8.
Although it's a bit difficult to trigger this on Bionic, I think it worth this fix as it's quite straightforward.
For X, the ill-commit 63fef14 does not exist.
== Test ==
Test kernel for Cosmic and Bionic built with GCC-8:
http://
(To verify this for the Bionic, you will need to build a kernel with GCC-8.)
Patch tested with a bare-metal and a KVM node, both of them can pass the beating repetitively.
== Regression Potential ==
Low, upstream fix specific for kprobe and limited to x86 architecture.
== Original Bug Report ==
This issue is a bit strange.
The test has passed with Cosmic 4.18.0-18.19 generic kernel on AMD64 node during our SRU testing process.
https:/
However, Tyler found that this test will hang after:
[30] Kretprobe dynamic event with maxactive [PASS]
[31] Register/unregister many kprobe events [PASS]
And this is 100% reproducible.
No relevant output in syslog.
This will need further investigation.
ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: linux-image-
ProcVersionSign
Uname: Linux 4.18.0-18-generic x86_64
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Apr 25 07:16 seq
crw-rw---- 1 root audio 116, 33 Apr 25 07:16 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.10-0ubuntu13.2
Architecture: amd64
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:
Date: Thu Apr 25 07:18:51 2019
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
PciMultimedia:
ProcFB: 0 cirrusdrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.175.3
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: Ubuntu-
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.
dmi.modalias: dmi:bvnSeaBIOS:
dmi.product.name: Standard PC (i440FX + PIIX, 1996)
dmi.product.
dmi.sys.vendor: QEMU
Changed in linux (Ubuntu Cosmic): | |
status: | New → In Progress |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
description: | updated |
Changed in linux (Ubuntu): | |
status: | Confirmed → Fix Released |
description: | updated |
description: | updated |
Changed in linux (Ubuntu Bionic): | |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Cosmic): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-bionic removed: verification-needed-bionic |
tags: |
added: verification-done-cosmic removed: verification-needed-cosmic |
Changed in ubuntu-kernel-tests: | |
status: | In Progress → Fix Released |
This change was made by a bot.