From patchwork Tue Sep 21 07:19:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 514392 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp2802328jao; Tue, 21 Sep 2021 00:17:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzs6rxtOzjj/9W/1/TqYxPMjLQyys0VLjGuoGYgi68eD5bUDLG+bUuPSAdRkw/FEom3/lMK X-Received: by 2002:a50:dac2:: with SMTP id s2mr4707254edj.141.1632208632710; Tue, 21 Sep 2021 00:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632208632; cv=none; d=google.com; s=arc-20160816; b=dEd7uA3h69y+cNqWbEgTPTvWS1loXt0hOZoLIM0Ezw2ODsLEf3bnDlxlpIH/Y7uAXh RDd92qBfL6kR2Q+cQLL9z/5NqhZBrtk4/qN7nfT7w88ezSNjhExUT41P6D0cnh/6icRl 2XXgp3P2g39SAbdTn1Ko1SjoTBVrkolaoYfsU7damweq7T/UVGP/sWzkqKnUXEk920bt jYBb/AZ7hhC11BIVaNMIS+JuPTUvgib5Ze78fp6odIzSY9HIRfkJN0ImavfOF99IITAz mKN20g5y+ZinOv0vULMgLBWy+G8LHKiyTM6070ty2RSy2AzbXWvf/bzvVduT7Ib/hfGa 1DtQ== 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=3uK0uSYeg4LTqWiioa55Yog/34pCtI5CFomOW1GrY7E=; b=OpFKL6Ga5Nwc713xhuIHTU5FAh5xjI/ihGAlVo8N8u6v+tJBXClJ+seM7OUnnsa0HI fWt/Jnb/UKpCustLQq6m/5u+a59EmAcktOpuqOeL4zNI8p96gAkNjz8LojnY222b+DcS dY6OX+WV28prCWCmaUj8fVnS5SkCGR8seboxvaYL70awSPD8mkAeN5tMp7Ks3c9IsyeC 2xWjmVgFjAG3y5MgEIbgnozD7sKb+k9SxeiH19VEtb+hjaGVoxQa4/KKn3KH0arO+qkD LTbiV3ASSJpQhFBUjz15BEXGmTA8st0AmjI8FVtnqaVkeQTWXQNcl7b/yuJtwh0PMG9s fT0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eeAUX1Z3; 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 v14si18105990edi.151.2021.09.21.00.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 00:17:12 -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=eeAUX1Z3; 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 58E7482EDA; Tue, 21 Sep 2021 09:17: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=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="eeAUX1Z3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D65318325E; Tue, 21 Sep 2021 09:17:05 +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-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (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 146AF82DF0 for ; Tue, 21 Sep 2021 09:17:02 +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-x1034.google.com with SMTP id me5-20020a17090b17c500b0019af76b7bb4so1312912pjb.2 for ; Tue, 21 Sep 2021 00:17:01 -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=3uK0uSYeg4LTqWiioa55Yog/34pCtI5CFomOW1GrY7E=; b=eeAUX1Z30XvS/aUjGYQk7RIRybIVHewSyDxod3S0J9hfCuN49VnZ6qSwXkTk6xGmSV h6qh7zZRIdmOCb5AeRh4klhiZNxGSbFsUVMhqzmwCpnVOTAMn/n8wNiXiRgmsZDOliLN 6N1gul3fYBzIrFxJi0hezA0pETgZGxDGdf//n97GGRdFtqHzcK/grbJILVgu4Itn9RE/ r1NbVnpRg61nSdSjcPfVqHPBtQX5Ex/w00ZvlM8yONjddkUGkCm0/xPqB7FAokR2xnWn P/D4kjPNeQYuZOAPS/9Kz8A/MGsYH5d8Llh3vSvO2dNe76DcNEqJBWS+tDoeaqW5Sy7x MWOQ== 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=3uK0uSYeg4LTqWiioa55Yog/34pCtI5CFomOW1GrY7E=; b=KExq7so9TqtUq9jkI9IOQQMkauZfYNb6yPBN7NasL3KOyS23IJKi0fcXNFg0MrqpxA oamy2eTDMB4KgGAyjg68OPd737KmYhEdmS9TbeQSlgPa3UBjhSW+f2CQOHQFHM4cttGv KShGNzk08Yftd3BNv3slxh8deu++Su+ds/2PjwWGsgDYuAwOEaj5GeX60yw87Bw79dKN ZbqXb4UOuLcV4O6IoX9+QgWNMVs/GcG022YcNRPNWsjBMGsni4Dmt2pz5qKGnVpPdMgK +w/eZx7cUEwATLyTwERTHsct2SZrjY1QuLCGoH8XHCWuaZiYRUJgmG0hn9jZppOu4AX0 CFnw== X-Gm-Message-State: AOAM531PQjN3QKkjKpBW6ZgOHKPzNYu23skdC4RmAv8qNs6iuj4zf74w FyRBLOl7UBqAUC1e9DNipjBlEAdHGkrLJanP X-Received: by 2002:a17:90a:bd08:: with SMTP id y8mr3598302pjr.123.1632208620286; Tue, 21 Sep 2021 00:17:00 -0700 (PDT) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id i2sm16265093pfa.82.2021.09.21.00.16.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 00:16:59 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima Subject: [PATCH v2 0/3] Enhance Measured Boot Date: Tue, 21 Sep 2021 16:19:28 +0900 Message-Id: <20210921071931.3755-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 | 17 +- 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 | 152 +++++++++++++++-- 9 files changed, 499 insertions(+), 17 deletions(-) -- 2.17.1