test_260_config_arm_pan from kernel_security_test failed on Artful ARM64 system

Bug #1768496 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QA Regression Testing
Fix Released
Undecided
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

It looks like this test should be skipped on Artful (kernel < 4.15)
But the result returned FAIL instead.

  Ensure PAN for arm processors is set ... (skipped: CONFIG_ARM64_SW_TTBR0_PAN added/enabled in 4.15 and newer) FAIL

  ======================================================================
  FAIL: test_260_config_arm_pan (__main__.KernelSecurityTest)
  Ensure PAN for arm processors is set
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test-kernel-security.py", line 2370, in test_260_config_arm_pan
      self.assertEqual(expected, self._test_config(config_name))
  AssertionError: False != True

Also, this CONFIG is available in 4.13 kernel:
$ grep ARM64_SW_TTBR0_PAN /boot/config-4.13.0-39-generic
CONFIG_ARM64_SW_TTBR0_PAN=y

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: linux-image-4.13.0-39-generic 4.13.0-39.44
ProcVersionSignature: User Name 4.13.0-39.44-generic 4.13.16
Uname: Linux 4.13.0-39-generic aarch64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 May 2 09:54 seq
 crw-rw---- 1 root audio 116, 33 May 2 09:54 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.7-0ubuntu3.8
Architecture: arm64
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: Wed May 2 10:54:29 2018
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb: Error: command ['lsusb'] failed with exit code 1:
PciMultimedia:

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

ProcKernelCmdLine: console=ttyS0,9600n8r ro
RelatedPackageVersions:
 linux-restricted-modules-4.13.0-39-generic N/A
 linux-backports-modules-4.13.0-39-generic N/A
 linux-firmware 1.169.3
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

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 1768496

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
Po-Hsu Lin (cypressyew)
summary: - test_260_config_arm_pan from kernel_security_test failed on Xenial ARM64
+ test_260_config_arm_pan from kernel_security_test failed on Artful ARM64
system
description: updated
Po-Hsu Lin (cypressyew)
description: updated
Revision history for this message
Steve Beattie (sbeattie) wrote :

Thanks, the test was FAILing on artful/arm64 precisely because it was expecting not to find CONFIG_ARM64_SW_TTBR0_PAN set in the 4.13 kernel config, and it was. I have fixed up the qrt script in
https://git.launchpad.net/qa-regression-testing/commit/?id=631ed1d195a7a9499caf3e4b5807ba2e423810e0 .

Thanks!

Changed in qa-regression-testing:
status: New → Fix Released
Changed in linux (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.