seccomp test in ubuntu_kernel_selftests failed to build on D amd64

Bug #1849844 reported by Po-Hsu Lin on 2019-10-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
linux (Ubuntu)
Undecided
Unassigned
Disco
Undecided
Unassigned

Bug Description

Test failed to build with the proposed Disco kernel with:
    undefined reference to `BIT'

ubuntu@moe:~/ubuntu-disco/tools/testing/selftests$ sudo make run_tests
make[1]: Entering directory '/home/ubuntu/ubuntu-disco/tools/testing/selftests/seccomp'
gcc -Wl,-no-as-needed -Wall seccomp_bpf.c -lpthread -o seccomp_bpf
seccomp_bpf.c: In function ‘user_notification_continue’:
seccomp_bpf.c:3074:26: warning: overflow in conversion from ‘long int’ to ‘__s32’ {aka ‘int’} changes value from ‘116983961184613’ to ‘1936943461’ [-Woverflow]
 #define USER_NOTIF_MAGIC 116983961184613L
                          ^~~~~~~~~~~~~~~~
seccomp_bpf.c:3535:15: note: in expansion of macro ‘USER_NOTIF_MAGIC’
  resp.error = USER_NOTIF_MAGIC;
               ^~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/cc5Df3dg.o: in function `user_notification_continue':
seccomp_bpf.c:(.text+0x2e226): undefined reference to `BIT'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:12: seccomp_bpf] Error 1
make[1]: Leaving directory '/home/ubuntu/ubuntu-disco/tools/testing/selftests/seccomp'
make: *** [Makefile:91: all] Error 2

Note that bug 1849281 looks like a different issue.

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: linux-image-5.0.0-33-generic 5.0.0-33.35
ProcVersionSignature: User Name 5.0.0-33.35-generic 5.0.21
Uname: Linux 5.0.0-33-generic x86_64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Oct 25 13:38 seq
 crw-rw---- 1 root audio 116, 33 Oct 25 13:38 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.10-0ubuntu27.1
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: [ 484.024237] systemd-journald[391]: /dev/kmsg buffer overrun, some messages lost.
Date: Fri Oct 25 13:50:36 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=/boot/vmlinuz-5.0.0-33-generic root=UUID=36e162f3-41b5-4487-a6dc-09ba4e37d3bf ro console=tty1 console=ttyS0
RelatedPackageVersions:
 linux-restricted-modules-5.0.0-33-generic N/A
 linux-backports-modules-5.0.0-33-generic N/A
 linux-firmware 1.178.5
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: 1.10.2-1ubuntu1
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.version: pc-i440fx-bionic
dmi.modalias: dmi:bvnSeaBIOS:bvr1.10.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-bionic:cvnQEMU:ct1:cvrpc-i440fx-bionic:
dmi.product.name: Standard PC (i440FX + PIIX, 1996)
dmi.product.version: pc-i440fx-bionic
dmi.sys.vendor: QEMU

Po-Hsu Lin (cypressyew) wrote :
tags: added: 5.0 sru-20191021 ubuntu-kernel-selftests

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 1849844

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
Changed in linux (Ubuntu Disco):
status: New → Incomplete
Po-Hsu Lin (cypressyew) wrote :

Looks like this is the cause:
UBUNTU: SAUCE: seccomp: test SECCOMP_USER_NOTIF_FLAG_CONTINUE
76d9cdb58f4d8e2dedab51c177cfd69bd79bd00f

Test can be compiled after reverting this patch.

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

Other bug subscribers