Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752642Ab3IWFqL (ORCPT ); Mon, 23 Sep 2013 01:46:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4854 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751944Ab3IWFqJ (ORCPT ); Mon, 23 Sep 2013 01:46:09 -0400 Date: Mon, 23 Sep 2013 13:45:41 +0800 From: Dave Young To: "H. Peter Anvin" Cc: Borislav Petkov , X86 ML , LKML , Borislav Petkov , Matt Fleming , Matthew Garrett , James Bottomley , Vivek Goyal , linux-efi@vger.kernel.org Subject: Re: [PATCH -v2] EFI: Runtime services virtual mapping Message-ID: <20130923054540.GB7007@dhcp-16-126.nay.redhat.com> References: <1379602494-26684-1-git-send-email-bp@alien8.de> <1379602494-26684-12-git-send-email-bp@alien8.de> <20130921113929.GB1587@pd.tnic> <20130922123515.GA7476@dhcp-16-126.nay.redhat.com> <20130922133722.GC28718@pd.tnic> <1ba7eca6-419c-4181-9927-9ba0927a6abf@email.android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1ba7eca6-419c-4181-9927-9ba0927a6abf@email.android.com> 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 Content-Length: 2381 Lines: 60 On 09/22/13 at 08:27am, H. Peter Anvin wrote: > The address that faults is interesting in that it is indeed just below -4G. The question at hand is probably what information you are using to build the EFI mappings in the secondary kernel and what could make it not match the primary. > > Assuming it isn't as simple as the mappings never get built at all. At least the efi_info is same between two kernels. Will print some debug info to see if I can find something. > > > Borislav Petkov wrote: > >On Sun, Sep 22, 2013 at 08:35:15PM +0800, Dave Young wrote: > >> I tested your new patch, it works both with efi stub and grub boot in > >> 1st kernel. > > > >Good, thanks! > > > >> But it paniced in kexec boot with my kexec related patcheset, the > >patchset > > > >That's the second kernel, right? > > > >> contains 3 patch: > >> 1. introduce cmdline kexecboot=<0|1|2>; 1 == kexec, 2 == kdump > >> 2. export physical addr fw_vendor, runtime, tables to > >/sys/firmware/efi/systab > >> 3. if kexecboot != 0, use fw_vendor, runtime, tables from bootparams; > >Also do not > >> call SetVirtualAddressMao in case kexecboot. > >> > >> The panic happens at the last line of efi_init: > >> /* clean DUMMY object */ > >> efi.set_variable(efi_dummy_name, &EFI_DUMMY_GUID, > >> EFI_VARIABLE_NON_VOLATILE | > >> EFI_VARIABLE_BOOTSERVICE_ACCESS | > >> EFI_VARIABLE_RUNTIME_ACCESS, > >> 0, NULL); > >> > >> Below is the dmesg: > >> [ 0.003359] pid_max: default: 32768 minimum: 301 > >> [ 0.004792] BUG: unable to handle kernel paging request at > >fffffffefde97e70 > >> [ 0.006666] IP: [] > >virt_efi_set_variable+0x40/0x54 > >> [ 0.006666] PGD 36981067 PUD 35828063 PMD 0 > > > >Here it is - fffffffefde97e70 is not mapped in the pagetable, PMD is 0. > > > >Ok, can you upload your patches somewhere and tell me exactly how to > >reproduce this so that I can take a look too? > > > >Thanks. > > -- > Sent from my mobile phone. Please pardon brevity and lack of formatting. -- 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/