From patchwork Mon Jun 24 12:29:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 807017 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp1857428wrt; Mon, 24 Jun 2024 05:30:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWqsRfDSneX5Su3EpitxNH/lQ4wI33Mvp/zXzyYQMTc4ehOUd3Un9U6blObOGcxnwshTJDE00iaWDPx7fUXx3YQ X-Google-Smtp-Source: AGHT+IFep/h0wSQ1LN7xLpkcr9EUQxx9zQ58tPdVfWoDKyLsoNlSUdQ/W5hGSKNWb4QmccD3aTqk X-Received: by 2002:a17:907:bb94:b0:a6f:e267:748e with SMTP id a640c23a62f3a-a6ffe3cec5emr444543066b.22.1719232205013; Mon, 24 Jun 2024 05:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719232204; cv=none; d=google.com; s=arc-20160816; b=s/OCDYkFa5xjfIPh4+4oVn9BBmHHhcqf+MqNd2tgerRJmDcFzlSfP4roZF0S1wTxi5 QJtwUZ7uTy3TVHyyZF+/sM0xtrLKR3boYNNtN0up/vQ3TwegQbOF/dg9txHh4+CzN5wk SC9ZN4vp/GfOIsMudNHFZWKzbfj/4j6f338P8qor2AD1z7gW/Av+ffIgB3lelns1Oq/n WukmGILC6MGU5fdj2S15FGABDt2SG7L/RSK9rJiWhjo9YKkZH17uL38w6koyNd6FFXti 9FL9BE6huS6h75etYyt7tYZWoh1WrvYnb9SA8SGqmjqZf0AmoRK4kjt/sMqJ3+ogCexT Rh5A== 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:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=Wz02stMUmFXTnSqOU5Vo0c+9S//NEJ+GguEM/spMUYQ=; fh=owDmqKPCe9ENC0MYqxu/iftTk5qr7QauO9xjE2aPePI=; b=W7vrFAGkcfIpHJSw7UJ+7QhVUUZy/Yvlcn+1TFMJPGi6fTFABSumVBKkH8+okW05/M 04Ea0Lz07u2xHJEBLN2RVM+OR9pJJNBBzZWkYWXUezhjeo/9f93y6e0rdmrr7Q49gu30 pTjYCqoCHjuagoSSsZL7oQ2LcNdrsZm72UXaieqC0BLFClvsbRvYn33lEcwKY7ay4soi aiYd8KStO1AQQsAF3xa5ZOGH4sBbng0UkjcgdTWdJR1YgcNPnMHT7nnOsgG4PfnhWjYm qgdoai4+/VGwbYJPBN55mPP6bIJka8jB70uLsDEPkLLwn/CfAEeEhqLaM8Sdy/geVnfx ieng==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pl6m1Anp; 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 a640c23a62f3a-a70d9097a1asi232100766b.860.2024.06.24.05.30.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 05:30:04 -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=Pl6m1Anp; 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 987AC88373; Mon, 24 Jun 2024 14:30:03 +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="Pl6m1Anp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 191668837D; Mon, 24 Jun 2024 14:30:03 +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-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (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 C7D0D88352 for ; Mon, 24 Jun 2024 14:30:00 +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=ilias.apalodimas@linaro.org Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-57d1679ee6eso7507713a12.1 for ; Mon, 24 Jun 2024 05:30:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719232200; x=1719837000; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Wz02stMUmFXTnSqOU5Vo0c+9S//NEJ+GguEM/spMUYQ=; b=Pl6m1AnpYzAKAPFjq2BH9/EsYWGZZS2hjdP5vGWVPrpJI1KsvXWbqMLcZ9WfjhEnmH Y91nQV97HtcNXAwAPi6UX9axUGOsV1w6cf26U6XU0UFEDHEMPZ3cD0uAYKr9GOLC6i7Q TGDdkxVt5gA0mIdYvOZGgFAYT/HOaTWt14Lgy2XL2iIH5eS68Hmot1hMdRzE3NwWniX9 fnm0bmKD60Z22FA+6b/jjmsvzso/AIljA56NLmZGVMOGEYNQyu+xuXXEPWvrZnIW7ONf vL64yCJRVXzPYyPfOtbPcCkdAfbYEX5BuNks3iqkSNQsyc4x8vtZKC7x/fHW+poLlht9 G2sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719232200; x=1719837000; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Wz02stMUmFXTnSqOU5Vo0c+9S//NEJ+GguEM/spMUYQ=; b=S4DxrfjQ5mYBVWAZJBttWVpy15IAjxBEewFpprdgfNNPNqMqvSOG2zdRjYeuav5hGw AWKbp2XE50nc5ydlCwPauSb/LYGsNlrWC3FK7svgfGc/M/y9HzuZn/q2srDhFSErgMY2 iwb+ZyHa/FXD7AXrd1OoQrHvQVu2p88wzWLGAmmA9pAxPwrQqaBJJEGHJf8BpbY6MxHv C5BUDP1WGR95dmLaaVKufb5ywccbhina4Cn2xio+dQjyDxDH2HtEafYiUFRPa0UG95P1 RBK+z8zeRGxM3qFpqn3zCkjigbzR7lMjlmplR11RWXC8wjQmLdo38cFpxc2hrYkMT0gA PhLQ== X-Gm-Message-State: AOJu0Yzv1k8TMmHWwlLY9PXFflLPLFD3lCpdm5yrQjzMy5awfRUTxIdW 39iv6ygK/PvCX67pezcprJqS5oJgAcPnfuPHMjXTVnNT98gK2uHPJIr36ucRw300ki4yVeNeVFZ RiW8= X-Received: by 2002:a17:907:c089:b0:a6f:9e2d:6b57 with SMTP id a640c23a62f3a-a70275ea626mr455745066b.4.1719232200017; Mon, 24 Jun 2024 05:30:00 -0700 (PDT) Received: from localhost.localdomain (ppp046103020130.access.hol.gr. [46.103.20.130]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6fcf56ea09sm402142366b.201.2024.06.24.05.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 05:29:58 -0700 (PDT) From: Ilias Apalodimas To: u-boot@lists.denx.de, trini@konsulko.com Cc: sjg@chromium.org, xypron.glpk@gmx.de Subject: Pull request for tpm-master-24062024 Date: Mon, 24 Jun 2024 15:29:56 +0300 Message-ID: <20240624122956.5739-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Hi Tom, A few last minutes fixes for EFI, but this time via the TPM tree The following changes since commit fe2ce09a0753634543c32cafe85eb87a625f76ca: Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-watchdog (2024-06-18 08:34:56 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-tpm/ tags/tpm-master-24062024 for you to fetch changes up to b73948c785d2bbccf0a76dec92cf50fe5b408c0e: efi_loader: fix the return values on efi_tcg (2024-06-24 08:38:06 +0300) The CI is here https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/21309 and showed no problems. I also tested measured booot looking at the EventLog pre/post patch. No changes apart from PCR0 which is expected to change ---------------------------------------------------------------- When the EFI TCG measurement code moved from EFI to the TPM subsystem for general use some prototypes changed from returning efi_status_t to int, which is more appropriate for the non-EFI APIs. However, some of the EFI callsites never changed and we ended up assigning the int value to efi_status_t. This is unlikely to cause any problems, apart from returning invalid values on failures and violating the EFI spec. ---------------------------------------------------------------- Ilias Apalodimas (2): tpm: fix the return code, if the eventlog buffer is full efi_loader: fix the return values on efi_tcg lib/efi_loader/efi_tcg2.c | 126 +++++++++++++++++++++++++--------------------- lib/tpm-v2.c | 2 +- 2 files changed, 70 insertions(+), 58 deletions(-)