Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753457AbZDXPGD (ORCPT ); Fri, 24 Apr 2009 11:06:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752677AbZDXPFx (ORCPT ); Fri, 24 Apr 2009 11:05:53 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:33877 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751358AbZDXPFx (ORCPT ); Fri, 24 Apr 2009 11:05:53 -0400 Date: Fri, 24 Apr 2009 16:05:49 +0100 From: Al Viro To: Ivan Kokshaysky Cc: Andrew Morton , Richard Henderson , linux-kernel@vger.kernel.org Subject: Re: [PATCH] alpha: binfmt_aout fix Message-ID: <20090424150549.GN8633@ZenIV.linux.org.uk> References: <20090424144738.GD32087@jurassic.park.msu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090424144738.GD32087@jurassic.park.msu.ru> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1081 Lines: 20 On Fri, Apr 24, 2009 at 06:47:38PM +0400, Ivan Kokshaysky wrote: > This fixes the problem introduced by commit 3bfacef412 (get rid of > special-casing the /sbin/loader on alpha): osf/1 ecoff binary > segfaults when binfmt_aout built as module. That happens because > aout binary handler gets on the top of the binfmt list due to late > registration, and kernel attempts to execute the binary without > preparatory work that must be done by binfmt_loader. > > Fixed by changing the registration order of the default > binfmt handlers using list_add_tail() and introducing insert_binfmt() > function which places new handler on the top of the binfmt list. > This might be generally useful for installing arch-specific frontends > for default handlers or just for overriding them. Hmm... How about always doing list_add_tail() instead? -- 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/