From patchwork Wed Sep 15 05:15:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 512181 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp2207469jao; Tue, 14 Sep 2021 22:13:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIB3UxZyXypGB+841JSJLZgTuGvViHJayfFrJsFRTmeUeVMENWVU/U768+ft89NuggWkQu X-Received: by 2002:a17:906:304e:: with SMTP id d14mr23293961ejd.170.1631682800966; Tue, 14 Sep 2021 22:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631682800; cv=none; d=google.com; s=arc-20160816; b=omb+xBgPJfQ7A7+m6CBi9YnAfg8E8/PMn4KXGoZ7BcLuYxHMi/vEcxa2vxBMTFicaE O7luxtIAFBszYRA0q4mfItTjL6WmdIFuxdsY6SsqZBh5zwPFPISo94r3U3FGCTMK6TPX +EAbbMgKt96apj0KEwvgPNoTwFyVB5W+28IM2WBnmAaoMthfxih5CBJL0Towdlc5roN9 wFnZIQ/fXYNVoICygN2RkhgIZsbjORzYYADLc8ot3B7fATYCbF1wtUCOFTJiPUpKDgwM uMumq1Zzqs3oqFcFuHzul9+5Jhd5mrnqDOEO9MQ1zsxuc8F8qlSgK1yMmx95Jx2ujqif 1OyA== 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=QLTPS+JwRv4Prp87R2rMAG9gU+40+M/RtVr04LajAp4=; b=0qdFbqPUImOM6eJWABu1bBjZQAv9HwMp5ZBBu9C6EXvAQvGTzpFZq/jSeGeXOegmRI MBRMIJMwWsP0VxtbIJMzudytUNqsaiRqDO5SWRZpW8uhuucz5T1Isyv5PX/BCnEGJq5w AqOnHCvFP/Z/9Gwul0VY9WeKGTldEcTrDw1+oDG14sOAFLP5G3PdeuVv2h0YU9yOqznn zCk4DiQMKPhUfilXkzERQlRWtR19tVGy1PjXPvvKPqK+LhEZP1kGOvtQqfGnQJTRUEBD p2A3cOrMEsoRcQcOab0C0dlccrYlJ9sNzB5TGNlMdr2IVWmrHLo3F2XoSrTWmG5GN4IZ spDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="nj2D0iW/"; 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 bf27si2059213edb.446.2021.09.14.22.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 22:13:20 -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="nj2D0iW/"; 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 5081A82849; Wed, 15 Sep 2021 07:13: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="nj2D0iW/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 09A6D81BC0; Wed, 15 Sep 2021 07:13:13 +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-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (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 3D37E80796 for ; Wed, 15 Sep 2021 07:13:09 +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-pj1-x1033.google.com with SMTP id n13-20020a17090a4e0d00b0017946980d8dso4035883pjh.5 for ; Tue, 14 Sep 2021 22:13:09 -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=QLTPS+JwRv4Prp87R2rMAG9gU+40+M/RtVr04LajAp4=; b=nj2D0iW/w2Y2P3/TK9rE54OGTi7grfggAII64cIVW7CQFBjgWN6qo+8++17hOccyKF l6wcWXtn6H0dqKuT1iptuzdd0CRFy+FKmfa3Rt3/z5lyABO81V5mGw8bJme9IJDPxpQh V/jpr/xrs3I99csyM+9THHf+RhJB7S4g6IRKt5hRuQEgv3COVrOOWr6dFVYzsXQZX2Zv bgqY8233dym5PoqRfFlOBKQRdH02Z5k651jucPiv58XJnPfUPmTIjiAqiQ9Iby+yLHe7 GlnA8KOOsgmfkOHWGiCvTzRwLCNY79qnYB0YVnPNxPn2Yipm2f1qGEDHBE4fZbRsmsQw Qbxw== 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=QLTPS+JwRv4Prp87R2rMAG9gU+40+M/RtVr04LajAp4=; b=e5V1MLvZM5FHy/HiKcqDFlEpR5//td47RLkkZTeQUOeyzpqDI48DqAAdNM40llt7Nc DV6YttSEMduNBbASyT/CjCky+xY1AwRtDDNdnBnBsHDAtjPyOl41hoJQfxRswifJaJ9b RnYAUeJyOdA36YJdHjfxAYCeeZs3oSfx3xZlzGhP7cnb/M+FGaydLEVhfnOuDTJ3zukX kU6RUzq/Jxz5VyYd+YNNb8gtdEBf41NOGOmcVFq+3WD5uR+Q8L+XBlvIiHr/lG0JzLu2 BAaDu/a0NG8uIb4U+0P9ljEU6sJxTqQhHJtdjqlWJdqNTBUqDC7UEGxe1GKssux2mHIj kJkw== X-Gm-Message-State: AOAM533QBa5xj8WLqglXzHNwzV8Df/Gjud7mu+aSwGQSGs4w8PuTrb2Q e7fmqK/AikL8V3CS8IFhAA4PPA== X-Received: by 2002:a17:90a:bd02:: with SMTP id y2mr6384588pjr.202.1631682787569; Tue, 14 Sep 2021 22:13:07 -0700 (PDT) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id a10sm11858154pfo.75.2021.09.14.22.13.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 22:13:07 -0700 (PDT) From: Masahisa Kojima To: Heinrich Schuchardt , Ilias Apalodimas Cc: Alexander Graf , Simon Glass , Bin Meng , Christian Gmeiner , u-boot@lists.denx.de Subject: [PATCH 0/3] Enhance Measured Boot Date: Wed, 15 Sep 2021 14:15:43 +0900 Message-Id: <20210915051546.500-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 | 4 +- include/efi_tcg2.h | 27 +++ include/smbios.h | 13 ++ lib/efi_loader/Kconfig | 1 + lib/efi_loader/efi_boottime.c | 4 +- lib/efi_loader/efi_smbios.c | 2 - lib/efi_loader/efi_tcg2.c | 306 +++++++++++++++++++++++++++++++++- lib/smbios-parser.c | 127 +++++++++++++- 9 files changed, 481 insertions(+), 6 deletions(-) -- 2.17.1