Reply-To: kernel-hardening@lists.openwall.com Date: Tue, 9 Aug 2016 18:03:05 +0200 From: Joerg Roedel 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: Subject: [kernel-hardening] Re: [PATCH v1 1/2] x86/KASLR: Fix physical memory calculation on KASLR memory randomization 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 List-ID: 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