[PATCH] binfmt_misc: Fix binfmt_misc priority

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Sembera
Date: Monday, August 23, 2010 - 7:15 am

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 <jsembera@suse.cz>
---
 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);
 	}
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] binfmt_misc: Fix binfmt_misc priority, Jan Sembera, (Mon Aug 23, 7:15 am)
Re: [PATCH] binfmt_misc: Fix binfmt_misc priority, Andrew Morton, (Fri Sep 3, 2:20 pm)
Re: [PATCH] binfmt_misc: Fix binfmt_misc priority, Jan Sembera, (Tue Sep 7, 3:16 am)
Re: [PATCH] binfmt_misc: Fix binfmt_misc priority, Chuck Ebbert, (Mon Sep 13, 2:47 pm)