Re: non-executable stack question
- From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxxxx>
- Date: Sun, 25 Jun 2006 20:53:30 -0700
rbtqwt@xxxxxxxxx writes:
Is there a way to make non-executable the stack (or the heap) of a
process without patching the kernel?
On which platform?
On the original x86, there is no separate eXecute bit, so if the
memory is readable, it is also executable. You can make your stack
non-executable by mprotect(2)ing it with no PROT_READ, but your
program will not execute very far past that call :(
OTOH, on x86_64 (and recent Intel x86 processors), a separate
eXecute bit has been introduced, and on these processors you can
make your stack non-executable (with the same mprotect()) if the
kernel hasn't done that already.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.
- Follow-Ups:
- Re: non-executable stack question
- From: John Reiser
- Re: non-executable stack question
- References:
- non-executable stack question
- From: rbtqwt
- non-executable stack question
- Prev by Date: non-executable stack question
- Next by Date: Re: non-executable stack question
- Previous by thread: non-executable stack question
- Next by thread: Re: non-executable stack question
- Index(es):
Relevant Pages
|
|