From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932297AbcHIQDG (ORCPT ); Tue, 9 Aug 2016 12:03:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:46363 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932255AbcHIQDD (ORCPT ); Tue, 9 Aug 2016 12:03:03 -0400 Date: Tue, 9 Aug 2016 18:03:05 +0200 From: Joerg Roedel To: Thomas Garnier Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Borislav Petkov , Dave Young , "Rafael J . Wysocki" , Lv Zheng , Baoquan He , Dave Hansen , Mark Salter , Aleksey Makarov , Kees Cook , Andrew Morton , Christian Borntraeger , Fabian Frederick , Toshi Kani , Dan Williams , the arch/x86 maintainers , LKML , Kernel Hardening Subject: Re: [PATCH v1 1/2] x86/KASLR: Fix physical memory calculation on KASLR memory randomization Message-ID: <20160809160305.GF30880@suse.de> References: <1470681607-36883-1-git-send-email-thgarnie@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 09, 2016 at 09:00:04AM -0700, Thomas Garnier wrote: > On Mon, Aug 8, 2016 at 11:40 AM, Thomas Garnier wrote: > > Initialize KASLR memory randomization after max_pfn is initialized. Also > > ensure the size is rounded up. Could have create problems on machines > > with more than 1Tb of memory on certain random addresses. > > > > Signed-off-by: Thomas Garnier > > I will send a new version of this PATCH soon. The test bot found > places where virtual addresses were computed before PAGE_OFFSET was > set. I will investigate that. When you do that, please also add 'Fixes:' tags to your patches. Thanks, Joerg