Skip to content

Instantly share code, notes, and snippets.

@ronin13
Created December 4, 2016 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronin13/59c6ffab786db7ef9e54db4fb29b4992 to your computer and use it in GitHub Desktop.
Save ronin13/59c6ffab786db7ef9e54db4fb29b4992 to your computer and use it in GitHub Desktop.
diff --git a/criu/mem.c b/criu/mem.c
index 2258605..8c46265 100644
--- a/criu/mem.c
+++ b/criu/mem.c
@@ -112,6 +112,9 @@ bool should_dump_page(VmaEntry *vmae, u64 pme)
if (pme & (PME_PRESENT | PME_SWAP))
return true;
+ if (vmae->madv & (1ul << MADV_DONTDUMP))
+ return false;
+
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment