From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f169.google.com ([209.85.212.169]:36332 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751360AbbCAPX5 (ORCPT ); Sun, 1 Mar 2015 10:23:57 -0500 Date: Sun, 1 Mar 2015 16:23:51 +0100 From: Ingo Molnar To: Borislav Petkov , Jiri Kosina , Kees Cook Cc: Yinghai Lu , Matt Fleming , Thomas Gleixner , "H. Peter Anvin" , Ingo Molnar , Jiri Kosina , Bjorn Helgaas , Linus Torvalds , Linux Kernel Mailing List , "linux-efi@vger.kernel.org" , "linux-pci@vger.kernel.org" Subject: Re: [PATCH 1/8] x86, kaslr: get kaslr_enabled back correctly Message-ID: <20150301152351.GA17391@gmail.com> References: <1425176259-30087-1-git-send-email-yinghai@kernel.org> <1425176259-30087-2-git-send-email-yinghai@kernel.org> <20150301094557.GA7748@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20150301094557.GA7748@pd.tnic> Sender: linux-pci-owner@vger.kernel.org List-ID: (Cc:-ed Jiri and Kees as well.) * Borislav Petkov wrote: > On Sat, Feb 28, 2015 at 06:40:39PM -0800, Yinghai Lu wrote: > > > > oh, no. the offending commit already got into linus tree. > > We're working on it, follow this thread: > > http://lkml.kernel.org/r/1424929021.10337.24.camel@intel.com I think that's a different bug. parse_kaslr_setup() is simply bogus, it does: kaslr_enabled = (bool)(pa_data + sizeof(struct setup_data)); which makes no sense whatsoever: it randomly enables (or disables, depending on the physical address of the setup page) KASLR when it meets a SETUP_KASLR record. So I'm inclined to apply Yinghai's fix, with a better changelog that explains what happened ... Agreed? Thanks, Ingo