lkml.org 
[lkml]   [1997]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Linux kernel patch to remove stack exec permission
solar@sun1.ideal.ru <solar@sun1.ideal.ru> wrote:
>There seemed to be no patch for Linux kernel to remove execute permission
>from the stack (to prevent most buffer overflow exploits), so I decided to
>make one, I include it at the end of this message. I heard some rumours that
>GCC assumes stack frame to be executable when dealing with nested functions,

That's not just a rumour. That's a fact.
Also, if signal processing hasn't changed in the last two years, returning
from a signal requires an executable stack as well.
(You've just changed every signal into a SIGSEGV :-).
--
Sincerely, srb@cuci.nl
Stephen R. van den Berg (AKA BuGless).

A sign seen at the local pizza place: "DO NOT CARRY TAKE-OUT BOXES BY HANDLES"

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