On what archs are PROT_READ and PROT_EXEC independent?

From: Wei Hu
Date: Wed Apr 09 2008 - 02:59:29 EST


Hello,

I know that newer Intel and AMD CPUs support readable and
non-executable pages. But from my tests, if I use mprotect() to set a
page's permission to be PROT_EXEC, that page is still readable. I'm
wondering what architectures implement these flags independently? Is
it possible to get executable and non-readable pages?

Thanks,
Wei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/