3 ms·
Map page two times at separate addresses: for executing and for writing. See http://nullprogram.com/blog/2016/04/10/ http://nullprogram.com/blog/2016/04/10/ for
by lisivka 10y ago
Map page two times at separate addresses: for executing and for writing. See http://nullprogram.com/blog/2016/04/10/ http://nullprogram.com/blog/2016/04/10/ for details.
- yoklov 10y agoExtremely clever. Wouldn't this still violate W^X though? I would have thought the OS would see through a trick like this.
- nanofortnight 10y agoIt doesn't violate W^X, because the same virtual memory address isn't writable and executable at the same time.