userspace stack start and end

Xin Tong trent.tong at gmail.com
Sun Jul 27 23:35:22 EDT 2014


where is user:stack-segment-size defined ?
Thanks,
Xin


On Sun, Jul 27, 2014 at 10:32 PM, anupam kapoor <anupam.kapoor at gmail.com>
wrote:

> >>>>> [Sun, 27 Jul 2014 11:52:27 -0500]: "Xin Tong" (xin-tong):
>
> ,----[ xin-tong ]
> | I am trying to find the start and end address of the userspace stack.
> | I see in the task_struct there is start_stack. But I could not find
> | end_start anywhere in the kernel code ?
> |
> | Can someone please tell me how to find the end of the stack ?
> `----
> but that should be computable right e.g.
>     user:stack-end = user:stack-start + user:stack-segment-size *
> number-of-pages
>
> kind regards
> anupam
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140727/e4b24fab/attachment.html 


More information about the Kernelnewbies mailing list