From mboxrd@z Thu Jan 1 00:00:00 1970 Reply-To: kernel-hardening@lists.openwall.com Sender: Vasiliy Kulikov Date: Mon, 1 Aug 2011 23:03:41 +0400 From: Vasiliy Kulikov Message-ID: <20110801190341.GA6898@albatros> References: <20110801180151.GA26686@albatros> <20110801112021.25ec9041.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110801112021.25ec9041.akpm@linux-foundation.org> Subject: Re: [kernel-hardening] Re: initcall dependency problem (ns vs. threads) To: Andrew Morton Cc: Ingo Molnar , kernel-hardening@lists.openwall.com, "Paul E. McKenney" , Manuel Lauss , linux-kernel@vger.kernel.org, Richard Weinberger , torvalds@linux-foundation.org, Marc Zyngier List-ID: > Are we talking about init_ipc_ns.ids[] here? If so, did you try > initializing the three rwsems at compile-time? > > That's rather a nasty hack though. It'd be better to run the mystery > init function before starting the threads. Looks like it solves the race. However, I think it should be solved on another level. Other bugs might be hidden with this race. Thanks, -- Vasiliy Kulikov http://www.openwall.com - bringing security into open computing environments