Received: by 10.223.185.116 with SMTP id b49csp6129084wrg; Wed, 28 Feb 2018 04:36:05 -0800 (PST) X-Google-Smtp-Source: AH8x226FpXe1x/psi8tkLpwpKuOSVwX0ljzhB8ZpzLfUZkYTiEZlzF1ZyO1DFR5Oqk6G2n+crn1G X-Received: by 10.99.142.76 with SMTP id k73mr14059822pge.278.1519821365392; Wed, 28 Feb 2018 04:36:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519821365; cv=none; d=google.com; s=arc-20160816; b=hS6pTifTgS3FE8cVRFyUPjk4AfXHrbNL63ILWIHkOqapbi144ASkW+4W4J3lnpXBKB RNmggodhGiHW0lFvfvKAT8RqUnlqROBeA+t4JpOjSb/bVDotzRUBcLPF615q08bwqnLL VZKo1+dUTj5OlJOMJbn7Jc0ZearnU9fEG6hxKfDNLSvnmwyBHZw9rDFOLYyoBT5srLvB UpSFRIpkBN7qmu6CPyUdcBoA/cd0YmgTTuYyCfdMEGr55XG6BwPB9np6taNtosL+dLfG 1Pp/S/hi+FaxhGq46Ct5W86OZnZAvhZdFOrD8v450YG7unfycADtfJGfSaOOjwMcKDQk j34A== 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:to :from:date:arc-authentication-results; bh=Xn4VS/MoKUUlGPlYXpNeDSHIvuFdReU2AQjgS4ySBhM=; b=mBOScO2MjTvvzEjsk5fwM28wqk9UzjCL2f9liRb6iOI7j+S8zew2N5/HCskGw+ZH3A KUAAVUGQ0VpZ+Xmspgn6fmtc/OAeGMK9G6CsC1qY/NN5eANd73WOk6VT0195jFBQogYu mrze0YpK8rbOe+Y1bJ/0ILi2HNr0ZViG7KVTuWubfH9hEKdq0WgmwGb44b0uGyvqnliR 4se746MtzD8/qkrZnm/Da3v78yocsb+L1rBK4kB6d0mkNwiDDCbz2xg+NrlP/osex/DC u9bnrMbLCe9cjfcY6YDrCeVj38q5Xqf461g6cHwE1Zdsf70qIZxbcDWFDCOl4wntLAZx mfNg== 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 v15si946527pgt.635.2018.02.28.04.35.48; Wed, 28 Feb 2018 04:36:05 -0800 (PST) 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 S1752585AbeB1MeM (ORCPT + 99 others); Wed, 28 Feb 2018 07:34:12 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:49166 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752482AbeB1MeK (ORCPT ); Wed, 28 Feb 2018 07:34:10 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F26228182D01; Wed, 28 Feb 2018 12:34:09 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-41.pek2.redhat.com [10.72.12.41]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 96234213AEF5; Wed, 28 Feb 2018 12:34:03 +0000 (UTC) Date: Wed, 28 Feb 2018 20:33:59 +0800 From: Dave Young To: AKASHI Takahiro , catalin.marinas@arm.com, will.deacon@arm.com, bauerman@linux.vnet.ibm.com, dhowells@redhat.com, vgoyal@redhat.com, herbert@gondor.apana.org.au, davem@davemloft.net, akpm@linux-foundation.org, mpe@ellerman.id.au, bhe@redhat.com, arnd@arndb.de, ard.biesheuvel@linaro.org, julien.thierry@arm.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 02/13] kexec_file: make an use of purgatory optional Message-ID: <20180228123359.GB2228@dhcp-128-65.nay.redhat.com> References: <20180222111732.23051-1-takahiro.akashi@linaro.org> <20180222111732.23051-3-takahiro.akashi@linaro.org> <20180223084934.GB4433@dhcp-128-65.nay.redhat.com> <20180226102418.GD6019@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180226102418.GD6019@linaro.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 28 Feb 2018 12:34:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 28 Feb 2018 12:34:10 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dyoung@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/26/18 at 07:24pm, AKASHI Takahiro wrote: > On Fri, Feb 23, 2018 at 04:49:34PM +0800, Dave Young wrote: > > Hi AKASHI, > > > > On 02/22/18 at 08:17pm, AKASHI Takahiro wrote: > > > On arm64, no trampline code between old kernel and new kernel will be > > > required in kexec_file implementation. This patch introduces a new > > > configuration, ARCH_HAS_KEXEC_PURGATORY, and allows related code to be > > > compiled in only if necessary. > > > > Here also need the explanation about why no purgatory is needed, it would be > > required for kexec if no strong reason. > > OK, I will add the reason: > On arm64, crash dump kernel's usable memory is protected by > *unmapping* it from kernel virtual space unlike other architectures > where the region is just made read-only. > So our key developers think that it is highly unlikely that the region > is accidentally corrupted and this rationalizes that digest check code > be also dropped from purgatory. > This greatly simplifies our purgatory without any need for a bit ugly > relocation stuff, i.e. arch_kexec_apply_relocations_add(). > > Please see: > http://lists.infradead.org/pipermail/linux-arm-kernel/2017-December/545428.html > to find out how simple our purgatory was. All that it does is > to shuffle arguments and jump into a new kernel. > > Without this patch, we would have to have purgatory with a space for > a hash value (purgatory_sha256_digest) which is never checked against. > > Do you think it makes sense? Hmm, it looks reasonable, I remember there could be some performance issue for a purgatory because of cache disabled for arm64. I do not object this. [snip] Thanks Dave