Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752520AbaBGOt6 (ORCPT ); Fri, 7 Feb 2014 09:49:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40624 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751620AbaBGOtz (ORCPT ); Fri, 7 Feb 2014 09:49:55 -0500 Date: Fri, 7 Feb 2014 09:49:15 -0500 From: Vivek Goyal To: Kees Cook Cc: "H. Peter Anvin" , Richard Weinberger , "H. Peter Anvin" , Linus Torvalds , Cong Ding , Ingo Molnar , Ingo Molnar , Linux Kernel Mailing List , Mathias Krause , Michael Davidson , Thomas Gleixner , Wei Yongjun , Dave Young Subject: Re: [GIT PULL] x86/kaslr for v3.14 Message-ID: <20140207144914.GA5949@redhat.com> References: <201401201647.s0KGlZdh004167@tazenda.hos.anvin.org> <52E5EFAF.3060609@linux.intel.com> <52E601DA.7010605@zytor.com> <20140130220708.GP9951@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 31, 2014 at 08:57:03AM -0800, Kees Cook wrote: [..] > I have no intention of that. Mentioned earlier in the thread, hiding > it from root will be pretty ugly/hard/pointless: > https://lkml.org/lkml/2014/1/27/287 > I would like to just keep the offset out of dmesg. [ CC Dave Young ] Hi Kees, Dave Young is testing kdump with kaslr enabled. He is facing some issues. One issue he mentioned is that when second kernel boots, it might be placed in an area which is outside the reserved area for second kernel. We reserve a certain memory for second kernel. And modify memory map of second kernel using memmap=exactmap parameter. Looks like kernel placement is happening before memmap=exactmap takes effect. And that seems to be the reason that second kernel can be placed outside the reserved memory. IOW, memmap=exactmap and kaslr don't work together. Is it possible to first let memmap=exactmap take affect and then kaslr does its job. Or it is too late by the time memmap=exactmap is parsed. As a workaround, Dave is currently using "nokaslr" command line parameter for second kernel. He is still facing issues where makedumpfile segment faults. He is looking into it further. I thought I will atleast bring up with issue of memmap=exactmap and kaslr being incompatible. Thanks Vivek -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/