psock_tpacket from the net test in ubuntu_kernel_selftests fail on KVM kernels

Bug #1812176 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-kvm (Ubuntu)
Undecided
Unassigned
Xenial
Undecided
Unassigned
Bionic
Undecided
Unassigned
Cosmic
Undecided
Unassigned

Bug Description

The psock_tpacket in the net test from ubuntu_kernel_selftests failed with B-KVM
$ sudo ./psock_tpacket
test: TPACKET_V1 with PACKET_RX_RING open: No such file or directory

Look into the code, it seems that this file not found error is caused by the attempt to access /proc/kallsyms in test_kernel_bit_width():

static int test_kernel_bit_width(void)
{
 char in[512], *ptr;
 int num = 0, fd;
 ssize_t ret;

 fd = open("/proc/kallsyms", O_RDONLY);
 if (fd == -1) {
  perror("open");
  exit(1);
 }

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:05:47 2019
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)

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

To enable this kallsyms symbol, CONFIG_KALLSYMS must be enabled in the kernel.

And this config is not enabled in:
 X-KVM
 B-KVM
 C-KVM

summary: - psock_tpacket from the net test in ubuntu_kernel_selftests fail on B-KVM
+ psock_tpacket from the net test in ubuntu_kernel_selftests fail on KVM
+ kernels
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers