From: "BOEBLINGEN LINUX390" <LINUX390@de.ibm.com>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: linux-kernel@vger.kernel.org, zaitcev@redhat.com
Subject: Re: [s390x] Patch for execve with a mode switch
Date: Mon, 17 Mar 2003 16:20:37 +0100 [thread overview]
Message-ID: <OF4DCC5C2B.C044EACC-ONC1256CEC.004CE000@de.ibm.com> (raw)
Hi Pete,
> If I boot an s390x kernel over a 31 bit userland, /sbin/init segfaults
> in the dynamic linker. This happens because mm->free_area_cache
> is set with TASK_UNMAPPED_BASE macro, which needs the TIF_31BIT
> set right. Setting TIF_31BIT in ELF_PLAT_INIT is way too late
> for this.
mm->free_area_cache can't cause any problems on s390x because it isn't
used. The idea behind mm->free_area_cache is to speed up the search in
get_unmapped_area/arch_get_unmapped_area. But s390x defines its own
version of arch_get_unmapped_area in arch/s390x/kernel/sys_s390.c
which doesn't start the search at mm->free_area_cache.
> The patch below basically ports what sparc64 does to s390x,
> according to the Andrew Morton's comment in fs/binfmt_elf.c.
> To tell the truth, I actually use equivalent of this on 2.4,
> but I think it's important to get stock 2.5 right.
This patch is severly broken. It wouldn't even compile.
To make sure I retested the kernel 2.5.64 with the patches I sent to
this list and ipled a 31 bit userland successfully.
blue skies,
Martin.
next reply other threads:[~2003-03-17 15:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-17 15:20 BOEBLINGEN LINUX390 [this message]
2003-03-17 17:03 ` Pete Zaitcev
-- strict thread matches above, loose matches on Subject: below --
2003-03-18 8:57 BOEBLINGEN LINUX390
2003-03-18 14:51 ` Pete Zaitcev
2003-03-16 0:25 Pete Zaitcev
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=OF4DCC5C2B.C044EACC-ONC1256CEC.004CE000@de.ibm.com \
--to=linux390@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zaitcev@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®