On Thu, Apr 22, 2010 at 03:41, Andrei Matei <andreimatei1@xxxxxxxxx> wrote: > Thanks for the link! Everything is clear now, the kernel will autogrow a > mapping with the MAP_GROWSDOWN as long as the stack pointer is around the > location the program has just accessed. So there is no magic specific to > regions used as pthread stacks. If I manually set %rsp to my mmaped region > and access bytes downward, it will extend just fine. Thanks for sharing Andrei. let me ask you a bit, this means you have to save first before accessing your own stack and restore it after you leave it, right? Or is it unnecessary? regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ