Re: TASK_UNMAPPED_BASE & stack location

Martin J. Bligh
2003-04-25T23:07:53Z

>>>> 128Mb of it? The bottom page, or even a few Mb, sure ...
>>>> but 128Mb seems somewhat excessive ..
>>>
>>> Considering that your process space is 4gig, and that that 128Mb doesn't
>>> really exist anywhere (no RAM, no page table entries, nothing), it's
>>> really not excessive.
>>
>> I need the virtual space.
>
> As far as I know, you're perfectly free to move the stack whereever you
> feel like, as long as you map the space first, copy the contents and set
> %esp. mremap() is useful for this.

Right ... I was just suggesting changing it by default. Was wondering if
anyone knew of anything it'd break. Your issue with NULL pointers is
interesting, but I'm not sure this would really affect that much ... the
stack is normally tiny in comparison.

M.