user_copy in user from ubuntu_kernel_selftests failed on KVM kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux-kvm (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Po-Hsu Lin | ||
Cosmic |
Fix Released
|
Medium
|
Unassigned |
Bug Description
== Justification ==
This user_copy test has failed while attempting to insert the test_user_copy module, but this module does not exist in the Bionic KVM kernel as the CONFIG_
# modprobe test_user_copy
modprobe: FATAL: Module test_user_copy not found in directory /lib/modules/
== Fix ==
d7d5311 (selftests: user: return Kselftest Skip code for skipped tests)
3c07aae (selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS)
c31d02d (selftests: kselftest: Remove outdated comment)
This fix will make the test return a skipped retun code if the
test_user_copy module does not exist.
This patch set can be cherry-picked into Bionic, and we already have it in Cosmic / Disco.
For Xenial, it already got d7d5311 and does not need the other two.
== Test ==
With this patch, the test will return "skipped" as expected:
$ sudo ./test_user_copy.sh
user: module test_user_copy is not found [SKIP]
$ echo $?
4
Note that the test framework will need another fix to treat the SKIP return code properly. (bug 1812352)
== Regression potential ==
None,
this patch just change the code for the testing tool.
--
This test_user_copy module will need the CONFIG_
https:/
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-1028-kvm x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
Date: Thu Jan 17 10:57:57 2019
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)
CVE References
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in linux-kvm (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in linux-kvm (Ubuntu Xenial): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
Changed in linux-kvm (Ubuntu Cosmic): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
Changed in linux-kvm (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in linux-kvm (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
Changed in linux-kvm (Ubuntu): | |
status: | In Progress → Invalid |
Changed in linux-kvm (Ubuntu Bionic): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux-kvm (Ubuntu): | |
assignee: | Po-Hsu Lin (cypressyew) → nobody |
In Cosmic, this test can be skipped by checking the module existence.
So maybe we should fix this in the kernel (testing tool).