From patchwork Wed May 26 03:09:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 448124 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp4838747jac; Tue, 25 May 2021 20:09:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0ACj5u8BN/KmerAmpUCyxONECYDbUJojJd5NWkI+FLQJrrFlAx3R1mLKLbWsi8c9N8TxI X-Received: by 2002:a05:6402:3548:: with SMTP id f8mr34311839edd.251.1621998586519; Tue, 25 May 2021 20:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621998586; cv=none; d=google.com; s=arc-20160816; b=mC88IiTGVf/Eoy4uqg88iUYWWFNkMVbQoPqCct03Okb7JqZpcejYTSHBX8oaG+X4CY 7p9K/+msy9im7ZHDQEODG5cDMODd6+ncD4Wq8JxjU90gAEUI5foec7CR3eckHGssbdiX 0E3Pr5e35/9gxtV1c3ZnieHpj7EDgN8bY/GT5mx23BH0Tkn0HhPzakQwN3jy15Foseo/ BOCIhsHXIbxS6ZsBMBdt6yu79zqkzRb2+ANVPPeu5tWsjMazJJiA+wIPEDwKYt6U7Xpe WybJe6SkdtouMRuHu/9lpT9NXgTzzqFXQxAH13fI0PdR3qLMhPg7EI7JM35/dIWUhvGf 7ggQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=SdTCD7GrSJbVLh9Fxo9Hg8en6j6uVMXlvqvJPSwBmQQ=; b=CMfHTokiQK8hg28AK3X76pE1H8aq4uR21Gd4WwNhWQoQwqArvokZIDWfL7TyQOLbnX XGK6pJWH/gMaqByoMcK2TtDFQaMkvtiu3sNtHoQoK3gwbKs4rUCtZp2iUA36Zes+dcTS rBImZo8hFCwAeyIz7GzzhYp0qP6ZI9ui/1qhgdPqo7g6PHco4v3Fm9YVd3PF96ve4OOY 9r6Hlnqm8D+u1FSGVJ7SqCZKgdwSrMnv2c/FuhJdrmEdUa/yCH/7cH9JLiiuRfzLJPM2 7tjn97NZq0m5F44+DaGV3fIgKab9XvtWY5FMjqGA4zfB2LNXy4SOA8VZTB7FI7nZurLY VwtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dQ2SOV7l; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id f6si3580258edt.368.2021.05.25.20.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 20:09:46 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dQ2SOV7l; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DEBFE82CAC; Wed, 26 May 2021 05:09:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="dQ2SOV7l"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 58AED82CAC; Wed, 26 May 2021 05:09:36 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) (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 7C43381CDE for ; Wed, 26 May 2021 05:09:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pf1-x432.google.com with SMTP id 22so24763587pfv.11 for ; Tue, 25 May 2021 20:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SdTCD7GrSJbVLh9Fxo9Hg8en6j6uVMXlvqvJPSwBmQQ=; b=dQ2SOV7l5G67UDmEzIg99CFh89RV8iq+in4FgB6K7Po2QETWVnMxwzlBBfHBZZlJ6U YUkmpRRLj3S/Yi/QityDpE1n+zUZEEJEV0qbrY0MwY3pRKv8cHGVlwuLtjGJq/XVW7Dq K60EDHryxHrZYme+SVVWpLGMBYQkL37YX+zjQ6STWj2oo2ltwjcuxaBw5n2MKclz9GMC eDs5fBoei9EL54wXwyD+dagSNJ1qU+mTg+u//MyOHvX6EcZensKjMGdvn8DELFKD09++ R/6wiADJH+wMs8Kw5E5xRqfp0z33r/YHh645j9tV6VtsuM1CTDQ9gxQhaQFlPgsLtxUc UIog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SdTCD7GrSJbVLh9Fxo9Hg8en6j6uVMXlvqvJPSwBmQQ=; b=dJTgf3+QSMrdXVELvTDjNI7y2j/Z86zA+XvQLBvfEN8xo7GL8eKYOh60s/7p7Ch87V v3wVZFikCD2cu0M+n84xETkpfVofaHiRLHYDq13Ai7bLUhSzU/yPcIDQFqKnjyNL7VE2 WYtE3hY9EhTyvzXJGE7+IFhhNh/oAgXpLVH7qkK9fInHEfktOGvJroBlWbP0Ary3QQHe JGdUIpcIuqW5uLL50kHZydKnSlizIuKZvsrdSXAw17CBRFApTKLErvyDSxYiAiOYR5/6 DLcGwLdgFhsU2uhRlGa+w6TkdJutqRqLchpmz134HiAsIwIA75GgPXKnJbg0kZ9efd1+ Nieg== X-Gm-Message-State: AOAM5311qioXi2ZtzFcxM7rJSnkBvRqJwzrNqaBvGodyhyeP4f+KHNuU 8HKFwFpL0iJWoURo0aiwXzh5lA== X-Received: by 2002:a62:e504:0:b029:2d8:3306:f171 with SMTP id n4-20020a62e5040000b02902d83306f171mr32676497pff.37.1621998571841; Tue, 25 May 2021 20:09:31 -0700 (PDT) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id j16sm15408131pfi.92.2021.05.25.20.09.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 20:09:31 -0700 (PDT) From: Masahisa Kojima To: Heinrich Schuchardt Cc: Alexander Graf , Simon Glass , Ilias Apalodimas , Masahisa Kojima , Dhananjay Phadke , Takahiro Akashi , u-boot@lists.denx.de Subject: [PATCH v9 0/1] PE/COFF measurement support Date: Wed, 26 May 2021 12:09:57 +0900 Message-Id: <20210526030958.15701-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 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.102.4 at phobos.denx.de X-Virus-Status: Clean This patch series add the PE/COFF measurement support. Extending PCR and Event Log is tested with fTPM running as a OP-TEE TA. Unit test will be added in the separate series. Originally, this patch series have three patches. Two out of three patches are already merged, so this series only contain one remaining commit from v9. Masahisa Kojima (1): efi_loader: add PE/COFF image measurement include/efi_loader.h | 6 + include/efi_tcg2.h | 9 ++ include/tpm-v2.h | 18 +++ lib/efi_loader/Kconfig | 1 + lib/efi_loader/efi_image_loader.c | 62 ++++++--- lib/efi_loader/efi_tcg2.c | 207 ++++++++++++++++++++++++++++-- 6 files changed, 277 insertions(+), 26 deletions(-) -- 2.17.1