Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757592Ab2HGXY4 (ORCPT ); Tue, 7 Aug 2012 19:24:56 -0400 Received: from e38.co.us.ibm.com ([32.97.110.159]:37484 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030308Ab2HGWcF (ORCPT ); Tue, 7 Aug 2012 18:32:05 -0400 Message-ID: <50219739.7080505@us.ibm.com> Date: Tue, 07 Aug 2012 15:31:21 -0700 From: John Stultz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Paul Moore CC: lkml , "Serge E. Hallyn" , James Morris , selinux@tycho.nsa.gov Subject: Re: NULL pointer dereference in selinux_ip_postroute_compat References: <50215A7E.8000701@linaro.org> <50218F7E.1060004@linaro.org> <50219628.1080909@linaro.org> In-Reply-To: <50219628.1080909@linaro.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12080722-5518-0000-0000-000006A97F43 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2381 Lines: 61 On 08/07/2012 03:26 PM, John Stultz wrote: > On 08/07/2012 03:01 PM, Paul Moore wrote: >> On Tue, Aug 7, 2012 at 5:58 PM, John Stultz >> wrote: >>> On 08/07/2012 02:50 PM, Paul Moore wrote: >>>> On Tue, Aug 7, 2012 at 2:12 PM, John Stultz >>>> wrote: >>>>> Hi, >>>>> With my kvm environment using 3.6-rc1+, I'm seeing NULL pointer >>>>> dereferences in selinux_ip_postroute_compat(). It looks like the >>>>> sksec >>>>> value >>>>> is null and we die in the following line: >>>>> >>>>> if (selinux_xfrm_postroute_last(sksec->sid, skb, &ad, proto)) >>>>> >>>>> This triggers every time I shutdown the machine, but has also >>>>> triggered >>>>> randomly after a few hours. >>>>> >>>>> This is on an ubuntu 12.04 image, not using selinux. >>>> NOTE: Adding the SELinux list to the CC line >>> Thanks! >>> >>>> Hi, >>>> >>>> I'm trying to understand this and I was hoping you could you clarify a >>>> few things for me: >>>> >>>> * Is the panic in the Ubuntu 12.04 guest, or the host? If the host, >>>> could you share what distribution you are using? >>> Sorry, its a 12.04 guest. I think the host is Ubuntu 12.04 as well. >>> >>> >>>> * When you say you are not using SELinux, could you be more specific? >>>> It seems odd that you are not using SELinux but the panic is happening >>>> in a SELinux hook. >>> I just mean that, being Ubuntu, the system (userland) isn't >>> configured to >>> use selinux. SELinux is just enabled in the kernel config. >> Thanks for the quick response, I'll setup an Ubuntu guest and see if I >> can reproduce this ... something is odd. Anything non-standard about >> your guest install or anything else you think might be helpful? > Don't think so. Just a standard 64bit ubuntu 12.04 install. > > Since I'm booting kernel/initrd from the commandline, the initrd *may* > be older then 12.04, I can't quite remember when I copied that out of > the image. I'll see if it still triggers if I copy the current initrd > out. Nope, that's not it, I just triggered the same thing w/ the Ubuntu 12.04 initrd on the image. thanks -john -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/