linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Krishnakumar R <rkrishnakumar@gmail.com>
To: linux-mm@kvack.org
Subject: Query on vma and User mode Stack
Date: Thu, 3 Feb 2005 00:43:16 +0530	[thread overview]
Message-ID: <89c400ad05020211131c62ccc6@mail.gmail.com> (raw)

Hi All,

I was trying to figure out the connections between vma's and user stack
segment.

I compiled  a C program in which I printed the address of a local variable
(under the assumption that it fall into the stack segment address).
The address which got printed was '0x9ffffc74'. (this is 386 based machine).

I printed out the start_stack from the mm_struct of the process.
I got the value: '0x9ffffec0'. There were 5 vmas for the process of which
the 5th vma started at 0x9ffff000 and ended at 0xa0000000.

Considering the vma address, I feel that stack segment falls into
this area. Also 0x9ffffec0 >0x9ffffc74, means that the stack grew down.
But then shouldn't the stack segment start from the end of the vma (near
0xa0000000 ?

I have heard that user stack growth happens dynamically. Is this the 
manifestation of such a case (when the the space fully is required
stack will start from the end of the vma) ?

Thanks and Regards,
KK.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

                 reply	other threads:[~2005-02-02 19:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=89c400ad05020211131c62ccc6@mail.gmail.com \
    --to=rkrishnakumar@gmail.com \
    --cc=linux-mm@kvack.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