Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF35DC4338F for ; Wed, 28 Jul 2021 14:35:22 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C5E4560F93 for ; Wed, 28 Jul 2021 14:35:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C5E4560F93 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 64A0582C84; Wed, 28 Jul 2021 16:35:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="qd69BmBj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D434782C8A; Wed, 28 Jul 2021 16:35:17 +0200 (CEST) Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 83DBE81E3D for ; Wed, 28 Jul 2021 16:35:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72a.google.com with SMTP id c18so2394993qke.2 for ; Wed, 28 Jul 2021 07:35:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=IIVqGWYpa+tBeWjAyt3X/kYzGJSW6fdvewujit1SnOM=; b=qd69BmBjfLzdKeGGq2b/sbJ6ljW7EdjkU0dsW0MSCCOlrhjIZzLIZzSQIgL8Zt2sFq uAHLSyt5DFnosHQsIyGtcEhxz5mWNAb/rZl3d+Tbkm32DrYNHb32BjaqsF/0Npr3xlqn G6/vGEEtPrAwUrlKGpE3pl9cTDhUvYAABWdr8= 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=IIVqGWYpa+tBeWjAyt3X/kYzGJSW6fdvewujit1SnOM=; b=ZH1aZ8JZIMm9rp8zp4f4m0ZEBGD9lEZbQr+S9pftMIDNqZHWtSmFEZrU4tiDBfJAvl 40kRXRQal3/z6tPJioo0LTn29l6j8V/cRk5km1h/H/z8/+3gT7p1FJMVUvTDvLPDtfZU yA4lX8Us3E0XkLEK/GM2tFQQrYT7cN+GiTstelLpPC21+UdUSZdsZYC0YwT1vS8n+nZh f1CM5MJDHUCAWWzf2WCW/eDmj469vPGcqo1bgAlMjM8/LMz+rNTPHechfa65DVVRQNyr 4lafH8XkdC/w4Xn16WYt+UXhKr49AkzQtzkcqqEoDhNB1bhgmK5VZ3Vm1MDtj7VybKNC j/bg== X-Gm-Message-State: AOAM532VEYHO0yxYStWdSmgFFLI78vkMGsryt55pGMZxwcfVORxalkd0 z+RJkhF3Lv/SPSgahX4PaxKxAA== X-Google-Smtp-Source: ABdhPJy5/kOgscI1rBTFgkiVG+BpZfa9/UhnKOhMZ4Lmw3VP617c4hwWaRCBuaOOmyMA1tHnKIffFQ== X-Received: by 2002:a37:b7c1:: with SMTP id h184mr27847797qkf.65.1627482913228; Wed, 28 Jul 2021 07:35:13 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-9c07-e31a-fc07-a573.res6.spectrum.com. [2603:6081:7b01:cbda:9c07:e31a:fc07:a573]) by smtp.gmail.com with ESMTPSA id m3sm95900qkk.0.2021.07.28.07.35.11 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Jul 2021 07:35:11 -0700 (PDT) Date: Wed, 28 Jul 2021 10:35:07 -0400 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List Subject: Re: [PATCH v3 0/7] vpl: Introduce a verifying program loader Message-ID: <20210728143507.GK9379@bill-the-cat> References: <20210712021919.3409934-1-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6mqFCp4yUXYxk5sJ" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --6mqFCp4yUXYxk5sJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 27, 2021 at 10:20:49AM -0600, Simon Glass wrote: > Hi Tom, >=20 > On Sun, 11 Jul 2021 at 20:19, Simon Glass wrote: > > > > U-Boot provides a verified-boot feature based around FIT, but there is > > no standard way of implementing it for a board. At present the various > > required pieces must be built up separately, to produce a working > > implementation. In particular, there is no built-in support for selecti= ng > > A/B boot or recovery mode. > > > > This series introduces VPL, a verified program loader. Its purpose is to > > run the verified-boot process and decide which SPL binary should be run. > > Adding VPL into the boot flow provides a standard way of implementing > > verified boot. So far, only the phase itself is added along with some > > Kconfig options. The next step is to create a build for sandbox. > > > > Changes in v3: > > - Move VPL Kconfig options to a separate patch > > - Add full build support for VPL > > > > Changes in v2: > > - Add some more VPL Kconfig options > > > > Simon Glass (7): > > doc: Convert SPL documentation to ReST > > doc: Expand SPL docs to explain the phase and config > > test: Tidy up test building with SPL > > spl: Move TPL_HASH_SUPPORT down next to other TPL options > > binman: Add VPL support > > Introduce Verifying Program Loader (VPL) > > vpl: Add Kconfig options for VPL >=20 > Any thoughts on this one? I have a few updates so can send a rebase v4 > if that helps. Perhaps some of these general questions would be answered with seeing an implementation for not just sandbox, but real hardware too. But I'm missing what this provides exactly that we can't do already, or that would justify a whole new stage rather than just some updates within existing logic. What is this doing over SPL_FIT_SIGNATURE for example? Checking in with a TPM to confirm good measurements? Having written that out, now I really do want to see this implemented on real hardware much more so than sandbox. --=20 Tom --6mqFCp4yUXYxk5sJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEBaxgACgkQFHw5/5Y0 tyy1eQv+PVdLEfl813UmlgtHnlriOtGJE51S5N6c2VZVZ8Shfa8IkP/449KVXBcy LEIeJfT5mFM1mlvNV40UpWZhPaZMF5eZvrYO5UzrtiztP/SyHTm8wVhrQ4xax7nD MjPz1/iITytswAJSB8KbWzbD5XLM7/d702G19tVB0crSYErnZrUhxlNuf1+nJYQV QLpGK6lKvJ5dAcKg+6Vnm3hFd8viG3NR2R2RL+/y1ozGrrYf7zfPAid8V20f7gLb aHNu6PrDqqKEv1iqMcMfwLqq5+5eWH6X5r0UNv+ZOt5DyUFxiM5BgxCcthSdEhAo pbUwW6SxpDwHY/QEYylvK9NbTPotcY6OUz0au5BXDzTFyjL0nxaU0aNE1lUeA2Dg 3LOGv/rFBHL0uI3TPERDnrmfTcLBpSkUCxT4gVoYOjmZPF/1zeHETX2IXcen0v5V g7di+bKQ44+suWnKSMp4g9H3fWcAZ+nYmThNgnK7U+odcIk6QOFqFykNovNeOVhz 2qyyH1Ne =zn1e -----END PGP SIGNATURE----- --6mqFCp4yUXYxk5sJ--