top | item 44049807

(no title)

sqrt_1 | 9 months ago

This is well outside my expertise, but some discussion happened at the time https://www.reddit.com/r/programming/comments/56xxmb/the_str...

Some people suggest that maybe Facebook runs with MAP_UNINITIALIZED

discuss

order

Arnavion|9 months ago

Unfortunately this hypothesis is also wrong. MAP_UNINITIALIZED can only be enabled in the kernel when there is no MMU, and in that case the page will already be in physical memory, so the very first pointer dereference will read the correct byte, not a fake zero because it's "uninitialized".