Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759188Ab2HHUEK (ORCPT ); Wed, 8 Aug 2012 16:04:10 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:47770 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752553Ab2HHUEJ (ORCPT ); Wed, 8 Aug 2012 16:04:09 -0400 Subject: Re: NULL pointer dereference in selinux_ip_postroute_compat From: Eric Dumazet To: Paul Moore Cc: John Stultz , "Serge E. Hallyn" , lkml , James Morris , selinux@tycho.nsa.gov, Eric Dumazet , john.johansen@canonical.com In-Reply-To: <1469977.Edv3iizobX@sifl> References: <50215A7E.8000701@linaro.org> <17464273.DGOeQvDGIE@sifl> <1344454701.28967.233.camel@edumazet-glaptop> <1469977.Edv3iizobX@sifl> Content-Type: text/plain; charset="UTF-8" Date: Wed, 08 Aug 2012 22:04:02 +0200 Message-ID: <1344456242.28967.238.camel@edumazet-glaptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1136 Lines: 29 On Wed, 2012-08-08 at 15:50 -0400, Paul Moore wrote: > Yep. I was just trying to see if there was a way we could avoid having to > make it conditional on CONFIG_SECURITY, but I think this is a better approach > than the alternatives. > > I'm also looking into making sure we get a sane LSM label on the per-cpu sock > as security_sk_alloc() just allocates and initializes the LSM blob to a basic > starting value (unlabeled_t in the case of SELinux) ... that is likely to be > the tricky bit. It seems previous code did the same thing in sk_prot_alloc() ? > > Regardless, I'm okay with us merging the patch below now to fix the panic and > I'll supply a follow-up patch to fix the labeling once I figure out a solution > that seems reasonable. Does that work for you? David? > > Acked-by: Paul Moore John, could you confirm this fixes the problem ? -- 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/