Regression for ubuntu_kernel_selftests [net] ubuntu_bpf test case fails to build on disco
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Disco |
Fix Released
|
Medium
|
Stefan Bader | ||
linux-aws (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned | ||
linux-azure (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[SRU Justification]
== Impact ==
Some upstream stable change modified the bpf selftest to use a function that probes for existing eBPF program types. However that function does not exist in the 5.0 kernel sources.
== Fix ==
Picking two additional changes from upstream (which only modify the tools sub-directory), allows to compile the selftests again.
== Risk of Regression ==
Since the kernel itself is not touched, the risk is low.
== Testcase ==
With build-essential installed and the Disco kernel tree cloned:
cd tools/testing/
TARGET=net make
---
This test will failed to build on 5.0.0-16 Disco.
5.0.0-16 Disco + 5.0.0-15 source code - build OK
5.0.0-16 Disco + 5.0.0-16 source code - Failed
Bisect shows this one e38969c9 (selftests/bpf: skip verifier tests for unsupported program types) in our tree is the cause (upstream commit: 8184d44c)
Which uses a "recently introduced bpf_probe_
make[1]: Entering directory '/home/
gcc -o /home/ubuntu/
make -C ../../../lib/bpf OUTPUT=
make[2]: Entering directory '/home/
Auto-detecting system features:
... libelf: [ on ]
... bpf: [ on ]
HOSTCC /home/ubuntu/
HOSTLD /home/ubuntu/
LINK /home/ubuntu/
CC /home/ubuntu/
CC /home/ubuntu/
CC /home/ubuntu/
CC /home/ubuntu/
CC /home/ubuntu/
CC /home/ubuntu/
CC /home/ubuntu/
CC /home/ubuntu/
LD /home/ubuntu/
LINK /home/ubuntu/
LINK /home/ubuntu/
LINK /home/ubuntu/
make[2]: Leaving directory '/home/
gcc -Wall -O2 -I../..
make[1]: Leaving directory '/home/
make: Leaving directory '/home/
stderr:
Warning: Kernel ABI header at 'tools/
test_verifier.c: In function ‘do_test_single’:
test_
if (fd_prog < 0 && !bpf_probe_
/usr/bin/ld: /tmp/ccRNIovw.o: in function `do_test_single':
test_
collect2: error: ld returned 1 exit status
make[1]: *** [../lib.mk:152: /home/ubuntu/
make: *** [Makefile:90: all] Error 2
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.0.0-16-generic x86_64
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 May 21 04:54 seq
crw-rw---- 1 root audio 116, 33 May 21 04:54 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.10-0ubuntu27
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:
CurrentDmesg:
Date: Tue May 21 05:08:27 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.178.1
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
CVE References
description: | updated |
Changed in linux (Ubuntu): | |
assignee: | nobody → Stefan Bader (smb) |
importance: | Undecided → Medium |
status: | Incomplete → In Progress |
Changed in linux (Ubuntu Disco): | |
assignee: | nobody → Stefan Bader (smb) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in linux (Ubuntu): | |
assignee: | Stefan Bader (smb) → nobody |
status: | In Progress → Incomplete |
description: | updated |
Changed in linux (Ubuntu Disco): | |
status: | In Progress → Fix Committed |
tags: | added: cscc |
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 1829812
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.