Received: by 10.223.185.116 with SMTP id b49csp6923971wrg; Wed, 28 Feb 2018 19:00:44 -0800 (PST) X-Google-Smtp-Source: AG47ELsOM9fL+OEOyltlBlxmI1ieonaKdjV0y7eRDgT2CbJAPQajcKp/W2hcLQOTm4DYKCRndLsU X-Received: by 10.101.72.136 with SMTP id n8mr283387pgs.201.1519873244609; Wed, 28 Feb 2018 19:00:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519873244; cv=none; d=google.com; s=arc-20160816; b=hJBJpUIsHJqmOEKts7WFJbLZYdVGE1aVVpm4ZDhTd8hkDAExJEPhtE3GfGvWFNLuVf dQUUp5vNT20O051JmTRyJ3Rgy7dSfbgjxElY6g0UQDSGcw3noUTRLJGXs0Trpqsjatxj pMEy6rPVwfwfqbVioui/MmsWrhNRUVBV1mj88+MrvPifzsllxLQ5prdbBoiAX8Yvwekn kJ6F24EZIl6BtspA9NE/DrIQ2IMUBM6GyK0TjMx8P3ZWrGjBdGMsrugyz1dv9IV9J+wP p05Myqbw1pPUr5umVIX4qjIgai7NrZZDypboy5ZENNqZTvPTbjR9qxz+J45fH+SDYW+G ZCxw== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=aQ9tFW218exsSuDtSKD9yWZ0/vU5LgzGUIVoiKnULP0=; b=mL6MgRpsfwU8Yf1MykxZCKuRYIDcs6rS2hxpFhe359fxew5lJ2dRHoL8gBAe0+dQAY v89Khq+TL5fKApmtu3V/HHpXExXhQLaJJo7KcODk/o60jN5RboiCVNmjAtfi4qDrQuZB nofxH1zGz1y7xIsVR9SwUoAL/WdVO1utSvbbTFkY4WTgVh/f5V76/m5k6KqeKK2rtf40 9Q8muqtN58MCcyrm9n0UVKXE/LgNRsyfbMINpHicXBOMf/Q22RpR2LcEce2BQxk7trAy hEzlUYfrOzfTafF5dJqvUFZBiebRcZ6ZwgzVu5iK3RHmxmythaH8lttbkqZRGv23Qv7h dRDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sfkjdw7F; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o86si2214546pfi.253.2018.02.28.19.00.29; Wed, 28 Feb 2018 19:00:44 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Sfkjdw7F; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965604AbeCAC7Q (ORCPT + 99 others); Wed, 28 Feb 2018 21:59:16 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:41252 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965531AbeCAC7O (ORCPT ); Wed, 28 Feb 2018 21:59:14 -0500 Received: by mail-pg0-f68.google.com with SMTP id q27so1766119pgn.8 for ; Wed, 28 Feb 2018 18:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=aQ9tFW218exsSuDtSKD9yWZ0/vU5LgzGUIVoiKnULP0=; b=Sfkjdw7FniPP+LsEK+MAulHUMlG+GEEclU4SxSR8EZuLYahAbucGSD01chXf+706Bm 8urbdeaIAQNSZTvJtuhfa2ZRRB61TXya5k4xQMkHJ6Ngzsa6L9gev+9/KpQJOuOmWLLY 784tKqF9+6iNzwAxgq3BcAGizCHLYOMIPfOM0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=aQ9tFW218exsSuDtSKD9yWZ0/vU5LgzGUIVoiKnULP0=; b=TrV06AiANbcM46zSdos/z4Q65BIZl0iIkNMjYjh9xj17e8FAIMSmghp8j82YZ8i5Tk 562VsK/BqNLeKlses5P1V2c2IbDrfj4ozyG9th6anD6pTNA2ezAHY+qA8UttyYIBGWBC EEmD0ngtHe3GTA8BKsP8ynDrPfySt591KJeToKR80XKxMjXMNh07dP2UwDT3DSYuwEUL k9sdG4trri1bQ+9kXNG+jLri913Rm8yQROXBuBzK+LE9Y3lAK6vgciqURu7HUpt8bBxw Qs0/QqPpVzIYHzgDCXY4M4RKnfkr3pNG3dHoNlnJwTIrvp28IsggKlOxQ0ibljPF6kaV 1KgQ== X-Gm-Message-State: APf1xPAffevVcAjt4pVG6jm1sfkM033Lfh53E6cQ36Q/OOYv+iaGhDec dxFEUhevx76I8/UwCao5YQMRCg== X-Received: by 10.99.154.18 with SMTP id o18mr295723pge.344.1519873154295; Wed, 28 Feb 2018 18:59:14 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id 76sm6567373pfm.124.2018.02.28.18.59.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 18:59:13 -0800 (PST) Date: Thu, 1 Mar 2018 11:59:22 +0900 From: AKASHI Takahiro To: Dave Young Cc: 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: <20180301025921.GL6019@linaro.org> Mail-Followup-To: AKASHI Takahiro , Dave Young , 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 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> <20180228123359.GB2228@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180228123359.GB2228@dhcp-128-65.nay.redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 08:33:59PM +0800, Dave Young wrote: > 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. Yeah, Pratyush(redhat) had expressed his concerns on slow boot-up of the 2nd kernel which is due to hash value calculation. -Takahiro AKASHI > > [snip] > > Thanks > Dave