Re: How to make stack executable on demand?

From: Dave Jones
Date: Fri Apr 16 2004 - 16:03:41 EST


On Fri, Apr 16, 2004 at 01:46:51PM -0700, H. J. Lu wrote:
> On Fri, Apr 16, 2004 at 10:02:58PM +0200, Arjan van de Ven wrote:
> > > But it will either fail if
> > > kernel is set with non-executable stack,
> >
> > eh no. mprotect with prot_exec is still supposed to work. The stacks
> > still have MAY_EXEC attribute, just not the actual EXEC attribute
>
> Ok. It looks like a bug in Red Hat EL 3 kernel. In fs/exec.c, there

That version of exec-shield is quite dated. For the latest version,
look on http://people.redhat.com/mingo, or the Fedora kernels.

I'm pretty sure that Exec-shield isn't even enabled in the EL kernels
at this time, so it's quite out of date in respect to the others.

Dave

-
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/