This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] attr.c in _STACK_GROWS_UP case.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]