lkml.org 
[lkml]   [2009]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] FDPIC: Ignore the loader's PT_GNU_STACK when calculating the stack size
On Thu 2009-07-09 11:59:11, David Howells wrote:
> Pavel Machek <pavel@ucw.cz> wrote:
>
> > > i really dont think this is realistic. there is exactly one ldso that
> > > everyone uses under FDPIC ELF, and it needs a very minuscule stack.
> >
> > Not very realistic; but that argues that the patch is NOP.
> >
> > And if it _is_ realistic, the patch adds a bug.
>
> No, it doesn't. The problem is that the loader, when it is linked, is given a
> sillyly large default stack size, and this causes the application to be given a
> much larger stack than is strictly necessary - a stack that is drawn from a
> limited pool of non-pageable RAM and that must be allocated as a contiguous
> lump.

Fix the loader to only request as big stack as it needs?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


\
 
 \ /
  Last update: 2009-07-12 13:07    [W:0.210 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site