Is it safe to assume that anonymous mmap(2)ed pages will always be initialized to zero? POSIX only refers to padding after an object.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@jedisct1 MAP_ANONYMOUS - The mapping is not backed by any file; its contents are initialized to zero. http://man7.org/linux/man-pages/man2/mmap.2.html … -
@37point2 That’s a Linux man page. Doesn’t mean that it will be the case on other systems, or even on Linux.
End of conversation
New conversation -
-
-
-
- 1 more reply
New conversation -
-
-
@jedisct1 I think Linux guarantees they are zero, but that your mileage may vary elsewhere.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@jedisct1 Likely : Yes. mmap() is usually used for bss space, and that needs to be 0. I would not bet on it however.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@jedisct1 what's the cost to memset() zeroes and be sure? It might even be optimized by the compiler in hosted mode.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@grsecurity@jedisct1@jpmens@fanf Because it would crash too many apps ?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.