BUG: unable to handle kernel NULL pointer dereference (aa_label_merge)
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | AppArmor |
Medium
|
John Johansen | ||
| | linux (Ubuntu) |
Undecided
|
John Johansen | ||
| | Trusty |
Undecided
|
John Johansen | ||
| | Vivid |
Undecided
|
Unassigned | ||
| | Wily |
Undecided
|
John Johansen | ||
Bug Description
I had a kernel problem with one of my high availability VMs. This was not the first occurence of the problem, it seems to appear every now and then.
The VM froze because of the Kernel bug appended as a text file. I had to hard reset it.
I am running Ubuntu 14.04.2 Kernel 3.16.0-34-generic with libapache2-
Unfortunately I am unable to reproduce the bug at will. This is a serious problem for high availability VMs.
Looking at the trace, I assume this is a bug in AppArmor.
---
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 May 15 14:13 seq
crw-rw---- 1 root audio 116, 33 May 15 14:13 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.14.1-0ubuntu3.10
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=
InstallationDate: Installed on 2015-03-25 (61 days ago)
InstallationMedia: Ubuntu-Server 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
IwConfig:
eth0 no wireless extensions.
lo no wireless extensions.
Lsusb:
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
Package: linux (not installed)
PciMultimedia:
ProcEnviron:
LANGUAGE=en_US:en
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 cirrusdrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.127.11
RfKill: Error: [Errno 2] No such file or directory
Tags: trusty
Uname: Linux 3.16.0-37-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
WifiSyslog:
_MarkForUpload: True
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: rel-1.7.
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.
dmi.modalias: dmi:bvnSeaBIOS:
dmi.product.name: Standard PC (i440FX + PIIX, 1996)
dmi.product.
dmi.sys.vendor: QEMU
| Roger Lehmann (roger-lehmann-u) wrote : | #1 |
| Changed in apparmor: | |
| importance: | Undecided → Medium |
| status: | New → Confirmed |
| Kees Cook (kees) wrote : | #2 |
| summary: |
- BUG: unable to handle kernel NULL pointer dereference + BUG: unable to handle kernel NULL pointer dereference (aa_label_merge) |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1448912
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 |
| tags: | added: utopic |
apport information
| tags: | added: apport-collected trusty |
| description: | updated |
apport information
apport information
apport information
apport information
apport information
apport information
apport information
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Kees Cook (kees) wrote : | #12 |
Three more crashes today, one after the other (the trigger must be some kind of Apache access pattern, still trying to figure that out.)
| Kees Cook (kees) wrote : | #13 |
| Kees Cook (kees) wrote : | #14 |
| Changed in linux (Ubuntu): | |
| assignee: | nobody → John Johansen (jjohansen) |
| Kees Cook (kees) wrote : | #15 |
Here is the Oops from a jj-special kernel. similar, but different.
| John Johansen (jjohansen) wrote : | #16 |
Yep, thanks. I think I've got it now. I am working on a fix
| Aidan Hobson Sayers (aidanhs) wrote : | #17 |
Not sure if this is the same issue or not, my null pointer is *not* in aa_label_merge - "BUG: unable to handle kernel NULL pointer dereference (aa_file_perm)".
It does have some significant similarities in the trace though. I've had this on 14.04 kernel 3.16 and 15.04 kernel 3.19.
| Aidan Hobson Sayers (aidanhs) wrote : | #18 |
I should note that the above is using AUFS (via docker) - https:/
| Kees Cook (kees) wrote : | #19 |
The debug kernels reduced the frequency of the Oopsing, but this has made AppArmor unusable with Apache for me.
| Changed in linux (Ubuntu Trusty): | |
| status: | New → Confirmed |
| Changed in linux (Ubuntu Vivid): | |
| status: | New → Confirmed |
| John Johansen (jjohansen) wrote : | #20 |
there are new test images in
http://
there has been some testing of these and so far they appear to fix the issue
| Kees Cook (kees) wrote : | #21 |
It's been 3 days running the test kernel and I've seen no problems. Very encouraging!
| Kees Cook (kees) wrote : | #22 |
Still no issues for me. Yay! :)
| Launchpad Janitor (janitor) wrote : | #23 |
This bug was fixed in the package linux - 4.4.0-9.24
---------------
linux (4.4.0-9.24) xenial; urgency=low
[ Tim Gardner ]
* Release Tracking Bug
- LP: #1551319
* AppArmor logs denial for when the device path is ENOENT (LP: #1482943)
- SAUCE: apparmor: fix log of apparmor audit message when kern_path() fails
* BUG: unable to handle kernel NULL pointer dereference (aa_label_merge) (LP:
#1448912)
- SAUCE: apparmor: Fix: insert race between label_update and label_merge
- SAUCE: apparmor: Fix: ensure aa_get_newest will trip debugging if the
replacedby is not setup
- SAUCE: apparmor: Fix: label merge handling of marking unconfined and stale
- SAUCE: apparmor: Fix: refcount race between locating in labelset and get
- SAUCE: apparmor: Fix: ensure new labels resulting from merge have a
replacedby
- SAUCE: apparmor: Fix: label_vec_merge insertion
- SAUCE: apparmor: Fix: deadlock in aa_put_label() call chain
- SAUCE: apparmor: Fix: add required locking of __aa_update_
merge path
- SAUCE: apparmor: Fix: convert replacedby update to be protected by the
labelset lock
- SAUCE: apparmor: Fix: update replacedby allocation to take a gfp parameter
* apparmor kernel BUG kills firefox (LP: #1430546)
- SAUCE: apparmor: Disallow update of cred when then subjective != the
objective cred
- SAUCE: apparmor: rework retrieval of the current label in the profile update
case
* sleep from invalid context in aa_move_mount (LP: #1539349)
- SAUCE: apparmor: fix sleep from invalid context
* s390x: correct restore of high gprs on signal return (LP: #1550468)
- s390/compat: correct restore of high gprs on signal return
* missing SMAP support (LP: #1550517)
- x86/entry/compat: Add missing CLAC to entry_INT80_32
* Floating-point exception handler receives empty Data-Exception Code in
Floating Point Control register (LP: #1548414)
- s390/fpu: signals vs. floating point control register
* kvm fails to boot GNU Hurd kernels with 4.4 Xenial kernel (LP: #1550596)
- KVM: x86: fix conversion of addresses to linear in 32-bit protected mode
* Surelock GA2 SP1: capiredp01: cxl_init_adapter fails for CAPI devices
0000:01:00.0 and 0005:01:00.0 after upgrading to 840.10 Platform firmware
build fips840/
- cxl: Fix PSL timebase synchronization detection
* [Feature]EDAC support for Knights Landing (LP: #1519631)
- EDAC, sb_edac: Set fixed DIMM width on Xeon Knights Landing
* Various failures of kernel_security suite on Xenial kernel on s390x arch
(LP: #1531327)
- [config] s390x -- CONFIG_
* Unable to install VirtualBox Guest Service in 15.04 (LP: #1434579)
- [Config] Provides: virtualbox-
* linux is missing provides for virtualbox-
#1507588)
- [Config] Provides: virtualbox-
* Backport more recent driver for SKL, KBL and BXT graphics (LP: #1540390)
- SAUCE: i915_bpo: Provide a backport driver for SKL, KBL & BXT graphics
- SA...
| Changed in linux (Ubuntu): | |
| status: | Confirmed → Fix Released |
| Tyler Hicks (tyhicks) wrote : | #24 |
I've marked the releases which have went end-of-life as "Won't Fix". I'm not sure if John is planning on SRU'ing the fix to Trusty so I'll leave that bug task alone.
| Changed in linux (Ubuntu Vivid): | |
| status: | Confirmed → Won't Fix |
| Changed in linux (Ubuntu Wily): | |
| status: | Confirmed → Won't Fix |
| Changed in linux (Ubuntu Trusty): | |
| assignee: | nobody → John Johansen (jjohansen) |
| Changed in apparmor: | |
| assignee: | nobody → John Johansen (jjohansen) |


I saw the same thing this morning.
Ubuntu 14.04.2 LTS 3.16.0- 30-generic mod-apparmor 2.8.95~ 2430-0ubuntu5. 1
Kernel linux-image-
libapache2-
apache2-mpm-prefork 2.4.7-1ubuntu4.4
Attached is first the warning (like in bug 1447530), and then the Oops, 9 seconds later.