How to implement non-executable stack?

Hi All!

I’ve found that it is not possible to directly mark a page as
non-executable and if the page is readable it is also executable
in x86 arcitecture. I’d like to know is it possible to implement
non-executable pages (stack) in Windows 2k? And how?

Great thanks for any help.

Felix

Hello Felix,

generally speaking - no for ia32, but you may play with workaround
techniques. It could be at least 2 ways: 1) through segments 2) non-exec pages by tricks
with TLB. For details look at http://pageexec.virtualave.net/

There is implementation of non-exec pages for nt:
http://www.securewave.com/products/securestack/index.html

Best regards,
Andrey.

FK> Hi All!

FK> I’ve found that it is not possible to directly mark a page as
FK> non-executable and if the page is readable it is also executable
FK> in x86 arcitecture. I’d like to know is it possible to implement
FK> non-executable pages (stack) in Windows 2k? And how?

FK> Great thanks for any help.
FK> —
FK> Felix

FK> —
FK> You are currently subscribed to ntdev as: xxxxx@sandy.ru
FK> To unsubscribe send a blank email to xxxxx@lists.osr.com

No.
A good old NTBugTraq topic.

Max

----- Original Message -----
From: “Felix K”
To: “NT Developers Interest List”
Sent: Friday, May 16, 2003 2:23 PM
Subject: [ntdev] How to implement non-executable stack?

> Hi All!
>
> I’ve found that it is not possible to directly mark a page as
> non-executable and if the page is readable it is also executable
> in x86 arcitecture. I’d like to know is it possible to implement
> non-executable pages (stack) in Windows 2k? And how?
>
> Great thanks for any help.
> —
> Felix
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com