3 ms·
Only 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 possi
by Findecanor 3y ago
Only 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)