lkml.org 
[lkml]   [1999]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Going up the call stack on a system call
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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.037 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site