I tried out the MAP_FIXED_NOREPLACE API introduced in Linux 4.17 for a minor use case in my hardened allocator and it turns out that it has been very broken since it was introduced. It can clobber adjacent mappings: https://marc.info/?l=linux-mm&m=153918527100638 … It will hopefully be fixed in 4.19.
Which always existed just by omitting MAP_FIXED, except on broken grsec nonsense that refused to honor the requested address when available.
-
-
Yeah, I don't see any other way to view MAP_FIXED_NOREPLACE as an optimization avoiding the need to munmap failed attempts to map at the hint address. It has the potential to be useful for my hardened allocator but it ended up causing memory corruption since it's very broken...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
'man 2 mmap' at your service if you don't understand writing portable code. and if you're into non-portable code, when are you going to add qsort_r? that'd be a whole lot more useful.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.