3 ms·
32-bit intel ISA supports execute-only memory pages.
by adastra22 3y ago
32-bit intel ISA supports execute-only memory pages.
- irdc 3y agoOnly through segmentation hacks right? In page table entries, execute doesn’t have a separate flag but shares it with read.
- blibble 3y agoexecute disable was added with the pentium 4 (but needs pae page tables)
- Findecanor 3y agoOnly through segmentation, I think. However x86-S is supposed to force a flat memory model for 32-bit programs as well. On recent Intel processors, it is possible to execute-only protect pages using Intel MPK (Memory-Protection Keys) by having pages with a key be read-only in the page table but "access disable" in the PKRU register. PKRU is accessible from user mode though. AFAIK, the only (still) mainstream CPU arch with reliable execute-only protection is RISC-V. (I would like to be wrong, and see it on e.g. ARM as well)