From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754518AbcDGAFv (ORCPT ); Wed, 6 Apr 2016 20:05:51 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33484 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753612AbcDGAFt (ORCPT ); Wed, 6 Apr 2016 20:05:49 -0400 Date: Thu, 7 Apr 2016 02:05:43 +0200 From: Ingo Molnar To: Kees Cook Cc: "Rafael J. Wysocki" , Linus Torvalds , Ard Biesheuvel , Matt Redfearn , Yves-Alexis Perez , Emrah Demir , Jonathan Corbet , "x86@kernel.org" , "Rafael J. Wysocki" , Len Brown , Pavel Machek , Borislav Petkov , Andy Lutomirski , "open list:DOCUMENTATION" , "linux-pm@vger.kernel.org" , Linux Kernel Mailing List , "kernel-hardening@lists.openwall.com" Subject: Re: [PATCH] Prefer kASLR over Hibernation Message-ID: <20160407000543.GA26824@gmail.com> References: <20160406194404.GA11150@www.outflux.net> <20160406215638.GA25539@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Kees Cook wrote: > >> I don't think this is a good idea, as it turns off emergency hibernation of > >> laptops - many desktop distros support it by default. > > > > Right, I forgot about this one. > > When I last checked Ubuntu doesn't enable hibernation by default any more: > https://help.ubuntu.com/16.04/ubuntu-help/power-hibernate.html > > And it seems like Fedora either doesn't either, or has a lot of people > for whom it doesn't work: > https://bugzilla.redhat.com/show_bug.cgi?id=1206936 > https://bugzilla.redhat.com/show_bug.cgi?id=1224151 > http://blog.kriptonium.com/2015/12/fedora-23-hibernate.html Ok, that's a relatively recent development, I distinctly remember my laptop being hibernated in such a fashion fairly recently. That makes it easier to hack around the kASLR incompatibility by making hibernation less useful. Personally I think that conceptually user space persistency (CRIU et al) is superior to kernel level hibernation - but user-space save/restore is nowhere near as complete as kernel hibernation, so it's still somewhat sad that it doesn't work ... Thanks, Ingo