Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752078Ab1DKN5k (ORCPT ); Mon, 11 Apr 2011 09:57:40 -0400 Received: from mail-vw0-f46.google.com ([209.85.212.46]:44770 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751406Ab1DKN5i (ORCPT ); Mon, 11 Apr 2011 09:57:38 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wgV7BwT33ddlvbojY54OSOJGCLFXXM2nvu2KLmDLLzOkrNrNKp5eWf3WRBa1mC1XLz Ld1eAqLUtWP6SBuaHRg0socO1qjttL4MtrhZndHJxTgC1RN8y7sLfG0Nsw2rN0VH549K +w8IoVmrdahuC77xfLBtGtepL09p8mc2dlcnc= MIME-Version: 1.0 In-Reply-To: <20110411133602.GA5321@hallyn.com> References: <4D9431B3.2070305@parallels.com> <20110405034641.GC6764@hallyn.com> <4D9F24F2.9020603@parallels.com> <4DA30222.5040902@parallels.com> <20110411133602.GA5321@hallyn.com> Date: Mon, 11 Apr 2011 16:57:37 +0300 Message-ID: Subject: Re: [PATCH 3/3] Compare namespaces when comparing addresses in auth_unix cache. From: Alexey Dobriyan To: "Serge E. Hallyn" Cc: Rob Landley , linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, containers@lists.linux-foundation.org, Trond Myklebust , Tim Spriggs , Kir Kolyshkin , Pavel Emelyanov 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: 525 Lines: 13 On Mon, Apr 11, 2011 at 4:36 PM, Serge E. Hallyn wrote: > Besides use-after-free, the other concern is an invalid net_eq() > result due to the * being re-used for a new netns. Exactly. "struct net" dies last, no exceptions, anything different is a disaster. -- 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/