From patchwork Fri Oct 1 11:18:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 515026 Delivered-To: patch@linaro.org Received: by 2002:a02:606e:0:0:0:0:0 with SMTP id d46csp683429jaf; Fri, 1 Oct 2021 04:19:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGk5YFWoD0041gdS3Sx2TIrSSMwEt9TIfI00w/NLKoQ7f/8qfuBb1MRDLjYNVryPzOEfmF X-Received: by 2002:a17:906:1e11:: with SMTP id g17mr5793123ejj.154.1633087163474; Fri, 01 Oct 2021 04:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633087163; cv=none; d=google.com; s=arc-20160816; b=sfJxmalH2qg0Hok988bsQjExzam952Xb1BDoZ0DQtrfmc2T2NWyY1WGhRLuuwqdrL6 IioAREZFCE9Qb3JfejSA4jKSM9gfOmdUujxm3VTMw5IdoRpDMdGN689UKjwXWbGNUxOC AKKVhF/SPWhA5xOqL76OBgpZpYW6zKAyzjW4W1X0Fs2Wghq8OcXW1MCXTjR1hTzy2zcW zQ5+MuZg+/eCz2/3Mht+5FROT+DzwytrfyMLvaLcze/C9O6H7QX0/O2OTt7Jvrts7e65 I5McVX0rhNQLRAfZ83GprQ69nPW9VJW8ubRZAJQhPN1Le4k4DnI9EHwtW1c99+W0yKWl jFwg== 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=pzF2J7tFuG26HQuYR+7wtZ7a4DZ+H08kmpSfA/Z+bgQ=; b=uVdNuDk9DfxeY8uvRuiLC0G2OnMJ88WtKZ2r8GcMzXse5eTI+zfdaHvg92SDlN3siH ltp2M3T7e2wuX4q6b9BeZ7GpCjOp1tQDokUDf/4jJ72B2yllOFZ6h/SuhfwvQUEF4slq Z+koCKA/250ogsxflosVKu2roPi8JtWVPU2wg/jI3S1pNnoDa62w0QEHCayh1cFeQSw+ lpMtT4u264lUzh+how1YHByQwIszIntZ0SgwTcLPPHEX0kkwS2DvqGBLzE1zdpWCSFA7 oz/YtaBJmI8gXzwWp9XdmjbqTWVKK90Ma4FVo4mPJlQ7scqCPqNhNq//45s903EiVNbC Xshw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xtr56xvO; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id g20si6200313ejm.455.2021.10.01.04.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 04:19:23 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xtr56xvO; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 212768281E; Fri, 1 Oct 2021 13:19:15 +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="xtr56xvO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6923B81F0C; Fri, 1 Oct 2021 13:19:12 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (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 B7EDC80C83 for ; Fri, 1 Oct 2021 13:19:08 +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-pg1-x536.google.com with SMTP id 133so9135310pgb.1 for ; Fri, 01 Oct 2021 04:19:08 -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=pzF2J7tFuG26HQuYR+7wtZ7a4DZ+H08kmpSfA/Z+bgQ=; b=xtr56xvOQPUlorDzfsoEdhLBHkz/xP7NiGQJ3q6wyfKDNax3s/m0ox3/AYWTPdws2A tJtDdpbZ5UkDhGKKw/dnAy822DUYXUp1nh/9kSLloq5KmGUtxLSaP7eWuio2DEnguXrU 0uIa94mijWxIdbCI9v8As4C6WjYwCY/irL21qFm1959t8uGaHKzq61f7qpbHTm27uNEw QcUeiZWA8ii5W3RpXmX7Kw4w0lVfCs+X24rKGwSE6onsAJFsmZMzPmu1MxdXtG5kZJB7 8CcRnowZfQcWOtiQ9PaRGHNNGyFgiinoCZvDXkAJRqsL7/yTxR0thpl3OI/bKUi4Rzsh TQ4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pzF2J7tFuG26HQuYR+7wtZ7a4DZ+H08kmpSfA/Z+bgQ=; b=qFWNRu0SmrlUrTGPypzNsf4dS3/88dLvaO2H6A0Y5bPKzMBX9prT1YD8WiEDvpaXDe WGBNwrpzG47n7Jggrcn4kvdP36cWITiD9YkyYVs3pW19w0FX9qy1rDoCpiDP604puejZ VxvhNtBSPSNzmIi2DLtZAjeZ/h7ugrp16BVP+F0SUWsTcQM2VHkKDcbCjEpWZI6Q8xgy SHM1Kacup/NWhF7GhX3qsFJaxUeMO7YGFVb5GJDhSGRJccG1fdhvYcPwDUOzE0BYCC1S GRETrThEXsCBUSC9pDjcxZLpeXxLu1bYzVPVDhFt4GkKX4ZfWiM3Odo7+jA/4jChkSXV UzOg== X-Gm-Message-State: AOAM5339ivfH995sc2vSr2roorqjePfypSCQwvQUqfC+OZKd3T4n7S5z Hpr5qMu0mDyLYP5iqCuHnYFxkmzHFEkFow== X-Received: by 2002:a62:2c51:0:b029:329:932b:9484 with SMTP id s78-20020a622c510000b0290329932b9484mr9431534pfs.13.1633087146987; Fri, 01 Oct 2021 04:19:06 -0700 (PDT) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id w12sm5689829pjf.27.2021.10.01.04.19.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 04:19:06 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima Subject: [PATCH v3 0/3] Enhance Measured Boot Date: Fri, 1 Oct 2021 20:18:41 +0900 Message-Id: <20211001111844.7422-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.103.2 at phobos.denx.de X-Virus-Status: Clean This patch series add the following measurement mandated in the TCG PC Client PFP Specification. - SMBIOS tables - GPT disk partition topology - AuditMode and Deployed mode Masahisa Kojima (3): efi_loader: add SMBIOS table measurement efi_loader: add UEFI GPT measurement efi_loader: add DeployedMode and AuditMode variable measurement include/blk.h | 3 + include/efi_loader.h | 5 +- include/efi_tcg2.h | 27 +++ include/smbios.h | 17 +- lib/efi_loader/Kconfig | 1 + lib/efi_loader/efi_boottime.c | 4 +- lib/efi_loader/efi_device_path.c | 27 +++ lib/efi_loader/efi_smbios.c | 2 - lib/efi_loader/efi_tcg2.c | 297 ++++++++++++++++++++++++++++++- lib/smbios-parser.c | 152 ++++++++++++++-- 10 files changed, 518 insertions(+), 17 deletions(-) -- 2.17.1