<div dir="ltr">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).</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 2, 2014 at 12:22 AM, Peter Teoh <span dir="ltr"><<a href="mailto:htmldeveloper@gmail.com" target="_blank">htmldeveloper@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">FYI, there are many different types of kernel stack:<div><br></div><div><a href="http://www.x86-64.org/pipermail/discuss/2005-April/005944.html" target="_blank">http://www.x86-64.org/pipermail/discuss/2005-April/005944.html</a><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Jul 28, 2014 at 12:52 AM, Xin Tong <span dir="ltr"><<a href="mailto:trent.tong@gmail.com" target="_blank">trent.tong@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">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 ?</div>
<div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">Can someone please tell me how to find the end of the stack ?</div><div class="gmail_default" style="font-family:courier new,monospace">
<br></div><div class="gmail_default" style="font-family:courier new,monospace">Thanks,</div><div class="gmail_default" style="font-family:courier new,monospace">Xin </div></div>
<br></div></div><div class="">_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Regards,<br>Peter Teoh
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Peter Teoh
</div>