test_bpf in net from ubuntu_kernel_selftests failed on KVM / Cosmic kernels

Bug #1812189 reported by Po-Hsu Lin on 2019-01-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
linux (Ubuntu)
Undecided
Unassigned
Xenial
Undecided
Unassigned
Bionic
Undecided
Unassigned
Cosmic
Undecided
Unassigned
linux-kvm (Ubuntu)
Undecided
Unassigned
Xenial
Undecided
Unassigned
Bionic
Undecided
Unassigned
Cosmic
Undecided
Unassigned

Bug Description

This test will attempt to insert the test_bpf module, but this module does not exist in KVM kernels:

$ sudo modprobe test_bpf
modprobe: FATAL: Module test_bpf not found in directory /lib/modules/4.15.0-1028-kvm

The script:
$ sudo ./test_bpf.sh
test_bpf: [FAIL]

$ cat test_bpf.sh
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Runs bpf test using test_bpf kernel module

if /sbin/modprobe -q test_bpf ; then
 /sbin/modprobe -q -r test_bpf;
 echo "test_bpf: ok";
else
 echo "test_bpf: [FAIL]";
 exit 1;
fi

This test_bpf module will need the CONFIG_TEST_BPF to be enabled.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-1028-kvm 4.15.0-1028.28
ProcVersionSignature: User Name 4.15.0-1028.28-kvm 4.15.18
Uname: Linux 4.15.0-1028-kvm x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
Date: Thu Jan 17 08:29:29 2019
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)

Po-Hsu Lin (cypressyew) wrote :
Po-Hsu Lin (cypressyew) wrote :

Failed on Cosmic kernel as well.
$ sudo modprobe test_bpf
modprobe: FATAL: Module test_bpf not found in directory /lib/modules/4.18.0-14-generic

summary: - test_bpf in net from ubuntu_kernel_selftests failed on KVM kernels
+ test_bpf in net from ubuntu_kernel_selftests failed on KVM / Cosmic
+ kernels

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1812189

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Po-Hsu Lin (cypressyew) wrote :

Found on Xenial s390x as well. (only on s390x, passed on other architectures)

Po-Hsu Lin (cypressyew) wrote :

Passed on B-4.18
 selftests: net: test_bpf.sh
 ========================================
 test_bpf: ok
 ok 1..8 selftests: net: test_bpf.sh [PASS]

Changed in ubuntu-kernel-tests:
status: New → Fix Released
Po-Hsu Lin (cypressyew) wrote :

Checked X/B/C, test passed.

Changed in linux (Ubuntu):
status: Incomplete → Invalid
Changed in linux (Ubuntu Xenial):
status: New → Invalid
Changed in linux (Ubuntu Bionic):
status: New → Invalid
Changed in linux (Ubuntu Cosmic):
status: New → Invalid
Changed in linux-kvm (Ubuntu):
status: New → Invalid
Changed in linux-kvm (Ubuntu Xenial):
status: New → Opinion
Changed in linux-kvm (Ubuntu Bionic):
status: New → Invalid
Changed in linux-kvm (Ubuntu Xenial):
status: Opinion → Invalid
Changed in linux-kvm (Ubuntu Cosmic):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers