From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753312Ab0H0JOx (ORCPT ); Fri, 27 Aug 2010 05:14:53 -0400 Received: from cantor.suse.de ([195.135.220.2]:46134 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750986Ab0H0JOv (ORCPT ); Fri, 27 Aug 2010 05:14:51 -0400 Date: Fri, 27 Aug 2010 11:14:49 +0200 From: Jan Sembera To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Al Viro Subject: [PATCH] binfmt_misc: Fix binfmt_misc priority Message-ID: <20100827091449.GD17894@alaris.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is resend of a patch that was sent couple of days ago, but I got no response to it. No changes from previous version. --- binfmt_misc: Fix binfmt_misc priority Commit 74641f584da introduced a regression - binfmt_misc is now consulted after binfmt_elf, which will unfortunately break ia32el. ia32 ELF binaries on ia64 used to be matched using binfmt_misc and executed using wrapper. As 32bit binaries are now matched by binfmt_elf before bindmt_misc kicks in, the wrapper is ignored. The fix increases precedence of binfmt_misc to the original state. Signed-off-by: Jan Sembera --- fs/binfmt_misc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index a7528b9..fd0cc0b 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c @@ -724,7 +724,7 @@ static int __init init_misc_binfmt(void) { int err = register_filesystem(&bm_fs_type); if (!err) { - err = register_binfmt(&misc_format); + err = insert_binfmt(&misc_format); if (err) unregister_filesystem(&bm_fs_type); }