test_bpf in net from ubuntu_kernel_selftests failed on cloud kernels

Bug #1812189 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Confirmed
Undecided
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned
linux-azure (Ubuntu)
New
Undecided
Unassigned
linux-gke (Ubuntu)
Confirmed
Undecided
Unassigned
linux-kvm (Ubuntu)
Confirmed
Undecided
Unassigned
linux-oracle (Ubuntu)
New
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)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: test_bpf in net from ubuntu_kernel_selftests failed on KVM / Cosmic kernels

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
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

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
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: test_bpf in net from ubuntu_kernel_selftests failed on KVM / Cosmic kernels

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

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
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
Revision history for this message
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
Po-Hsu Lin (cypressyew)
tags: added: linux-kvm sru-20190603 ubuntu-kernel-selftests
tags: removed: sru-20190603
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This is still valid for KVM kernels. Re-open the bug.

$ sudo ./test_bpf.sh
test_bpf: [FAIL]
sudo /sbin/modprobe test_bpf
modprobe: FATAL: Module test_bpf not found in directory /lib/modules/4.18.0-1015-kvm

Changed in linux-kvm (Ubuntu):
status: Invalid → Confirmed
Changed in linux-kvm (Ubuntu Bionic):
status: Invalid → Confirmed
Changed in linux-kvm (Ubuntu Xenial):
status: Invalid → Confirmed
Changed in linux-kvm (Ubuntu Cosmic):
status: Invalid → Confirmed
Changed in ubuntu-kernel-tests:
status: Fix Released → Confirmed
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

BTW fix in comment #5 is for generic kernel.

Po-Hsu Lin (cypressyew)
tags: added: sru-20190701
tags: added: 5.0 disco
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Failed on GKE 5.0 as well.

tags: added: gke
Sean Feole (sfeole)
Changed in ubuntu-kernel-tests:
status: Confirmed → Invalid
Changed in linux-kvm (Ubuntu):
status: Confirmed → Invalid
Changed in linux-kvm (Ubuntu Xenial):
status: Confirmed → Invalid
Changed in linux-kvm (Ubuntu Bionic):
status: Confirmed → Invalid
Changed in linux-kvm (Ubuntu Cosmic):
status: Confirmed → Invalid
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Re-open this bug as this is still an issue.

The test_bpf test in net failed with GKE 5.0.0-1030.31:
  test_bpf: [FAIL]
  not ok 1..9 selftests: net: test_bpf.sh [FAIL]

Further investigate shows this module will require config_test_bpf to be enabled in the kernel config.

Changed in ubuntu-kernel-tests:
status: Invalid → Confirmed
Changed in linux (Ubuntu):
status: Invalid → Confirmed
no longer affects: linux (Ubuntu Cosmic)
summary: - test_bpf in net from ubuntu_kernel_selftests failed on KVM / Cosmic
- kernels
+ test_bpf in net from ubuntu_kernel_selftests failed on cloud kernels
Changed in linux-kvm (Ubuntu):
status: Invalid → Confirmed
no longer affects: linux-kvm (Ubuntu Cosmic)
Changed in linux (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This is not affecting the generic kernel as we have config_test_bpf set to m.

tags: added: sru-20200127
Po-Hsu Lin (cypressyew)
no longer affects: linux (Ubuntu Xenial)
no longer affects: linux-kvm (Ubuntu Xenial)
no longer affects: linux (Ubuntu Bionic)
no longer affects: linux-kvm (Ubuntu Bionic)
Changed in linux-gke (Ubuntu):
status: New → Confirmed
Sean Feole (sfeole)
tags: added: sru-20200217
Po-Hsu Lin (cypressyew)
tags: added: sru-20200629
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Failed on Bionic/oracle : 5.4.0-1026.26~18.04.1 : amd64

tags: added: 5.4 oracle
tags: added: sru-20200921
Revision history for this message
Ian May (ian-may) wrote :

bionic/linux-oracle-5.4: 5.4.0-1044.47~18.04.1

tags: added: sru-20210412
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Observed this on B/oracle-5.4, cycle sru-20210621 .

tags: added: sru-20210621
Revision history for this message
Bartlomiej Zolnierkiewicz (bzolnier) wrote :

Observed also on 2021.11.29/focal/linux-gcp/5.4.0-1059.63

Revision history for this message
Luke Nowakowski-Krijger (lukenow) wrote :

Found on 2022.01.31/xenial/kvm/4.4.0-1100.109

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.