3 ms·
How do you think we should be dealing with memory allocation instead?
by chrisseaton 8y ago
How do you think we should be dealing with memory allocation instead?
- blattimwind 8y agoaddr = getrandom(8); mem = mmap(addr, len, PROT_RWX, MAP_FIXED|MAP_ANON, -1, 0);
- chrisseaton 8y agoIt's not realistic to use a per-allocation mapping like that in production - all your allocations will be scaled up to multiples of pages.
- jacquesm 8y agoWhoosh!
- saagarjha 8y ago> PROT_RWX Hmm…
- blattimwind 8y agoThe X is for fleXibility.
- rzzzt 8y agoHow else will you put the self-modifying code there?