Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1546106ybm; Tue, 21 May 2019 16:17:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMX4iDnkVfsj1z+1NEqiJ6vKSYFjnbXpBFSy94Pl3eJ2nlj3Q6XMlWTOXZKBlCsSBFkeo7 X-Received: by 2002:a62:86ce:: with SMTP id x197mr91592202pfd.218.1558480652101; Tue, 21 May 2019 16:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558480652; cv=none; d=google.com; s=arc-20160816; b=ZOoMlmxoFO3KjARgbBiWRI20oyZOdEEMkkO1o+Z2gxeoIJYvgsreQBBezphdRUOqG6 aqc/b1VfzQ1C+HwFiI2ymIU54zNiKV/TKH/o0ABneaf0P5gF7YidtdQAi0oIvI6e8yzY CEj2bNIgM9baWBwIbf77a9FgRK7v7owmJJEamS8F6PsDHRKlR9KAvyKgCIKEM+SbtYXY A07Rb7I+dPW85S4HVc1aIGUnbbmPL702oSdOU6F2V243cBIX0TYCs6YKUFP+0r7jmwsf G6Vehjagg1PSm5IbkMtMenlsEXqamifH8270xB4iper9Ao1hEDj5uxvgG/QXdgzicO/y uCCw== 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=6wCn3SlZitmYubML50yY9/nVO2FAsp8Jvpmqd25m8XU=; b=cX/7ggEkRoNJ3oa+Nb5LxUBoyHVuTuf0FWnlTtNIp0PmTOQJpU+XcPn2QiUlnX/dN9 UYy/7xf4WSDD+uxLePu6V4/X+qyo6pH6/NFb+hsAfaf05QaHn+9kqlEbxyh8G8y0yUSG 8hdL3bzbJA8Jdb26JBU16ynB02Rqi4S/ii8XAMTDUCJmIUnkSrJZsB3Vjr4VOOVh47yh rptoB8q2NpxlDCEZn7uwkGQKGAAMTEzaqlPYlYp9u+wx5GcqWatlFqJTPj1uEX1e7LFX 2mvVNGaXD25qbWct5nuUe8BO/0huyB+dZRj7D59oRxcTZd7VRUHo/IZuOHtZTmY4SsN2 r4Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ozlabs.org header.s=201707 header.b=v6DWPkD5; 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=ozlabs.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si19412213pgg.441.2019.05.21.16.17.14; Tue, 21 May 2019 16:17:32 -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=@ozlabs.org header.s=201707 header.b=v6DWPkD5; 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=ozlabs.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727015AbfEUXQA (ORCPT + 99 others); Tue, 21 May 2019 19:16:00 -0400 Received: from ozlabs.org ([203.11.71.1]:56745 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbfEUXQA (ORCPT ); Tue, 21 May 2019 19:16:00 -0400 Received: by ozlabs.org (Postfix, from userid 1003) id 457s7x3n3fz9sBV; Wed, 22 May 2019 09:15:57 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1558480557; bh=EcL5jNMwirXTp1nwjLDv8azqx1af2nZDnWeeqODaWl0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=v6DWPkD5rk7OkfCPQ49WmTUhjcF2pXpXnUrZJUWrYhes3yM7IQ52M3VzX4qFS5OS1 ZLXtu3eTdfgvc5SRKiQEs4sFrzRizQg+Qhx03pOJfaxieNKjuocfy+7fsSbXrEuVbI ndHDx1830swdI81Tpp1TR4NaPYsFMu4/hM/C4MSsbI9ftiMyBrjJXQoadH96F4BeTB VriDTasIUIp6n14H05L2JNHNYBYj4wi+mq13YJ0avuuAvPw1OeU7HuwNs3C4iWhzaa mqmgipgEwEJFSYPyfUjwqceWTuTVHBUhSaVv59RXGsH0hSMA996B8k5Sl6r59r71de SRXEa4pymY3CA== Date: Wed, 22 May 2019 09:15:54 +1000 From: Paul Mackerras To: Christoph Hellwig Cc: Thiago Jung Bauermann , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Alexey Kardashevskiy , Anshuman Khandual , Benjamin Herrenschmidt , Michael Ellerman , Mike Anderson , Ram Pai , Claudio Carvalho Subject: Re: [RFC PATCH 02/12] powerpc: Add support for adding an ESM blob to the zImage wrapper Message-ID: <20190521231554.GB3874@blackberry> References: <20190521044912.1375-1-bauerman@linux.ibm.com> <20190521044912.1375-3-bauerman@linux.ibm.com> <20190521051326.GC29120@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190521051326.GC29120@lst.de> 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 Tue, May 21, 2019 at 07:13:26AM +0200, Christoph Hellwig wrote: > On Tue, May 21, 2019 at 01:49:02AM -0300, Thiago Jung Bauermann wrote: > > From: Benjamin Herrenschmidt > > > > For secure VMs, the signing tool will create a ticket called the "ESM blob" > > for the Enter Secure Mode ultravisor call with the signatures of the kernel > > and initrd among other things. > > > > This adds support to the wrapper script for adding that blob via the "-e" > > option to the zImage.pseries. > > > > It also adds code to the zImage wrapper itself to retrieve and if necessary > > relocate the blob, and pass its address to Linux via the device-tree, to be > > later consumed by prom_init. > > Where does the "BLOB" come from? How is it licensed and how can we > satisfy the GPL with it? The blob is data, not code, and it will be created by a tool that will be open source. My understanding is that most of it will be encrypted with a session key that is encrypted with the secret key of the ultravisor. Ram Pai's KVM Forum talk last year explained how this works. Paul.