lkml.org 
[lkml]   [1997]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Linux kernel patch to remove stack exec permission
Date
Ingo Molnar wrote:
>would it be a good idea to strip off the highest bit in env[] and args[]
>when exec()-ing?

Don't be silly. Some of us use full Latin-1 or UTF-8 for filenames,
and in grep patterns, and so on.

>for the BSS/malloc() things we could theoretically get the kernel to put
>executable mmap()-ed areas into the 0-1G range, and the rest into the
>1G-2G range.

This is the Right Thing to do w.r.t. trampolines. Fancy hacking that
into gcc?

Then again, it might be easier just to stop writing programs that smash
the stack. Amazingly enough, this confers other benefits too.

-zefram

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