From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752742Ab1HATJR (ORCPT ); Mon, 1 Aug 2011 15:09:17 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:33237 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299Ab1HATJL (ORCPT ); Mon, 1 Aug 2011 15:09:11 -0400 Date: Mon, 1 Aug 2011 12:07:50 -0700 From: Andrew Morton To: Vasiliy Kulikov 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 Subject: Re: [kernel-hardening] Re: initcall dependency problem (ns vs. threads) Message-Id: <20110801120750.5c0e6d2b.akpm@linux-foundation.org> In-Reply-To: <20110801190341.GA6898@albatros> References: <20110801180151.GA26686@albatros> <20110801112021.25ec9041.akpm@linux-foundation.org> <20110801190341.GA6898@albatros> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 1 Aug 2011 23:03:41 +0400 Vasiliy Kulikov wrote: > > 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. What patch are you talking about here? > However, I think it should be solved on > another level. What level? > Other bugs might be hidden with this race. What bugs?