mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* user-mode stack size & location
@ 2007-08-28 16:25 Clemens Kolbitsch
  2007-08-28 16:45 ` Arjan van de Ven
  0 siblings, 1 reply; 3+ messages in thread
From: Clemens Kolbitsch @ 2007-08-28 16:25 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-28 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-28 16:25 user-mode stack size & location Clemens Kolbitsch
2007-08-28 16:45 ` Arjan van de Ven
2007-08-28 16:50   ` Clemens Kolbitsch

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®