path: root/mm/Kconfig.debug
diff options
authorAnisse Astier <>2016-09-09 10:43:32 +0200
committerRafael J. Wysocki <>2016-09-13 02:35:27 +0200
commit1ad1410f632d4141221634308a5e56f339f92009 (patch)
treeabe5eb613d5142ab3b8a6f273c1fd26efef8ffc2 /mm/Kconfig.debug
parentfa7fd6fa38e36d88bc9f2d0e45e5b9bd0387079f (diff)
PM / Hibernate: allow hibernation with PAGE_POISONING_ZERO
PAGE_POISONING_ZERO disables zeroing new pages on alloc, they are poisoned (zeroed) as they become available. In the hibernate use case, free pages will appear in the system without being cleared, left there by the loading kernel. This patch will make sure free pages are cleared on resume when PAGE_POISONING_ZERO is enabled. We free the pages just after resume because we can't do it later: going through any device resume code might allocate some memory and invalidate the free pages bitmap. Thus we don't need to disable hibernation when PAGE_POISONING_ZERO is enabled. Signed-off-by: Anisse Astier <> Reviewed-by: Kees Cook <> Acked-by: Pavel Machek <> Signed-off-by: Rafael J. Wysocki <>
Diffstat (limited to 'mm/Kconfig.debug')
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug
index 22f4cd96acb0..afcc550877ff 100644
--- a/mm/Kconfig.debug
+++ b/mm/Kconfig.debug
@@ -76,8 +76,6 @@ config PAGE_POISONING_ZERO
no longer necessary to write zeros when GFP_ZERO is used on
- Enabling page poisoning with this option will disable hibernation
If unsure, say N