From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S979654AbdDYBSl (ORCPT ); Mon, 24 Apr 2017 21:18:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33190 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S979624AbdDYBSd (ORCPT ); Mon, 24 Apr 2017 21:18:33 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BE09DC049D5C Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=bhe@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com BE09DC049D5C Date: Tue, 25 Apr 2017 09:18:25 +0800 From: Baoquan He To: Thomas Garnier Cc: Dan Williams , Jeff Moyer , Ingo Molnar , LKML , "linux-nvdimm@lists.01.org" Subject: Re: KASLR causes intermittent boot failures on some systems Message-ID: <20170425011825.GA4622@x1> References: <20170419133630.GA2311@x1> <20170420132632.GD2311@x1> <20170424230738.GA11734@x1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.0 (2016-08-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 25 Apr 2017 01:18:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/24/17 at 05:41pm, Thomas Garnier wrote: > On Mon, Apr 24, 2017 at 4:07 PM, Baoquan He wrote: > > Yeah, according to my debugging tracking, it goes as Dan said. And the > > is_ram is REGION_DISJOINT. And till arch_add_memory, the parameters > > passed to arch_add_memory are "arch_add_memory, align_start:0x10000000000, align_size:0x3000000000", > > seems it's going well. > > Hum ok, I hope it was another path given it seems the page table is > correctly setup on this one. > > Maybe looking at the PTEs with and without crash might help? (setting > this if statement to 1: > http://lxr.free-electrons.com/source/arch/x86/mm/init_64.c#L360) The page_size_mask is PG_LEVEL_1G, it should only enter into phys_pud_init and return.