mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
An application might call mmap with PROT_NONE to reserve a large amount of the virtual address space. Something like: void *addr = mmap(NULL, SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); During restore, when we have to premap private vmas (ie pieok is false), CRIU tries to mmap this large PROT_NONE and fails. If a vma has never been written to, it does not have "ac" flag set. Use this fact to safely premap vmas that were done for address reservation. Suggested-by: Andrei Vagin <avagin@gmail.com> Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com> |
||
|---|---|---|
| .. | ||
| criu_coredump | ||
| coredump | ||
| pycriu | ||