Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1480246

Re: [PATCH] PM / Hibernate: allow hibernation with PAGE_POISONING_ZERO

From Kees Cook <keescook@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH] PM / Hibernate: allow hibernation with PAGE_POISONING_ZERO
Date 2016-09-09 20:30 +0200
Message-ID <sfyIO-6qh-17@gated-at.bofh.it> (permalink)
References <sfpFv-zV-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Sep 9, 2016 at 1:43 AM, Anisse Astier <anisse@astier.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@astier.eu>
> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
> Cc: Laura Abbott <labbott@fedoraproject.org>
> Cc: Mel Gorman <mgorman@suse.de>
> Cc: Rafael J. Wysocki <rjw@rjwysocki.net>

Cool!

Reviewed-by: Kees Cook <keescook@chromium.org>

-Kees

-- 
Kees Cook
Nexus Security

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] PM / Hibernate: allow hibernation with PAGE_POISONING_ZERO Anisse Astier <anisse@astier.eu> - 2016-09-09 10:50 +0200
  Re: [PATCH] PM / Hibernate: allow hibernation with PAGE_POISONING_ZERO Kees Cook <keescook@chromium.org> - 2016-09-09 20:30 +0200
  Re: [PATCH] PM / Hibernate: allow hibernation with  PAGE_POISONING_ZERO Pavel Machek <pavel@ucw.cz> - 2016-09-12 13:40 +0200
    Re: [PATCH] PM / Hibernate: allow hibernation with  PAGE_POISONING_ZERO Pavel Machek <pavel@ucw.cz> - 2016-09-12 19:50 +0200
  Re: [PATCH] PM / Hibernate: allow hibernation with PAGE_POISONING_ZERO "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-09-14 03:00 +0200

csiph-web