From: Clemens Kolbitsch <clemens.kol@gmx.at>
To: linux-kernel@vger.kernel.org
Subject: user-mode stack size & location
Date: Tue, 28 Aug 2007 18:25:01 +0200 [thread overview]
Message-ID: <200708281825.01688.clemens.kol@gmx.at> (raw)
hi!
i'm working on a new concept of i386 memory management and have to change
quite a bit of the linux mm. could someone please point out, where the
location & size of the USER-MODE stack is set for a new program (i.e. after
calling sys_execve...) exactly?
I know that all settings are simply copied from the parent-process when
invoking fork and how the stack grows (through page-faults).
However,
1.) is
mm->start_stack
set inside the
search_binary_handler / the individual fs-handlers?
i see that the aout-, elf-, etc. handlers all set this variable --> is this
the only location where it can be set?
2.) when looking at /proc/PID/maps, i see that the stack always ends at
different locations (obviously close to TASK_SIZE). thus the sizes seem to
vary. where are they set / where are the infos written to the vma's / the
PGD?
any help would be greatly appreciated!!
greets,
clemens
next reply other threads:[~2007-08-28 16:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-28 16:25 Clemens Kolbitsch [this message]
2007-08-28 16:45 ` Arjan van de Ven
2007-08-28 16:50 ` Clemens Kolbitsch
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=200708281825.01688.clemens.kol@gmx.at \
--to=clemens.kol@gmx.at \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®