From: David Woodhouse <dwmw2@infradead.org>
To: Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev list <linuxppc-dev@ozlabs.org>,
Johannes Berg <johannes@sipsolutions.net>
Subject: Re: 32 bit userland on G5
Date: Wed, 14 Jun 2006 01:04:14 +0100 [thread overview]
Message-ID: <1150243455.11159.176.camel@shinybook.infradead.org> (raw)
In-Reply-To: <17551.20066.365036.256580@cargo.ozlabs.ibm.com>
On Wed, 2006-06-14 at 09:46 +1000, Paul Mackerras wrote:
> > We already did it in Fedora. We don't default to READ_IMPLIES_EXEC
> > for 32-bit processes on the 64-bit kernel.
>
> By patching include/asm-powerpc/elf.h?
By patching fs/binfmt_elf.c -- it's part of the exec-shield patch.
http://cvs.fedora.redhat.com/viewcvs/devel/kernel/linux-2.6-execshield.patch?rev=1.20&view=auto
shinybook /home/dwmw2 $ cat foo.c
int foo[2] = { 0x3860005a, 0x4e800020 };
int main(void)
{
int (*foofn)(void) = (void *)foo;
int f = foofn();
printf("%x\n", f);
}
shinybook /home/dwmw2 $ ./foo
5a
shinybook /home/dwmw2 $ scp foo pmac: ; ssh pmac
foo 100% 9996 9.8KB/s
00:00
Last login: Wed Jun 14 00:58:26 2006 from shinybook-bcm.infradead.org
pmac /home/dwmw2 $ ./foo
Segmentation fault
pmac /home/dwmw2 $ setarch ppc -X ./foo
5a
--
dwmw2
next prev parent reply other threads:[~2006-06-14 0:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-13 10:25 32 bit userland on G5 Johannes Berg
2006-06-13 12:45 ` David Woodhouse
2006-06-13 16:05 ` Johannes Berg
2006-06-13 16:15 ` David Woodhouse
2006-06-13 16:18 ` Johannes Berg
2006-06-13 22:52 ` Paul Mackerras
2006-06-13 23:31 ` David Woodhouse
2006-06-13 23:46 ` Paul Mackerras
2006-06-14 0:04 ` David Woodhouse [this message]
2006-06-13 22:44 ` Paul Mackerras
2006-06-14 8:35 ` Johannes Berg
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=1150243455.11159.176.camel@shinybook.infradead.org \
--to=dwmw2@infradead.org \
--cc=johannes@sipsolutions.net \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.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;
as well as URLs for NNTP newsgroup(s).