Re: [PATCH 1/2] No-exec support for ppc64

Jake Moilanen
2005-03-15T23:26:37Z

On Wed, 16 Mar 2005 09:18:36 +1030
Alan Modra <amodra@bigpond.net.au> wrote:

> On Tue, Mar 15, 2005 at 03:51:35PM -0600, Jake Moilanen wrote:
> > I believe the problem is that the last PT_LOAD entry does not have the
> > correct size, and we only mmap up to the sbss. The .sbss, .plt, and
> > .bss do not get mmapped with the section.
>
> Huh? .sbss, .plt and .bss have no file contents, so of course p_filesz
> doesn't cover them.

Your right, those shouldn't be mmapped.

set_brk() call is called on sbss, plt and bss. There needs to be some
method to set execute permission, on those pieces as well. Currently it
has no concept of what permission should be set.

Jake