Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2979003img; Mon, 25 Mar 2019 00:54:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1sCMyf2I4KF3DBlmJZMTvmZwFLkDW94ExUdgLrl0TqVI6dKVPecsAG10wJiP5bXsyDRku X-Received: by 2002:a17:902:ba8b:: with SMTP id k11mr15009524pls.40.1553500497727; Mon, 25 Mar 2019 00:54:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553500497; cv=none; d=google.com; s=arc-20160816; b=gR8eHtRr+wFPUUXUC37UZNImXBcB9cqfZGT4h0nn2WemMxsD34h00o747bw1/yFEE0 GtiLrtNz/qcksPbL2SJWCYkJL3f7XhUZgun8PAH+vJevH4j1QkMtlrh4MGN3h3KYCEYM fZ5oaM42oZnvr7Kl6fyZjhYrdbpUPqZK3gg+uRd8uZlYX7KKDIiAx2+AGXWxaPuL/ezJ B2LaMcgskDikRubjFQX0I4Ay+6wqOEyeRelCGKSoLUhePKC/82lvo2vuAokVPKpXov78 +URJij9DanGj/QqnXO9zFZX5E7UxNPKw+ulORPCQbWiZWogh+4lMjxwr1SiqzBhQgIfl L8/A== 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=wCQ2sMH0EHR963ttG8Fg9nl/R+S87SD1MCvCqoc6kvY=; b=SST6mNAEQzmVCbIrUEWfiPmioEW8aEgS85xLSK5ePqRaLGSzDi7NON/CracvFmBU4p PG5N09e4AwJLejfnEmz4ETimV1BzZzena2KDTMFOEYTYLgOGRv7y5V5Y1Mk5C/s96uij HC+WS2zV+J/uSO0J6y0MDKtEJS5+pMxJg1v5RwoduJPe0DHiKnCXU/dPC0PZnDzW74H6 qUM8IgmlgOINsiC1bGCASMEJu1mqLC1rfyeUpGJSbIej9sQ+X2qo4E6vxn5Ck8IjGpbN LuCSTfoU9ffOXp4yA32yc937TAl8s1SqyZsPWK8weVopQ9ZU3g1/f1Z80/EemRz59QaP kgpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=MGkYENT8; 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 b8si12823581pgq.424.2019.03.25.00.54.42; Mon, 25 Mar 2019 00:54:57 -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=MGkYENT8; 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 S1729899AbfCYHxt (ORCPT + 99 others); Mon, 25 Mar 2019 03:53:49 -0400 Received: from mail.skyhub.de ([5.9.137.197]:34758 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729822AbfCYHxt (ORCPT ); Mon, 25 Mar 2019 03:53:49 -0400 Received: from zn.tnic (p200300EC2F098000329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:8000:329c:23ff:fea6:a903]) (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 5CBF11EC0310; Mon, 25 Mar 2019 08:53:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1553500428; 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=wCQ2sMH0EHR963ttG8Fg9nl/R+S87SD1MCvCqoc6kvY=; b=MGkYENT8mlyY8sGSYfQj5VMNWzwF19EHrqpcNpTeUapDB3A0YM8CwC5mV/gT+VRupBFgJQ KSOzCSwJxI/fccFetmLEJgTwMSp4ytroKQRY1OfFMwTWpMDJoQUleNH5LiBAyTwIjh5JaO a8kfRN5SGUELmYI8JOdU8QEvl9aFlKY= Date: Mon, 25 Mar 2019 08:53:51 +0100 From: Borislav Petkov To: Baoquan He Cc: Junichi Nomura , "fanc.fnst@cn.fujitsu.com" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" Subject: Re: [PATCH] x86/boot: Use EFI setup data if provided Message-ID: <20190325075342.GE12016@zn.tnic> References: <20190322110342.GA16202@jeru.linux.bs1.fc.nec.co.jp> <20190322152328.GD12472@zn.tnic> <20190325072710.GA31828@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190325072710.GA31828@MiWiFi-R3L-srv> 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, Mar 25, 2019 at 03:27:10PM +0800, Baoquan He wrote: > Kexec kernel also need to get rsdp to get SRAT tables so that KASLR can > avoid those hotpluggable regions in boot compression stage. > > The kexec_file_load has filled in acpi_rsdp_addr of kexec kernel in > below code. It will return direclty in get_rsdp_addr() since > acpi_rsdp_addr is got from boot_params->acpi_rsdp_addr. > > arch/x86/kernel/kexec-bzimage64.c <> > params->acpi_rsdp_addr = boot_params.acpi_rsdp_addr; > > The other interface, kexec_load, its boot_params filling is done in user > space kexec_tools. And we haven't made the acpi_rsdp_addr filling yet. > And the old kexec_tools utility can also cause the new kexec kernel to > search efi rspd pointer even thought it's fixed. Yes, kexec is a pile of ugly and fragile hackery. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.