Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752869AbcDFSnP (ORCPT ); Wed, 6 Apr 2016 14:43:15 -0400 Received: from mail-io0-f173.google.com ([209.85.223.173]:36652 "EHLO mail-io0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751678AbcDFSnM (ORCPT ); Wed, 6 Apr 2016 14:43:12 -0400 MIME-Version: 1.0 In-Reply-To: References: <1459947782-5071-1-git-send-email-ed@abdsec.com> <5e5e7c7ced7bede343530ed1447d7453@abdsec.com> Date: Wed, 6 Apr 2016 11:43:11 -0700 X-Google-Sender-Auth: zozw0lG4gggl9NAL0zZbOmk40Wg Message-ID: Subject: Re: [PATCH] KERNEL: resource: Fix bug on leakage in /proc/iomem file From: Linus Torvalds To: Kees Cook Cc: Emrah Demir , Dan Rosenberg , Dave Jones , Kernel Hardening , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1155 Lines: 25 On Wed, Apr 6, 2016 at 11:37 AM, Kees Cook wrote: > > At some point I'd like to see if distros would be interested in > inverting the default logic (maybe with a CONFIG to avoid changing the > current behavior) where instead of needing to put "kaslr" on the > command line to prefer kaslr over hibernation, end users would need to > add "nokaslr" to perfer hibernation for that boot. (Bike shed config > name: CONFIG_RANDOMIZE_BASE_ENABLED.) I suspect there really aren't all that many hibernation users out there at all, and that yes, that would be the right default. Hibernation is really quite nasty when you have to have a fairly big special partition for it, and shrink your memory down. Writing things to disk was a whole lot more reasonable back in the days when laptops had 16MB of memory. I really wonder how many people use it with a modern laptop and distro. I doubt it's much faster than just rebooting the whole system anyway, and there are lots of downsides. Maybe we could even just do the default switch in the kernel independently of any distro people, and see if anybody even _notices_. Linus