lkml.org 
[lkml]   [2004]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Non-Exec stack patches
>>>>> On Wed, 24 Mar 2004 12:24:54 -0500, Jakub Jelinek <jakub@redhat.com> said:

>> Huh? Only one mprotect() call is needed to make the entire stack
>> executable.

Jakub> Nope. Think about multithreaded apps.

I said one mprotect() to make the entire stack executable. Obviously,
if you have multiple stacks, you need one call per stack. Big deal.

Jakub> Furthermore, getting the exact extents of the particular
Jakub> stack is difficult to find for applications, but e.g. the
Jakub> threading library has to know such things.

And how is this a kernel problem? There are other reasons why
applications need to know the stack extents (think garbage collector)
and it's entirely glibc's failing if it's difficult to determine the
stack extent.

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

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