** Changed in: linux (Ubuntu Bionic)
Status: New => In Progress
** Changed in: linux (Ubuntu Bionic)
Assignee: (unassigned) => Thadeu Lima de Souza Cascardo (cascardo)
** Description changed:
+ [Impact]
+ Narrow loads for bpf_perf_event_data is not possible on 32-bit arches.
+
+ [Test case]
+ Run the bpf test_verifier.
+
+ [Potential regression]
+ Loading sample_period of bpf_perf_event_data may fail.
+
+ ==============================================================
+
+
This issue was only spotted on i386 Bionic kernel.
- #146/p unpriv: spill/fill of different pointers ldx FAIL
- Unexpected error message!
- 0: (bf) r6 = r10
- 1: (07) r6 += -8
- 2: (15) if r1 == 0x0 goto pc+3
- R1=ctx(id=0,off=0,imm=0) R6=fp-8 R10=fp0
- 3: (bf) r2 = r10
- 4: (07) r2 += -76
- 5: (7b) *(u64 *)(r6 +0) = r2
- 6: (55) if r1 != 0x0 goto pc+1
- R1=ctx(id=0,off=0,imm=0) R2=fp-76 R6=fp-8 R10=fp0 fp-8=fp
- 7: (7b) *(u64 *)(r6 +0) = r1
- 8: (79) r1 = *(u64 *)(r6 +0)
- 9: (79) r1 = *(u64 *)(r1 +68)
- #352/p check bpf_perf_event_data->sample_period byte load permitted FAIL
- Failed to load prog 'Permission denied'!
- 0: (b7) r0 = 0
- 1: (71) r0 = *(u8 *)(r1 +68)
- invalid bpf_context access off=68 size=1
- #353/p check bpf_perf_event_data->sample_period half load permitted FAIL
- Failed to load prog 'Permission denied'!
- 0: (b7) r0 = 0
- 1: (69) r0 = *(u16 *)(r1 +68)
- invalid bpf_context access off=68 size=2
- #354/p check bpf_perf_event_data->sample_period word load permitted FAIL
- Failed to load prog 'Permission denied'!
- 0: (b7) r0 = 0
- 1: (61) r0 = *(u32 *)(r1 +68)
- invalid bpf_context access off=68 size=4
- #355/p check bpf_perf_event_data->sample_period dword load permitted FAIL
- Failed to load prog 'Permission denied'!
- 0: (b7) r0 = 0
- 1: (79) r0 = *(u64 *)(r1 +68)
- invalid bpf_context access off=68 size=8
+ #146/p unpriv: spill/fill of different pointers ldx FAIL
+ Unexpected error message!
+ 0: (bf) r6 = r10
+ 1: (07) r6 += -8
+ 2: (15) if r1 == 0x0 goto pc+3
+ R1=ctx(id=0,off=0,imm=0) R6=fp-8 R10=fp0
+ 3: (bf) r2 = r10
+ 4: (07) r2 += -76
+ 5: (7b) *(u64 *)(r6 +0) = r2
+ 6: (55) if r1 != 0x0 goto pc+1
+ R1=ctx(id=0,off=0,imm=0) R2=fp-76 R6=fp-8 R10=fp0 fp-8=fp
+ 7: (7b) *(u64 *)(r6 +0) = r1
+ 8: (79) r1 = *(u64 *)(r6 +0)
+ 9: (79) r1 = *(u64 *)(r1 +68)
+ #352/p check bpf_perf_event_data->sample_period byte load permitted FAIL
+ Failed to load prog 'Permission denied'!
+ 0: (b7) r0 = 0
+ 1: (71) r0 = *(u8 *)(r1 +68)
+ invalid bpf_context access off=68 size=1
+ #353/p check bpf_perf_event_data->sample_period half load permitted FAIL
+ Failed to load prog 'Permission denied'!
+ 0: (b7) r0 = 0
+ 1: (69) r0 = *(u16 *)(r1 +68)
+ invalid bpf_context access off=68 size=2
+ #354/p check bpf_perf_event_data->sample_period word load permitted FAIL
+ Failed to load prog 'Permission denied'!
+ 0: (b7) r0 = 0
+ 1: (61) r0 = *(u32 *)(r1 +68)
+ invalid bpf_context access off=68 size=4
+ #355/p check bpf_perf_event_data->sample_period dword load permitted FAIL
+ Failed to load prog 'Permission denied'!
+ 0: (b7) r0 = 0
+ 1: (79) r0 = *(u64 *)(r1 +68)
+ invalid bpf_context access off=68 size=8
Summary: 708 PASSED, 5 FAILED
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-32-generic 4.15.0-32.35
ProcVersionSignature: User Name 4.15.0-32.35-generic 4.15.18
Uname: Linux 4.15.0-32-generic i686
AlsaDevices:
- total 0
- crw-rw---- 1 root audio 116, 1 Aug 23 08:23 seq
- crw-rw---- 1 root audio 116, 33 Aug 23 08:23 timer
+ total 0
+ crw-rw---- 1 root audio 116, 1 Aug 23 08:23 seq
+ crw-rw---- 1 root audio 116, 33 Aug 23 08:23 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: i386
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: Thu Aug 23 08:41:26 2018
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb:
- Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
- Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
- Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
- Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
+ Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
+ Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
+ Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
+ Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
+ Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Dell Inc. PowerEdge R310
PciMultimedia:
-
+
ProcFB: 0 mgadrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-32-generic
root=UUID=7b91a2b8-2e02-407e-a51d-766f6d969020 ro
RelatedPackageVersions:
- linux-restricted-modules-4.15.0-32-generic N/A
- linux-backports-modules-4.15.0-32-generic N/A
- linux-firmware 1.173.1
+ linux-restricted-modules-4.15.0-32-generic N/A
+ linux-backports-modules-4.15.0-32-generic N/A
+ linux-firmware 1.173.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: 08/17/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.8.2
dmi.board.name: 05XKKK
dmi.board.vendor: Dell Inc.
dmi.board.version: A05
dmi.chassis.type: 23
dmi.chassis.vendor: Dell Inc.
dmi.modalias:
dmi:bvnDellInc.:bvr1.8.2:bd08/17/2011:svnDellInc.:pnPowerEdgeR310:pvr:rvnDellInc.:rn05XKKK:rvrA05:cvnDellInc.:ct23:cvr:
dmi.product.name: PowerEdge R310
dmi.sys.vendor: Dell Inc.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1788578
Title:
Some test in ubuntu_bpf test_verifier failed on i386 Bionic kernel
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1788578/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs