Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756856Ab2HGVuZ (ORCPT ); Tue, 7 Aug 2012 17:50:25 -0400 Received: from mail-qa0-f46.google.com ([209.85.216.46]:53880 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755927Ab2HGVuY (ORCPT ); Tue, 7 Aug 2012 17:50:24 -0400 MIME-Version: 1.0 X-Originating-IP: [76.119.162.148] In-Reply-To: <50215A7E.8000701@linaro.org> References: <50215A7E.8000701@linaro.org> Date: Tue, 7 Aug 2012 17:50:23 -0400 Message-ID: Subject: Re: NULL pointer dereference in selinux_ip_postroute_compat From: Paul Moore To: John Stultz Cc: lkml , "Serge E. Hallyn" , James Morris , selinux@tycho.nsa.gov Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1538 Lines: 43 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 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? * 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. Thanks. > Running with the following kvm line: > kvm -nographic -smp 4 -m 1G -hda disk.img -net user -net nic,model=virtio > -redir tcp:4400::22 -kernel ./bzImage -initrd initrd.img-1-jstultz -append > "root=UUID=b08aa86a-4b16-488f-a3de-33c2cf335bf0 ro console=ttyS0,115200n8" > > Two different traces below. Config attached. -- paul moore www.paul-moore.com -- 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/