From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id F23C36B0069 for ; Tue, 13 Sep 2016 20:54:21 -0400 (EDT) Received: by mail-wm0-f71.google.com with SMTP id b187so842741wme.1 for ; Tue, 13 Sep 2016 17:54:21 -0700 (PDT) Received: from cloudserver094114.home.net.pl (cloudserver094114.home.net.pl. [79.96.170.134]) by mx.google.com with SMTP id l12si1433267wmb.146.2016.09.13.17.54.20 for ; Tue, 13 Sep 2016 17:54:20 -0700 (PDT) From: "Rafael J. Wysocki" Subject: Re: [PATCH] PM / Hibernate: allow hibernation with PAGE_POISONING_ZERO Date: Wed, 14 Sep 2016 03:00:29 +0200 Message-ID: <1856521.PhkV49ibzK@vostro.rjw.lan> In-Reply-To: <1473410612-6207-1-git-send-email-anisse@astier.eu> References: <1473410612-6207-1-git-send-email-anisse@astier.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: owner-linux-mm@kvack.org List-ID: To: Anisse Astier Cc: linux-mm@kvack.org, linux-pm@vger.kernel.org, "Kirill A . Shutemov" , Laura Abbott , Mel Gorman , Alan Cox , Andi Kleen , Andrew Morton , Brad Spengler , Dave Hansen , David Rientjes , Jianyu Zhan , Kees Cook , Len Brown , Linus Torvalds , Mathias Krause , Michal Hocko , PaX Team , Pavel Machek , Peter Zijlstra , Vlastimil Babka , Yves-Alexis Perez , linux-kernel@vger.kernel.orgKees Cook Pavel Machek On Friday, September 09, 2016 10:43:32 AM Anisse Astier wrote: > 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 > Cc: Kirill A. Shutemov > Cc: Laura Abbott > Cc: Mel Gorman > Cc: Rafael J. Wysocki Applied (with the tags from Pavel and Kees). Thanks, Rafael -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org