[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 9 Sep 2016 11:29:49 -0700
From: Kees Cook <keescook@...omium.org>
To: Anisse Astier <anisse@...ier.eu>,
Laura Abbott <labbott@...oraproject.org>
Cc: Linux-MM <linux-mm@...ck.org>,
Linux PM list <linux-pm@...r.kernel.org>,
"Kirill A . Shutemov" <kirill.shutemov@...ux.intel.com>,
Mel Gorman <mgorman@...e.de>,
"Rafael J . Wysocki" <rjw@...ysocki.net>,
Alan Cox <gnomes@...rguk.ukuu.org.uk>,
Andi Kleen <andi@...stfloor.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Brad Spengler <spender@...ecurity.net>,
Dave Hansen <dave.hansen@...el.com>,
David Rientjes <rientjes@...gle.com>,
Jianyu Zhan <nasa4836@...il.com>,
Len Brown <len.brown@...el.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Mathias Krause <minipli@...glemail.com>,
Michal Hocko <mhocko@...e.com>,
PaX Team <pageexec@...email.hu>, Pavel Machek <pavel@....cz>,
Peter Zijlstra <peterz@...radead.org>,
Vlastimil Babka <vbabka@...e.cz>,
Yves-Alexis Perez <corsac@...ian.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] PM / Hibernate: allow hibernation with PAGE_POISONING_ZERO
On Fri, Sep 9, 2016 at 1:43 AM, Anisse Astier <anisse@...ier.eu> 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 <anisse@...ier.eu>
> Cc: Kirill A. Shutemov <kirill.shutemov@...ux.intel.com>
> Cc: Laura Abbott <labbott@...oraproject.org>
> Cc: Mel Gorman <mgorman@...e.de>
> Cc: Rafael J. Wysocki <rjw@...ysocki.net>
Cool!
Reviewed-by: Kees Cook <keescook@...omium.org>
-Kees
--
Kees Cook
Nexus Security
Powered by blists - more mailing lists