From: htmldeveloper@gmail.com (Peter Teoh)
To: kernelnewbies@lists.kernelnewbies.org
Subject: userspace stack start and end
Date: Sat, 2 Aug 2014 00:31:16 +0800 [thread overview]
Message-ID: <CAHnt0GWE-fW6ew-aPx+uW2fQj79uKnTFqoSHprvzoXfNUXKinw@mail.gmail.com> (raw)
In-Reply-To: <CAHnt0GXSVKo6u2EsxbX5=jyPPco=XgHBbk85W_zBDnVhjDcB1w@mail.gmail.com>
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 <htmldeveloper@gmail.com> 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 <trent.tong@gmail.com> wrote:
>
>> 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
prev parent reply other threads:[~2014-08-01 16:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-27 16:52 userspace stack start and end Xin Tong
2014-07-28 3:32 ` anupam kapoor
2014-07-28 3:35 ` Xin Tong
2014-07-28 3:51 ` anupam kapoor
2014-07-29 0:44 ` Xin Tong
2014-08-01 16:22 ` Peter Teoh
2014-08-01 16:31 ` Peter Teoh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHnt0GWE-fW6ew-aPx+uW2fQj79uKnTFqoSHprvzoXfNUXKinw@mail.gmail.com \
--to=htmldeveloper@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).