From: Arjan van de Ven <arjan@infradead.org>
To: Clemens Kolbitsch <clemens.kol@gmx.at>
Cc: linux-kernel@vger.kernel.org
Subject: Re: user-mode stack size & location
Date: Tue, 28 Aug 2007 09:45:48 -0700 [thread overview]
Message-ID: <20070828094548.34186c0c@laptopd505.fenrus.org> (raw)
In-Reply-To: <200708281825.01688.clemens.kol@gmx.at>
On Tue, 28 Aug 2007 18:25:01 +0200
Clemens Kolbitsch <clemens.kol@gmx.at> wrote:
> 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!!
\
hi,
if you look where arch_align_stack() gets called.. that's where you
want to look. arch_align_stack() gets invoked in code that selects
userspace stack pointers....
Greetings,
Arjan van de Ven
next prev parent reply other threads:[~2007-08-28 16:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-28 16:25 Clemens Kolbitsch
2007-08-28 16:45 ` Arjan van de Ven [this message]
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=20070828094548.34186c0c@laptopd505.fenrus.org \
--to=arjan@infradead.org \
--cc=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®