Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3008958yba; Tue, 16 Apr 2019 02:42:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGMeMCVPKPGRlfCPIZwZcYHMZiVgBkwAQIJpdD/Sqvfysedgq1x5iWF02lQO4aFtTU+X82 X-Received: by 2002:aa7:8284:: with SMTP id s4mr82799185pfm.235.1555407756003; Tue, 16 Apr 2019 02:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555407755; cv=none; d=google.com; s=arc-20160816; b=AgcYDPC268XUx6Hf9MO6lwRbPwH1022rVr0MxnMCTqbiNzBnbaxQCLovyMo05Mui6w Nu5nL1/YVYcoP8TbsEGrN/JNmtr4682riGgEAu0qzj4AcmOgvlxZAOdCMeI4z/tQXkLg Dz/fjhAQuUq4yMI7krRfoOpuOIyo/dJ4y93VgsWzauPXQiy1C7NVaUjcSCd/oL/LjzFS xAr/404uFj52bSK7/Cx0EH5mq27UbkKL7JBPJv1OkwPDqvyBaP88jkL/Fvv9eYUqN6gB Vkcvac2apNrnDkcG0hCRfhJgDgpRCN1kRECyIkZ/EzJD4anbxvUp5rjs4YLv6pLTRK+J cwJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=f8up/2b93O/sh2BiKrHbGXEHljq83o9oPq4lXtZEX5c=; b=fVo0mpxU7JpxdoozqRgfiyikICY1Qr/7Viq1Ry8MO6H3d5wKywFkifdMLnn1Jh3GZj s4BUHYQWeq/RFM1FPKI5/jGf9ONe4pkAXtP7VILPc4C0ONbiijQnExPqa3R+OXOy2W2h hwDD1LbggxF2Kv0SeV+tMjWmOxUbS2Tpr/s6awQ/U8RyXEDhpJ6aJiisGPQnTA7L+PT9 De51/Vjr2famYLlJ5XJMTENvClaLI7tw0xxXaZxpm6JLWPn4y7pUTo1NxBat5G2myMlZ HIXKNCivT+r1U19oc7wsyyIpvZqMIgjD9Syuk1Pajn0pNkWCHOUyl29J0eHA/yVJkQpt swMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=bjNw7WrL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v77si50215140pfa.219.2019.04.16.02.42.19; Tue, 16 Apr 2019 02:42:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=bjNw7WrL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728506AbfDPJk1 (ORCPT + 99 others); Tue, 16 Apr 2019 05:40:27 -0400 Received: from mail.skyhub.de ([5.9.137.197]:45886 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726702AbfDPJk1 (ORCPT ); Tue, 16 Apr 2019 05:40:27 -0400 Received: from zn.tnic (p200300EC2F0D6900D0FA583685BBD9D6.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:6900:d0fa:5836:85bb:d9d6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 1D30C1EC030F; Tue, 16 Apr 2019 11:40:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1555407625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=f8up/2b93O/sh2BiKrHbGXEHljq83o9oPq4lXtZEX5c=; b=bjNw7WrLN/qbMbOQ8bmAtnmQFu6+cn8qLYv7REb7nI6lVT9LlnDXM4voa3tS5Y0edWsHdd J2SiEs8NEsJztAWL8HdbAin0eztRe3GR6I1bf6zgLguFMF25ukKxutUgH9+uoVvDNdBCC/ sz2fbCjr04iG8jn5UHWhZo4FwSCTbls= Date: Tue, 16 Apr 2019 11:40:25 +0200 From: Borislav Petkov To: Junichi Nomura Cc: Dave Young , Chao Fan , Baoquan He , Kairui Song , "x86@kernel.org" , "kexec@lists.infradead.org" , "linux-kernel@vger.kernel.org" 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-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <23309b73-d135-a207-564b-6003cee39184@ce.jp.nec.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.