[ 43.936669] BUG: unable to handle kernel [ 43.940020] AppArmor: free_aa_profile: internal error, profile '' still on ns list [ 43.946426] NULL pointer dereference at 0000000000000009 [ 43.946426] IP: [<ffffffff812755fc>] kref_get+0xc/0x30 [ 43.946426] PGD 802502067 PUD 8024be067 PMD 0 [ 43.946426] Oops: 0000 [#1] SMP [ 43.946426] last sysfs file: /sys/kernel/uevent_seqnum [ 43.946426] CPU 5 [ 43.946426] Modules linked in: usb_storage usbhid forcedeth [ 43.946426] Pid: 2351, comm: sed Tainted: G W 2.6.31-14-generic #48-Ubuntu Sun Fire X4240 [ 43.946426] RIP: 0010:[<ffffffff812755fc>] [<ffffffff812755fc>] kref_get+0xc/0x30 [ 43.946426] RSP: 0018:ffff8808014d3e88 EFLAGS: 00010296 [ 43.946426] RAX: 0000000000000000 RBX: 0000000000000009 RCX: 000000000003ffff [ 43.946426] RDX: 0000000000000000 RSI: 0000000000000082 RDI: 0000000000000009 [ 43.946426] RBP: ffff8808014d3e98 R08: 0000000000000034 R09: 0000000000012334 [ 43.946426] R10: 0000000000000005 R11: 0000000000000000 R12: ffff880802430000 [ 43.946426] R13: 00007fff6bb24268 R14: 00007fc049880a00 R15: 0000000000000000 [ 43.946426] FS: 00007faae32a36e0(0000) GS:ffffc90000a00000(0000) knlGS:0000000000000000 [ 43.946426] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 43.946426] CR2: 0000000000000009 CR3: 0000000802978000 CR4: 00000000000006e0 [ 43.946426] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 43.946426] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 43.946426] Process sed (pid: 2351, threadinfo ffff8808014d2000, task ffff880802430000) [ 43.946426] Stack: [ 43.946426] ffff880802430000 ffff880827c0b000 ffff8808014d3eb8 ffffffff8141a8d2 [ 43.946426] <0> 0000000000000282 ffff880801df9980 ffff8808014d3ed8 ffffffff8141fdd7 [ 43.946426] <0> ffff880802430000 ffff880801df9980 ffff8808014d3ee8 ffffffff812206e1 [ 43.946426] Call Trace: [ 43.946426] [<ffffffff8141a8d2>] aa_dup_task_context+0x52/0x60 [ 43.946426] [<ffffffff8141fdd7>] apparmor_cred_prepare+0x17/0x40 [ 43.946426] [<ffffffff812206e1>] security_prepare_creds+0x11/0x20 [ 43.946426] [<ffffffff8107ef1c>] prepare_creds+0x9c/0xc0 [ 43.946426] [<ffffffff8111d7a9>] sys_faccessat+0x59/0x1d0 [ 43.946426] [<ffffffff8111d933>] sys_access+0x13/0x20 [ 43.946426] [<ffffffff81012002>] system_call_fastpath+0x16/0x1b [ 43.946426] Code: 6e 81 e8 e8 91 de ff eb cb be 40 00 00 00 48 c7 c7 18 95 6e 81 e8 d5 91 de ff eb b8 0f 1f 00 55 48 89 e5 53 48 89 fb 48 83 ec 08 <8b> 07 85 c0 74 0a f0 ff 03 48 83 c4 08 5b c9 c3 be 2b 00 00 00 [ 43.946426] RIP [<ffffffff812755fc>] kref_get+0xc/0x30 [ 43.946426] RSP <ffff8808014d3e88> [ 43.946426] CR2: 0000000000000009 [ 46.834598] ---[ end trace a2628d16cd7018c9 ]--- [ 43.950011] ------------[ cut here ]------------ [ 43.950011] kernel BUG at /build/buildd/linux-2.6.31/ubuntu/apparmor/policy.c:521! [ 43.950011] invalid opcode: 0000 [#2] SMP [ 43.950011] last sysfs file: /sys/kernel/uevent_seqnum [ 43.950011] CPU 0 [ 43.950011] Modules linked in: usb_storage usbhid forcedeth [ 43.950011] Pid: 0, comm: swapper Tainted: G D W 2.6.31-14-generic #48-Ubuntu Sun Fire X4240 [ 43.950011] RIP: 0010:[<ffffffff8141d4e2>] [<ffffffff8141d4e2>] free_aa_profile+0x132/0x160 [ 43.950011] RSP: 0018:ffffc90000003e00 EFLAGS: 00010282 [ 43.950011] RAX: 000000000000005c RBX: ffff880827c0b000 RCX: 000000000000005a [ 43.950011] RDX: 0000000000000000 RSI: 0000000000000082 RDI: 0000000000000246 [ 43.950011] RBP: ffffc90000003e10 R08: 00000000fffffffe R09: 0000000000000000 [ 43.950011] R10: 0000000000000005 R11: 0000000000000000 R12: ffff880827c0b010 [ 43.950011] R13: 0000000000000002 R14: 0000000000000008 R15: 0000000000010000 [ 43.950011] FS: 00007faae32a36e0(0000) GS:ffffc90000000000(0000) knlGS:0000000000000000 [ 43.950011] CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b [ 43.950011] CR2: 00007faae2d9b902 CR3: 0000000001001000 CR4: 00000000000006f0 [ 43.950011] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 43.950011] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 43.950011] Process swapper (pid: 0, threadinfo ffffffff81770000, task ffffffff81798600) [ 43.950011] Stack: [ 43.950011] ffff880827c0b008 ffffffff8141d510 ffffc90000003e20 ffffffff8141d51d [ 43.950011] <0> ffffc90000003e40 ffffffff812755b7 ffff8808031dcc60 ffff880802482200 [ 43.950011] <0> ffffc90000003e60 ffffffff8141a989 ffffffff8194d500 ffff880802482180 [ 43.950011] Call Trace: [ 43.950011] <IRQ> [ 43.950011] [<ffffffff8141d510>] ? free_aa_profile_kref+0x0/0x10 [ 43.950011] [<ffffffff8141d51d>] free_aa_profile_kref+0xd/0x10 [ 43.950011] [<ffffffff812755b7>] kref_put+0x37/0x70 [ 43.950011] [<ffffffff8141a989>] aa_free_task_context+0x29/0x90 [ 43.950011] [<ffffffff8141fe18>] apparmor_cred_free+0x18/0x20 [ 43.950011] [<ffffffff812206c1>] security_cred_free+0x11/0x20 [ 43.950011] [<ffffffff8107ec2d>] put_cred_rcu+0x1d/0x90 [ 43.950011] [<ffffffff810b76d5>] __rcu_process_callbacks+0x135/0x300 [ 43.950011] [<ffffffff810b78c6>] rcu_process_callbacks+0x26/0x50 [ 43.950011] [<ffffffff8106549d>] __do_softirq+0xbd/0x200 [ 43.950011] [<ffffffff810131ec>] call_softirq+0x1c/0x30 [ 43.950011] [<ffffffff81014bc5>] do_softirq+0x55/0x90 [ 43.950011] [<ffffffff81065205>] irq_exit+0x85/0x90 [ 43.950011] [<ffffffff8102cbdc>] smp_apic_timer_interrupt+0x6c/0xa0 [ 43.950011] [<ffffffff81012bb3>] apic_timer_interrupt+0x13/0x20 [ 43.950011] <EOI> [ 43.950011] [<ffffffff810356f6>] ? native_safe_halt+0x6/0x10 [ 43.950011] [<ffffffff8101a27c>] ? default_idle+0x4c/0xe0 [ 43.950011] [<ffffffff8101a36e>] ? c1e_idle+0x5e/0x120 [ 43.950011] [<ffffffff81010e12>] ? cpu_idle+0xb2/0x100 [ 43.950011] [<ffffffff81514c56>] ? rest_init+0x66/0x70 [ 43.950011] [<ffffffff8183a047>] ? start_kernel+0x352/0x35b [ 43.950011] [<ffffffff8183959a>] ? x86_64_start_reservations+0x125/0x129 [ 43.950011] [<ffffffff81839698>] ? x86_64_start_kernel+0xfa/0x109 [ 43.950011] Code: 0c ff ff ff 48 89 da 48 c7 c6 40 2a 5a 81 48 c7 c7 af 39 72 81 31 c0 e8 0e 96 10 00 e9 ef fe ff ff e8 53 17 c4 ff 85 c0 90 75 08 <0f> 0b eb fe 0f 0b eb fe 48 8b 13 48 c7 c6 40 2a 5a 81 48 c7 c7 [ 43.950011] RIP [<ffffffff8141d4e2>] free_aa_profile+0x132/0x160 [ 43.950011] RSP <ffffc90000003e00> [ 46.835297] ---[ end trace a2628d16cd7018ca ]--- [ 46.835299] Kernel panic - not syncing: Fatal exception in interrupt [ 46.835302] Pid: 0, comm: swapper Tainted: G D W 2.6.31-14-generic #48-Ubuntu [ 46.835305] Call Trace: [ 46.835306] <IRQ> [<ffffffff81526a29>] panic+0x73/0x12b [ 46.835312] [<ffffffff8152a5ba>] oops_end+0xea/0xf0 [ 46.835315] [<ffffffff81015ff6>] die+0x56/0x90 [ 46.835318] [<ffffffff81529e24>] do_trap+0xc4/0x170 [ 46.835320] [<ffffffff81013b80>] do_invalid_op+0x90/0xb0 [ 46.835322] [<ffffffff8141d4e2>] ? free_aa_profile+0x132/0x160 [ 46.835325] [<ffffffff8105ec60>] ? try_acquire_console_sem+0x10/0x60 [ 46.835328] [<ffffffff81012e7b>] invalid_op+0x1b/0x20 [ 46.835330] [<ffffffff8141d4e2>] ? free_aa_profile+0x132/0x160 [ 46.835332] [<ffffffff8141d510>] ? free_aa_profile_kref+0x0/0x10 [ 46.835335] [<ffffffff8141d51d>] free_aa_profile_kref+0xd/0x10 [ 46.835337] [<ffffffff812755b7>] kref_put+0x37/0x70 [ 46.835340] [<ffffffff8141a989>] aa_free_task_context+0x29/0x90 [ 46.835343] [<ffffffff8141fe18>] apparmor_cred_free+0x18/0x20 [ 46.835346] [<ffffffff812206c1>] security_cred_free+0x11/0x20 [ 46.835348] [<ffffffff8107ec2d>] put_cred_rcu+0x1d/0x90 [ 46.835350] [<ffffffff810b76d5>] __rcu_process_callbacks+0x135/0x300 [ 46.835353] [<ffffffff810b78c6>] rcu_process_callbacks+0x26/0x50 [ 46.835355] [<ffffffff8106549d>] __do_softirq+0xbd/0x200 [ 46.835358] [<ffffffff810131ec>] call_softirq+0x1c/0x30 [ 46.835360] [<ffffffff81014bc5>] do_softirq+0x55/0x90 [ 46.835362] [<ffffffff81065205>] irq_exit+0x85/0x90 [ 46.835364] [<ffffffff8102cbdc>] smp_apic_timer_interrupt+0x6c/0xa0 [ 46.835367] [<ffffffff81012bb3>] apic_timer_interrupt+0x13/0x20 [ 46.835369] <EOI> [<ffffffff810356f6>] ? native_safe_halt+0x6/0x10 [ 46.835373] [<ffffffff8101a27c>] ? default_idle+0x4c/0xe0 [ 46.835376] [<ffffffff8101a36e>] ? c1e_idle+0x5e/0x120 [ 46.835379] [<ffffffff81010e12>] ? cpu_idle+0xb2/0x100 [ 46.835381] [<ffffffff81514c56>] ? rest_init+0x66/0x70 [ 46.835383] [<ffffffff8183a047>] ? start_kernel+0x352/0x35b [ 46.835386] [<ffffffff8183959a>] ? x86_64_start_reservations+0x125/0x129 [ 46.835389] [<ffffffff81839698>] ? x86_64_start_kernel+0xfa/0x109