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

From: Jake Moilanen
Date: Tue Mar 15 2005 - 18:28:20 EST


On Wed, 16 Mar 2005 09:18:36 +1030
Alan Modra <amodra@xxxxxxxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/