Thread (7 messages) 7 messages, 3 authors, 2014-08-01

userspace stack start and end

From: Peter Teoh <hidden>
Date: 2014-08-01 16:31:16

and look into the function "print_context_stack()" which will teach u how
to identify the start/end of stack, whether the address is valid, how to
traverse from one frame to another (using RBP / EBP of course, so CONFIG
for framepointer is definitely needed).


On Sat, Aug 2, 2014 at 12:22 AM, Peter Teoh [off-list ref] wrote:
FYI, there are many different types of kernel stack:

http://www.x86-64.org/pipermail/discuss/2005-April/005944.html


On Mon, Jul 28, 2014 at 12:52 AM, Xin Tong [off-list ref] wrote:
quoted
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 ?

Thanks,
Xin

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

--
Regards,
Peter Teoh


-- 
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140802/7546b092/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help