Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3121980img; Mon, 25 Mar 2019 04:19:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaYcgPJil+tvUQfjlqzBbobcgxc4NNvlJach0sNet4qDfBvEBdsvmvG7mc7TKwm38MEDax X-Received: by 2002:a17:902:501:: with SMTP id 1mr24020847plf.72.1553512790631; Mon, 25 Mar 2019 04:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553512790; cv=none; d=google.com; s=arc-20160816; b=w19p4ZL6Zb3lcseepuI+hPVPRsMYNQe+wyT+Vvts5Y/tWpvJ6A3skZuba6UISZ36kF +Jdtv+vq+riXDxmQq8I0aGD1LcqR1Gj+WnMcAlgBwGv0cM4tNnYazyUzAPQgCTwXwQeh LsZchZpFKAPYlOSuLUHeximV2QRk2TVY+BAgfAqYncdenALfeFoUQ3g3lrUZdzfpld3+ 3cCObtVLbgs2n2qfE+q7Czz9t61pRfWJwW7DlTeVBfGc+1UIrk9JRqvymvXrEEDxr1Rq CWRV/VyDVE7uLQKZt+uXvbl1TlGEEy/ozIZjEvGaSD26FdgcDbfcQKbdEBzGWHvpkIIJ jTOw== 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; bh=LbV3IavsMrT2PGKdMbV38VF7w353lQLCc7dpb726qUw=; b=N0untlrBADyQjyay3vywU33J4ZF7qu90SmaZMXhuoo4Z91FsicTxDaxWaBQ884tfp0 zgg6XEOg3KlRL2aaEwnHw6qNGhHUX0/r1JVV5uxzPA0kLkmceOWORCUuKUjvGLiTq8K0 QXbjX8Y/DvI0rs+BtlJ2KZg8bCA1GEwzURgmLM/Zo8B7mGhJhyzbAyY6kFSkjwgzau8F 5CwNTEbIHwefy9YG7cyBYGmkvSwrmvs9gmVKX0D3nGvS/325TM688/CD5JBYd+IudaEy HyBm5MQicshx4DCEDAFUrEtjNVtPt2/+c6a4L7rTGe/fSyW50bVPOWTkvxWUfoLdprGH AZJg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c127si13448878pfc.256.2019.03.25.04.19.35; Mon, 25 Mar 2019 04:19:50 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730885AbfCYLQw (ORCPT + 99 others); Mon, 25 Mar 2019 07:16:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2347 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729727AbfCYLQw (ORCPT ); Mon, 25 Mar 2019 07:16:52 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DFB143087BD4; Mon, 25 Mar 2019 11:16:51 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-119.pek2.redhat.com [10.72.12.119]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EBD4767644; Mon, 25 Mar 2019 11:16:47 +0000 (UTC) Date: Mon, 25 Mar 2019 19:16:44 +0800 From: Dave Young To: Junichi Nomura Cc: Boris Petkov , "fanc.fnst@cn.fujitsu.com" , "bp@suse.de" , "bhe@redhat.com" , "kasong@redhat.com" , "x86@kernel.org" , "kexec@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] x86/boot: Use EFI setup data if provided Message-ID: <20190325111644.GB13160@dhcp-128-65.nay.redhat.com> References: <20190322152328.GD12472@zn.tnic> <20190325002740.GA6637@jeru.linux.bs1.fc.nec.co.jp> <20190325060128.GB9385@dhcp-128-65.nay.redhat.com> <20190325061929.GC9385@dhcp-128-65.nay.redhat.com> <20190325065921.GA11096@dhcp-128-65.nay.redhat.com> <20190325082720.GA20771@jeru.linux.bs1.fc.nec.co.jp> <51D9A7D1-49BF-4679-B102-0FC5AC300C9F@alien8.de> <20190325101509.GA13160@dhcp-128-65.nay.redhat.com> <701c8e69-e1d4-c653-1d87-1c41789d3d54@ce.jp.nec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <701c8e69-e1d4-c653-1d87-1c41789d3d54@ce.jp.nec.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Mon, 25 Mar 2019 11:16:52 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/25/19 at 10:36am, Junichi Nomura wrote: > On 3/25/19 7:15 PM, Dave Young wrote: > > On 03/25/19 at 09:54am, Boris Petkov wrote: > >> On March 25, 2019 9:27:21 AM GMT+01:00, Junichi Nomura wrote: > >>> On 3/25/19 3:59 PM, Dave Young wrote: > >>>> On 03/25/19 at 06:47am, Junichi Nomura wrote: > >>>>> On 3/25/19 3:19 PM, Dave Young wrote: > >>>>>> On 03/25/19 at 02:01pm, Dave Young wrote: > >>>>>> I think normally people do not see this bug, because kernel will > >>> set the > >>>>>> rsdp in boot_params->acpi_rsdp_addr. Maybe you are testing with > >>>>> > >>>>> I think it's only done for file-based kexec interface. > >>>> > >>>> Saw Kairui's another reply, yes, kexec-tools need a patch to fill the > >>>> value as well then. > >>>> > >>>> I would vote for a repost of your old patch with some #ifdef > >>> > >>> Thanks for comments, Dave, Kairui and Baoquan. > >>> > >>> The problem for me is it's a regression in v5.1-rc1, that breaks > >>> existing setup. If early parsing of RSDP is required only for newly > >>> supported configuration, I'm fine such configuration requires > >>> new tools or new options. > >>> > >>> This is the 1st version plus #ifdef around the EFI code. > >> > >> I'm going to repeat that again until you get it: > >> > >> If the kexec kernel should continue to use efi_systab_init() then you > >> should make efi_get_rsdp_addr() exit early in the kexec-ed kernel. > > > > In that way, early parsing will fail in kexeced kernel, am I missing > > something? The early code become complicated but since we have already > > the early acpi parsing why not to make it consistent in kexeced kernel? > > AFAIU, early parsing is new code in v5.1-rc1 to support kexec on systems > with hotpluggable memory with KASLR enabled. For systems that requires the > new feature, it may be ok to say "you need to use another kexec interface" > and/or "you need new kexec-tools". Ok, it makes some sense, Kairui mentioned he will work on a kexec-tools patch then this becomes a must. Thanks Dave