lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1856521.PhkV49ibzK@vostro.rjw.lan>
Date:   Wed, 14 Sep 2016 03:00:29 +0200
From:   "Rafael J. Wysocki" <rjw@...ysocki.net>
To:     Anisse Astier <anisse@...ier.eu>
Cc:     linux-mm@...ck.org, linux-pm@...r.kernel.org,
        "Kirill A . Shutemov" <kirill.shutemov@...ux.intel.com>,
        Laura Abbott <labbott@...oraproject.org>,
        Mel Gorman <mgorman@...e.de>,
        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>,
        Kees Cook <keescook@...omium.org>,
        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>,
        linux-kernel@...r.kernel.org, Kees Cook <keescook@...omium.org>,
        Pavel Machek <pavel@....cz>
Subject: Re: [PATCH] PM / Hibernate: allow hibernation with PAGE_POISONING_ZERO

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 <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>

Applied (with the tags from Pavel and Kees).

Thanks,
Rafael

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ