search for: map_inherit_zero

Displaying 1 result from an estimated 1 matches for "map_inherit_zero".

2020 Jul 07
0
[RFC]: mm,power: introduce MADV_WIPEONSUSPEND
...wiped? S2disk is an > > async operation and it can happen at any time during the task execution. > > So how does the application work to prevent from corrupted state - e.g. > > when suspended between two memory loads? > > The usual trick when using MADV_WIPEONFORK, or BSD?s MAP_INHERIT_ZERO, is to > store a guard variable in the page and to check the variable any time that > random data is generated. Well, MADV_WIPEONFORK is a completely different beast because the forking is under a full control of the parent process and the information about the fork can be forwarded to child...