From: Ingo Molnar <mingo@elte.hu>
To: linux-kernel@vger.kernel.org
Subject: Re: [patch] flexible-mmap-2.6.7-D5
Date: Sat, 19 Jun 2004 10:06:43 +0200 [thread overview]
Message-ID: <20040619080643.GA13861@elte.hu> (raw)
In-Reply-To: <20040618213814.GA589@elte.hu>
* Ingo Molnar <mingo@elte.hu> wrote:
> - i also introduced a new personality bit (ADDR_COMPAT_LAYOUT) to signal
> older binaries that dont have PT_GNU_STACK. x86 uses this to revert
> back to the stock layout. [...]
i've also attached a patch below against setarch that adds the -L option
which turns on the old layout. Thus if there's any old broken app that
relies on mmap()s being below 2GB then the following can be used:
setarch -L oldapp <params>
and 'oldapp' (and all its children) will run with the old layout. But
this should be an extremely rare occurance, i've added it more for
completeness and paranoia reasons than necessity.
Ingo
--- setarch-1.4/setarch.c.orig
+++ setarch-1.4/setarch.c
@@ -118,6 +118,15 @@ int main(int argc, char *argv[])
if(got_arch)
p = argv[0];
}
+ if(!strcmp(p, "-L"))
+ {
+ argv++;
+ argc--;
+ options |= 0x0200000 /* ADDR_COMPAT_LAYOUT */;
+ if(got_arch)
+ p = argv[0];
+ }
+
if(set_arch(p, options))
{
prev parent reply other threads:[~2004-06-19 8:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-18 21:38 [patch] flexible-mmap-2.6.7-D5 Ingo Molnar
2004-06-18 23:16 ` William Lee Irwin III
2004-06-19 7:46 ` Ingo Molnar
2004-06-19 8:34 ` William Lee Irwin III
2004-06-19 11:38 ` Ingo Molnar
2004-06-19 21:34 ` William Lee Irwin III
2004-06-19 8:06 ` Ingo Molnar [this message]
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=20040619080643.GA13861@elte.hu \
--to=mingo@elte.hu \
--cc=linux-kernel@vger.kernel.org \
/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