[PATCH] attr.c in _STACK_GROWS_UP case.
Carlos O'Donell
carlos@baldric.uwo.ca
Mon Dec 29 00:03:00 GMT 2003
On Sun, Dec 28, 2003 at 03:32:52PM -0800, Roland McGrath wrote:
> Don't you still need to do something to cap the size when the rlimit is
> very high (e.g. ulimit -s unlimited)?
Unknown. I just assume that you get to keep allocating stack until you
run off the end of the mapping and fault.
Shouldn't everyone be capping this to the other end of the vma?
e.g.
attr->__stacksize = (size_t)to - (size_t)from;
c.
More information about the Libc-alpha
mailing list