4 ms·
Not if you map it first.
by pizzalife 3y ago
Not if you map it first.
- deathanatos 3y agoI believe Linux (only in later versions; and a few other OSes) make this page unmappable[1]. That, of course, would be part of the talk: that this is perhaps an OS-specific feature that the original coder was maybe trying to trigger, and that it is still OS-dependent. [1]: https://en.wikipedia.org/wiki/Zero_page https://en.wikipedia.org/wiki/Zero_page states this to be the case, but mmap(2) seems to disagree / suggests 0 is mappable.
- pizzalife 3y agoBy default you can only map addresses over 65536 (root can map anything though). But you can disable the protections with: echo 0 > /proc/sys/vm/mmap_min_addr