← Back to team overview

kernel-packages team mailing list archive

[Bug 1423810] Re: [krillin] apparmor fd_inheritance regression test causes kernel to crash

 

Bug is in the various kernels. apparmor task is to track getting the
patch into the backports tree.

** Changed in: linux-flo (Ubuntu)
       Status: New => In Progress

** Changed in: linux-flo (Ubuntu)
   Importance: Undecided => Medium

** Changed in: linux-flo (Ubuntu)
     Assignee: (unassigned) => John Johansen (jjohansen)

** Changed in: linux-goldfish (Ubuntu)
       Status: New => In Progress

** Changed in: linux-goldfish (Ubuntu)
   Importance: Undecided => Medium

** Changed in: linux-goldfish (Ubuntu)
     Assignee: (unassigned) => John Johansen (jjohansen)

** Changed in: linux-mako (Ubuntu)
       Status: New => In Progress

** Changed in: linux-mako (Ubuntu)
   Importance: Undecided => Medium

** Changed in: linux-mako (Ubuntu)
     Assignee: (unassigned) => John Johansen (jjohansen)

** Tags added: aa-kernel

** Changed in: linux-manta (Ubuntu)
       Status: New => In Progress

** Changed in: linux-manta (Ubuntu)
   Importance: Undecided => Medium

** Changed in: linux-manta (Ubuntu)
     Assignee: (unassigned) => John Johansen (jjohansen)

** Changed in: apparmor (Ubuntu)
       Status: New => Triaged

** Changed in: apparmor (Ubuntu)
     Assignee: (unassigned) => John Johansen (jjohansen)

** Summary changed:

- [krillin] apparmor fd_inheritance regression test causes kernel to crash
+ apparmor fd_inheritance regression test causes kernel to crash on touch kernel backports

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-manta in Ubuntu.
https://bugs.launchpad.net/bugs/1423810

Title:
  apparmor fd_inheritance regression test causes kernel to crash on
  touch kernel backports

Status in apparmor package in Ubuntu:
  Triaged
Status in linux-flo package in Ubuntu:
  In Progress
Status in linux-goldfish package in Ubuntu:
  In Progress
Status in linux-mako package in Ubuntu:
  In Progress
Status in linux-manta package in Ubuntu:
  In Progress

Bug description:
  On krillin with vivid-proposed, running the fd_inheritance test from
  the apparmor regression tests causes the kernel to crash and
  spontaneously reboot the device:

  phablet@ubuntu-phablet:~/src/apparmor-2.9.1/tests/regression/apparmor$ logger "running fd_inheritance tests now"
  phablet@ubuntu-phablet:~/src/apparmor-2.9.1/tests/regression/apparmor$ sudo sh -c 'VERBOSE=1 bash fd_inheritance.sh'
  ok: fd inheritance; unconfined -> unconfined
  ok: fd inheritance; confined -> unconfined
  ok: fd inheritance; confined (bad perm) -> unconfined
  ok: fd inheritance; confined (no perm) -> unconfined
  ok: fd inheritance; unconfined -> confined
  ok: fd inheritance; unconfined -> confined (no perm)
  ok: fd inheritance; confined -> confined
  ok: fd inheritance; confined (bad perm) -> confined
  ok: fd inheritance; confined (no perm) -> confined
  ok: fd inheritance; confined -> confined (bad perm)
  [device reboots here]

  This is what syslog sees before it falls over, though nothing after the logger invocation makes it to the disk:
  Feb 20 03:51:47 ubuntu-phablet phablet: running fd_inheritance tests now
  Feb 20 03:52:05 ubuntu-phablet kernel: [  489.942611]type=1400 audit(1424404325.798:141): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" pid=7449 comm="apparmor_parser"
  Feb 20 03:52:06 ubuntu-phablet kernel: [  490.272023]type=1400 audit(1424404326.128:142): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" pid=7477 comm="apparmor_parser"
  Feb 20 03:52:06 ubuntu-phablet kernel: [  490.305028]type=1400 audit(1424404326.158:143): apparmor="DENIED" operation="open" profile="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" name="/tmp/sdtest.7416-27080-LFDs8z/file" pid=7483 comm="fd_inheritance" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
  Feb 20 03:52:06 ubuntu-phablet kernel: [  490.573275]type=1400 audit(1424404326.428:144): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" pid=7505 comm="apparmor_parser"
  Feb 20 03:52:06 ubuntu-phablet kernel: [  490.606454]type=1400 audit(1424404326.468:145): apparmor="DENIED" operation="open" profile="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" name="/tmp/sdtest.7416-27080-LFDs8z/file" pid=7510 comm="fd_inheritance" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
  Feb 20 03:52:06 ubuntu-phablet kernel: [  490.886149]type=1400 audit(1424404326.748:146): apparmor="STATUS" operation="profile_remove" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" pid=7536 comm="apparmor_parser"
  Feb 20 03:52:06 ubuntu-phablet kernel: [  490.916538]type=1400 audit(1424404326.778:147): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritor" pid=7537 comm="apparmor_parser"
  Feb 20 03:52:07 ubuntu-phablet kernel: [  491.226336]type=1400 audit(1424404327.088:148): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritor" pid=7568 comm="apparmor_parser"
  Feb 20 03:52:07 ubuntu-phablet kernel: [  491.734888]type=1400 audit(1424404327.588:149): apparmor="STATUS" operation="profile_remove" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritor" pid=7612 comm="apparmor_parser"
  Feb 20 03:52:07 ubuntu-phablet kernel: [  491.786710]type=1400 audit(1424404327.648:150): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" pid=7613 comm="apparmor_parser"
  Feb 20 03:52:07 ubuntu-phablet kernel: [  491.787186]type=1400 audit(1424404327.648:151): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritor" pid=7613 comm="apparmor_parser"
  Feb 20 03:52:08 ubuntu-phablet kernel: [  492.354445]type=1400 audit(1424404328.208:152): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" pid=7658 comm="apparmor_parser"
  Feb 20 03:52:08 ubuntu-phablet kernel: [  492.354874]type=1400 audit(1424404328.208:153): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritor" pid=7658 comm="apparmor_parser"
  Feb 20 03:52:08 ubuntu-phablet kernel: [  492.398480]type=1400 audit(1424404328.258:154): apparmor="DENIED" operation="open" profile="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" name="/tmp/sdtest.7416-27080-LFDs8z/file" pid=7665 comm="fd_inheritance" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
  Feb 20 03:52:08 ubuntu-phablet kernel: [  492.889451]type=1400 audit(1424404328.748:155): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" pid=7704 comm="apparmor_parser"
  Feb 20 03:52:08 ubuntu-phablet kernel: [  492.889889]type=1400 audit(1424404328.748:156): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritor" pid=7704 comm="apparmor_parser"
  Feb 20 03:52:08 ubuntu-phablet kernel: [  492.933754]type=1400 audit(1424404328.788:157): apparmor="DENIED" operation="open" profile="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" name="/tmp/sdtest.7416-27080-LFDs8z/file" pid=7710 comm="fd_inheritance" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
  Feb 20 03:52:09 ubuntu-phablet kernel: [  493.453991]type=1400 audit(1424404329.308:158): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" pid=7749 comm="apparmor_parser"
  Feb 20 03:52:09 ubuntu-phablet kernel: [  493.454422]type=1400 audit(1424404329.308:159): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritor" pid=7749 comm="apparmor_parser"
  Feb 20 03:52:09 ubuntu-phablet kernel: [  493.498903]type=1400 audit(1424404329.358:160): apparmor="DENIED" operation="file_inherit" profile="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritor" name="/tmp/sdtest.7416-27080-LFDs8z/file" pid=7755 comm="fd_inheritor" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
  Feb 20 03:52:09 ubuntu-phablet kernel: [  493.500082]type=1400 audit(1424404329.358:161): apparmor="DENIED" operation="file_perm" profile="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritor" name="/tmp/sdtest.7416-27080-LFDs8z/file" pid=7755 comm="fd_inheritor" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
  Feb 20 03:52:09 ubuntu-phablet kernel: [  494.025605]type=1400 audit(1424404329.878:162): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritance" pid=7798 comm="apparmor_parser"
  Feb 20 03:52:09 ubuntu-phablet kernel: [  494.026398]type=1400 audit(1424404329.888:163): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/home/phablet/src/apparmor-2.9.1/tests/regression/apparmor/fd_inheritor" pid=7798 comm="apparmor_parser"

  Note that because krillin is based on a 3.4 kernel, dmesg -w does not
  work to see anything emitted by the kernel before the spontaneous
  reboot.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: apparmor 2.8.98-0ubuntu4
  ProcVersionSignature: Error: [Errno 2] No such file or directory: '/proc/version_signature'
  Uname: Linux 3.4.67 armv7l
  ApportVersion: 2.16.1-0ubuntu2
  Architecture: armhf
  Date: Fri Feb 20 06:31:26 2015
  InstallationDate: Installed on 2015-02-18 (1 days ago)
  InstallationMedia: Ubuntu Vivid Vervet (development branch) - armhf (20150218-191234)
  KernLog:
   
  ProcKernelCmdline: console=ttyMT0,921600n1 vmalloc=496M slub_max_order=0 lcm=1-hx8389_qhd_dsi_vdo_truly fps=6658 bootprof.pl_t=2415 bootprof.lk_t=1678 printk.disable_uart=1 boot_reason=4 datapart=/dev/mmcblk0p7 systempart=/dev/mmcblk0p6 androidboot.serialno=JB050183 lcm=1-hx8389_qhd_dsi_vdo_truly fps=6658 bootprof.pl_t=2415 bootprof.lk_t=1678 printk.disable_uart=1 boot_reason=4 datapart=/dev/mmcblk0p7 systempart=/dev/mmcblk0p6 androidboot.serialno=JB050183
  PstreeP: Error: [Errno 2] No such file or directory: '/usr/bin/pstree'
  SourcePackage: apparmor
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1423810/+subscriptions