From: Andrew Morton <akpm@linux-foundation.org>
To: Jan Sembera <jsembera@suse.cz>
Cc: linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk,
ink@jurassic.park.msu.ru, stable@kernel.org,
linux-ia64@vger.kernel.org, "Luck, Tony" <tony.luck@intel.com>
Subject: Re: [PATCH] binfmt_misc: Fix binfmt_misc priority
Date: Fri, 03 Sep 2010 21:20:03 +0000 [thread overview]
Message-ID: <20100903142003.b6f02a0c.akpm@linux-foundation.org> (raw)
In-Reply-To: <20100823141520.GB17894@alaris.suse.cz>
(cc stable@kernel.org and the ia64 d00ds)
On Mon, 23 Aug 2010 16:15:20 +0200
Jan Sembera <jsembera@suse.cz> wrote:
> 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);
> }
Yikes, 74641f584da was merged in May 2009. I wonder why this problem
wasn't noticed before now?
If we're going to change this then I guess we should change it in
2.6.36 and backport the fix as far as we can go.
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@linux-foundation.org>
To: Jan Sembera <jsembera@suse.cz>
Cc: linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk,
ink@jurassic.park.msu.ru, stable@kernel.org,
linux-ia64@vger.kernel.org, "Luck, Tony" <tony.luck@intel.com>
Subject: Re: [PATCH] binfmt_misc: Fix binfmt_misc priority
Date: Fri, 3 Sep 2010 14:20:03 -0700 [thread overview]
Message-ID: <20100903142003.b6f02a0c.akpm@linux-foundation.org> (raw)
In-Reply-To: <20100823141520.GB17894@alaris.suse.cz>
(cc stable@kernel.org and the ia64 d00ds)
On Mon, 23 Aug 2010 16:15:20 +0200
Jan Sembera <jsembera@suse.cz> wrote:
> 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);
> }
Yikes, 74641f584da was merged in May 2009. I wonder why this problem
wasn't noticed before now?
If we're going to change this then I guess we should change it in
2.6.36 and backport the fix as far as we can go.
next prev parent reply other threads:[~2010-09-03 21:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-23 14:15 [PATCH] binfmt_misc: Fix binfmt_misc priority Jan Sembera
2010-09-03 21:20 ` Andrew Morton [this message]
2010-09-03 21:20 ` Andrew Morton
2010-09-07 10:16 ` Jan Sembera
2010-09-07 10:16 ` Jan Sembera
2010-09-13 21:47 ` Chuck Ebbert
2010-09-13 21:47 ` Chuck Ebbert
-- strict thread matches above, loose matches on Subject: below --
2010-08-27 9:14 Jan Sembera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100903142003.b6f02a0c.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=ink@jurassic.park.msu.ru \
--cc=jsembera@suse.cz \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@kernel.org \
--cc=tony.luck@intel.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.