4 ms·
The “obvious” solution is to map that page RX and have the kernel write to it anyway because the kernel has magic kernel powers.
by amluto 8y ago
The “obvious” solution is to map that page RX and have the kernel write to it anyway because the kernel has magic kernel powers.
- blattimwind 8y agoOr map it twice. Once RX for usermode, once W at a random address for the kernel to write to. Some JITs use the same tactic.
- amluto 8y agoSome of the more extreme SELinux and similar policies don't like this either.
- tinus_hn 8y agoThe permissions are managed by the processor or the mmu. The kernel has magical powers to modify the permissions but can’t just ignore them.