This is a very good tweet.
Quote Tweet
Replying to @andy_kelley @saleemrash1d and 2 others
Basically, make a massive PROT_NONE mapping and then you allocate with mprotect to PROT_READ|PROT_WRITE and free by using MAP_FIXED mmap to replace a section with a new fresh PROT_NONE region. It prevents anything else from getting that via mmap outside of your own mmap usage.
1
1
8



