Re: end_stack?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't think there is any end_stack, as it depends on how much of
heap memory u are using.   Heap memory grows towards small-->big, and
stack is reverse (for x86), therefore, whoever use more memory, the
other will have less.   That at least is for traditional OS.

But in Linux, check /proc/pid/maps, there is a vdso memory region,
just above the stack region.   This therefore limits the size of the
stack to a fixed value.   (purpose of vdso is related to buffer
overflow protection - when u use gdb to attach to any existing
process, and attempt to read that memory, it is not
readable/accessible, overflowing the stack into this region will
therefore segfault).   and immediately following this vdso is the heap
- I think so, as maps did not label it currently.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux