From patchwork Tue Oct 26 08:27:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 516163 Delivered-To: patch@linaro.org Received: by 2002:ac0:c404:0:0:0:0:0 with SMTP id t4csp46579imj; Tue, 26 Oct 2021 01:26:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCnHYxVSDxjp31wZxBVs8X70IsB+nIxnUSvXSZwY2HCqSDFCTwv2WR55lMEqq/pdU5Xmdb X-Received: by 2002:a17:907:76c7:: with SMTP id kf7mr28028462ejc.460.1635236784926; Tue, 26 Oct 2021 01:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635236784; cv=none; d=google.com; s=arc-20160816; b=j/7V9F0P5IlEtKXUV21sKra8Pl4PC5AZV+EyKcrtB0SodQbSWdHHBU2WhlluUI4Z34 V01cv+7mQ1KBzSEwKk66v7IeSNLXlZfVIcO9zo7e7MS3J3GCd1SJClavvzGuz5fzUQSR H5HMc7OLe2aqsS2uuLDV+y+QtknDt2czDuFHINXeB7y80KKnOHR606xYVBpvrZcS6JhE P1Is/O6SAbHs+SA4mgzR1AXV6cbWl4HbaDAHBkbiaU5ra4E499mcHI2tE3I8FOBNjEW2 flKGQ3IXKVHJCdoL7ThDxd9d0ip+t0AJkTFffp1D3xmubj5Bb0KtbqqAtdYhQKa8vQvL KxSw== 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=XSM6GdAD+8RcyKPNWj/O53aZP9JUmG3CGD6uhO+4R4c=; b=VyNA4PfYwxNbkNihXMyxgqddyLo2oQww5Vc32Lc8dEV4Qqf9VQNTxLGrgkEWYfeoy8 LErj/gEYYgayu1WPadKa48+8r0+QtjcseS0IGfRkYPpoGZhMGqwUR8gH7jvjtleMurwk vu2WJoZnsQp1h45XW9vyrpiq0TLfATmij3KX0mr/xe78/lBtWEfMzUxjb6xxT6p87r5I /wgUaydd1jbLGVWVo/eFE/uG3LHZ1bM8TIsvBOpzBvp+5QZGewJqfAGnEgWUKmvqWRUm N7DK0BBuQFoa6tUKaqcOmLxqh8v8G+QuGVc39lhMz8z1ZnGbpViNxPh/k2y/59bGFJSk z+aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CkwQLNv0; 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 h11si26517063edf.416.2021.10.26.01.26.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 01:26:24 -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=CkwQLNv0; 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 B035F82054; Tue, 26 Oct 2021 10:26:20 +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="CkwQLNv0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A0AEC8203C; Tue, 26 Oct 2021 10:26:18 +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-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) (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 78AC280F3B for ; Tue, 26 Oct 2021 10:26: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=masahisa.kojima@linaro.org Received: by mail-pg1-x529.google.com with SMTP id h193so13425016pgc.1 for ; Tue, 26 Oct 2021 01:26:15 -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=XSM6GdAD+8RcyKPNWj/O53aZP9JUmG3CGD6uhO+4R4c=; b=CkwQLNv0lju8g2LiPsSRba29DrrJ2S/338RTuJHiZbxqz+/tAtfiHXpoDBayg4SkF3 bxt4TYw380M/O4Cbj7HjcHpi5N79IJ1glOxhng1ZFpLsOyE17qOqQ788bhW2hXJDeD++ HVY3PTm26WvxOszbFYKBadNGe9G7eqZAtlO6dPA7L0cU6N3uVP3XiT2zDL/G8W/s0O5e rNAvvSDBk8f8y8DJ7WnQVzrGYZ5nlQbvKtdPJutehK3YgHylnO4iQmrwlBgoSWiqmtdi 4LkjQtXFEWBmrXc11smvE5Kq0/wrkr9nh0M6du+9v0LJUBuyFo3z8uYgKvzNpZ5wPlEi A5uw== 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=XSM6GdAD+8RcyKPNWj/O53aZP9JUmG3CGD6uhO+4R4c=; b=edPl2jsh0/RaEx4Be7u5jp7KyLjmhE3q3H0TVRoJxIJsrmZPEX8xSaSiAKRiESily/ X1t5I9BswAHilcgJ01Q8uZT42txnxEJmr6QgXdyRvygF3DexPnokVgjPx1hwckMgxDPq T326k4IYmYH6hD8ekqnwxPYAB0BWeVk5m2e7s3jgq1UZ87MRvaidGub+JOgQmCJO7TBo XqXMf7KXOIMmbOnGA8tMkvRjuu0pRQ+id69bs8pXpDuZnWD9SX6IOzeQeiYK3D84HHNv L4yiBzZB3NJOJ1H2P3W9ogyXU8B/xT1SgBruE12vV5Bin+JDFTDXaLvSxZ3UYc9C2Bd8 ePcA== X-Gm-Message-State: AOAM532k5YmMuG8fcfovashjTdWXiVeHCRc007mcivVVCQBlSsv9DUkA wOH82p8e+jEL/b304mxf9t785gLzMN4+MA== X-Received: by 2002:a05:6a00:21c4:b0:475:e532:3d18 with SMTP id t4-20020a056a0021c400b00475e5323d18mr24465569pfj.40.1635236773704; Tue, 26 Oct 2021 01:26:13 -0700 (PDT) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id c8sm20135873pjr.38.2021.10.26.01.26.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 01:26:13 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Masahisa Kojima Subject: [PATCH v4 0/4] Enhance Measured Boot Date: Tue, 26 Oct 2021 17:27:23 +0900 Message-Id: <20211026082727.23399-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 (4): efi_loader: add SMBIOS table measurement efi_loader: add UEFI GPT measurement efi_loader: simplify tcg2_measure_secure_boot_variable() 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 | 309 ++++++++++++++++++++++++++----- lib/smbios-parser.c | 152 ++++++++++++++- 10 files changed, 487 insertions(+), 60 deletions(-) -- 2.17.1