From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754369AbZBQLk5 (ORCPT ); Tue, 17 Feb 2009 06:40:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751756AbZBQLkt (ORCPT ); Tue, 17 Feb 2009 06:40:49 -0500 Received: from jurassic.park.msu.ru ([195.208.223.243]:52271 "EHLO jurassic.park.msu.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751648AbZBQLks (ORCPT ); Tue, 17 Feb 2009 06:40:48 -0500 Date: Tue, 17 Feb 2009 14:40:56 +0300 From: Ivan Kokshaysky To: Christoph Hellwig Cc: Andrew Morton , Richard Henderson , Al Viro , linux-kernel@vger.kernel.org Subject: Re: [PATCH] alpha: binfmt_aout fix Message-ID: <20090217114054.GA26176@jurassic.park.msu.ru> References: <20090217104956.GC25856@jurassic.park.msu.ru> <20090217110842.GA22272@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090217110842.GA22272@infradead.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 17, 2009 at 06:08:42AM -0500, Christoph Hellwig wrote: > I think the proper fix for this is to make sure newly registered > binfmts are added to the tail of the list, not the front. Yes, I was thinking about that. But then I need to make sure that alpha binfmt_loader is registered first, which is not possible at the moment as binfmts get registered at core_initcall level. If it's acceptable to change binfmts initcall level to, say, fs_initcall, then changing list_add() to list_add_tail() would certainly work fine here. Ivan.