From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.skyhub.de ([2a01:4f8:190:11c2::b:1457]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGKZq-00043I-R2 for kexec@lists.infradead.org; Tue, 16 Apr 2019 09:40:32 +0000 Date: Tue, 16 Apr 2019 11:40:25 +0200 From: Borislav Petkov Subject: Re: [PATCH v4] x86/boot: Use efi_setup_data for searching RSDP on kexec-ed kernel Message-ID: <20190416094024.GE27892@zn.tnic> References: <20190411125822.GE30080@zn.tnic> <20190412025416.GA11070@jeru.linux.bs1.fc.nec.co.jp> <20190412084956.GC19808@zn.tnic> <20190412133528.GD19808@zn.tnic> <20190415090717.GA29317@zn.tnic> <20190415102525.GB29317@zn.tnic> <23309b73-d135-a207-564b-6003cee39184@ce.jp.nec.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <23309b73-d135-a207-564b-6003cee39184@ce.jp.nec.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Junichi Nomura Cc: Chao Fan , Kairui Song , Baoquan He , "x86@kernel.org" , "kexec@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Dave Young On Mon, Apr 15, 2019 at 11:00:25PM +0000, Junichi Nomura wrote: > I thought we should hang here instead of return so that we > don't run into efi_get_rsdp_addr() in case of kexec. Hanging that early without debug output is not very friendly to debuggers, methinks. > > + ei = &boot_params->efi_info; > > + sig = (char *)&ei->efi_loader_signature; > > + if (strncmp(sig, EFI64_LOADER_SIGNATURE, 4)) { > > + debug_putstr("Wrong kexec EFI loader signature.\n"); > > + return 0; > > + } > > Same here. Ditto. You get the idea. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec