test_120_smep_works in ubuntu_qrt_kernel_security failed on AWS Bionic

Bug #1758246 reported by Po-Hsu Lin on 2018-03-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Unassigned
Bionic
Medium
Unassigned

Bug Description

This test was skipped on -release kernel 4.15.0-12:
  test_120_smep_works (__main__.KernelSecurityTest)
  SMEP works ... (skipped: unfinished test) ok

But failed with the 4.15.0-13 proposed kernel:

  FAIL: test_120_smep_works (__main__.KernelSecurityTest)
  SMEP works
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test-kernel-security.py", line 1666, in test_120_smep_works
      self.assertShellExitEquals(0, ["insmod", "execuser/execuser.ko"])
    File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1134, in assertShellExitEquals
      self.assertEqual(expected, rc, msg + result + report)
  AssertionError: Got exit code 1, expected 0
  Command: 'insmod', 'execuser/execuser.ko'
  Output:
  insmod: ERROR: could not insert module execuser/execuser.ko: Invalid module format

This issue was spotted with manual run for the ubuntu_qrt_kernel_security test. The job executed by the jenkins will have this test skipped like the result in 4.15.0-12

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-13-generic 4.15.0-13.14
ProcVersionSignature: User Name 4.15.0-13.14-generic 4.15.10
Uname: Linux 4.15.0-13-generic x86_64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Mar 23 04:29 seq
 crw-rw---- 1 root audio 116, 33 Mar 23 04:29 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.8-0ubuntu10
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:
CRDA: N/A
Date: Fri Mar 23 05:58:55 2018
Ec2AMI: ami-266cf15e
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-west-2a
Ec2InstanceType: x1e.xlarge
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: Xen HVM domU
PciMultimedia:

ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-13-generic root=UUID=f06dc295-8830-4ede-8aec-fda10bf30396 ro console=tty1 console=ttyS0 nvme_core.io_timeout=255
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-13-generic N/A
 linux-backports-modules-4.15.0-13-generic N/A
 linux-firmware N/A
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/24/2006
dmi.bios.vendor: Xen
dmi.bios.version: 4.2.amazon
dmi.chassis.type: 1
dmi.chassis.vendor: Xen
dmi.modalias: dmi:bvnXen:bvr4.2.amazon:bd08/24/2006:svnXen:pnHVMdomU:pvr4.2.amazon:cvnXen:ct1:cvr:
dmi.product.name: HVM domU
dmi.product.version: 4.2.amazon
dmi.sys.vendor: Xen

Po-Hsu Lin (cypressyew) wrote :

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu Bionic):
importance: Undecided → Medium
tags: added: kernel-da-key
Changed in linux (Ubuntu Bionic):
status: Confirmed → Triaged
Khaled El Mously (kmously) wrote :

I'm unable to reproduce this - probably because my CPU doesn't support SMEP

Po-Hsu Lin (cypressyew) wrote :

It looks like the cause is the attempt to insert the execuser.ko:
  insmod: ERROR: could not insert module execuser/execuser.ko: Invalid module format

Maybe you can try to insert the module first to see if this error can be reproduced on your side?

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

Other bug subscribers