[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090702172108.GA3951@linux-sh.org>
Date: Fri, 3 Jul 2009 02:21:08 +0900
From: Paul Mundt <lethal@...ux-sh.org>
To: David Howells <dhowells@...hat.com>
Cc: vapier.adi@...il.com, rgetz@...ckfin.uclinux.org, gerg@...inux.org,
uclinux-dist-devel@...ckfin.uclinux.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] FDPIC: Ignore the loader's PT_GNU_STACK when calculating the stack size
On Wed, Jul 01, 2009 at 01:08:14PM +0100, David Howells wrote:
> Ignore the loader's PT_GNU_STACK when calculating the stack size, and only
> consider the executable's PT_GNU_STACK, assuming the executable has one.
>
> Currently the behaviour is to take the largest stack size and use that, but
> that means you can't reduce the stack size in the executable. The loader's
> stack size should probably only be used when executing the loader directly.
>
> WARNING: This patch is slightly dangerous - it may render a system inoperable
> if the loader's stack size is larger than that of important executables, and
> the system relies unknowingly on this increasing the size of the stack.
>
> Signed-off-by: David Howells <dhowells@...hat.com>
Works for me too.
Acked-by: Paul Mundt <lethal@...ux-sh.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists