Re: Going up the call stack on a system call

Andi Kleen (ak@muc.de)
Mon, 22 Nov 1999 02:01:51 +0100


On Mon, Nov 22, 1999 at 12:10:07AM +0100, Karim Yaghmour wrote:
> Thanks a lot for your help Andi. It clears a lot of gray
> areas for me.
>
> Andi Kleen wrote:
> > Looks better, although I'm not sure why you're checking for the data segment.
>
> Well imagine the case, even though very unlikely, where the
> user would create a program with a pre-initialized stack.
> This does sound awkward, but it's in the real of the possible.
> This is the only reason I check the data segment.
>
> Very unlikely, but not impossible ...

For the common case of LinuxThreads stacks it'll fail, because it uses mmap
for the user stacks (which allocates outside the data area)

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/