lkml.org 
[lkml]   [1998]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Compiler alternatives to no-exec (was Re: non exec stack...)
In article <19980811184156.49153@lucifer.guardian.no> Alexander wrote:
> On Fri, Aug 07, 1998 at 06:20:07AM +0000, Linus Torvalds wrote:
>>
>> There's an even simpler fix, with the compiler just pushing 0 on entry
>> to all functions, and on exit it pops it off and aborts if it is
>> non-zero.

> I have a preliminary implementation of this for egcs 1.03a. I tested
> the overhead on gzip - it looks pretty good. I use the following
> pattern which ensures that the branch is predicted non-taken:

Are you aware of Stackguard. They have a modified gcc that does
more or less this, and are in the process of building a version
of Red Hat 5.1 that uses it. It was already mentioned here:

http://www.cse.ogi.edu/DISC/projects/immunix/StackGuard/

--
Erik Corry

-
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.altern.org/andrebalsa/doc/lkml-faq.html

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