Hi there,
is there any possibility to separate code and data with paging in Protected Mode (32 Bit)?
I cannot find any way to set the "content type" of a page.
And in nearly every documentation I read segmentation is deprecated. But how does Linux or Windows separate code and data (or don't they do that?) to get a protection fault e.g. when you try to execute from data section?
Thanks!
Bastian
Code/Data separation with paging
Re: Code/Data separation with paging
http://en.wikipedia.org/wiki/NX_bitBarratator wrote:protection fault e.g. when you try to execute from data section?
Regards,
John.
-
- Posts: 2
- Joined: Fri Nov 15, 2013 2:21 pm
Re: Code/Data separation with paging
Good to know.
But this is not available for Protected Mode in 32bit.
Regards,
Bastian
But this is not available for Protected Mode in 32bit.
Regards,
Bastian
Re: Code/Data separation with paging
Its available with PAE. Microsoft has used this method since Windows XP SP2. There is no available protection against executing code from a 'data segment' with plain 32-bit paging (without segmentation).
Regards,
John.
Regards,
John.