From patchwork Fri Dec 3 03:58:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 520180 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp340157imb; Thu, 2 Dec 2021 19:55:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUVb27BPlQ9KkZTFM/GlCxYcD4X4vpESypjMAMDPzwH7FxJAjFyohE+uVG8LADfxHPuD+o X-Received: by 2002:a17:906:2f97:: with SMTP id w23mr20316255eji.31.1638503703796; Thu, 02 Dec 2021 19:55:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638503703; cv=none; d=google.com; s=arc-20160816; b=iE0iOd1QKaGOBdJ7DrT0uEZzzy12kdzxafz1Prso7E13rHsMQdbksQvG9U+FXYwexd miuMgfOBmiju5oEug3YRoDXk+V3aNtH893RFeI0acPC68UJaWiCEDibgblOrvyR2/T7f pDaPymt49dWI2lcNUpnOpEk7BkF9onS52SJurfTnMWSLL8V/GYjOqpAQAJ9cMFojT+lq IjEb63B8JG8f63J/UXucST6Q2cTCzzNo4JJaUFlHuow6l1iV3oty09YklVzIsHL/1dUR 1uaZ/WzaB+i33CQmeEok8cgkYiHKz2NRGjY23hBNY+gbnq6z4Kz3R3gYECQwpRYIndjf vL+g== 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=Nw7hnDotlVrPTDv0/IQ8pi1eBbkl2nNLX0KVEzWKHEM=; b=q1vi/vtus0lj7wWq7UBqSefv6cgUrD+cCpP7rPXcYiNm/1r8ocwQwI2TDRKXFc3CzI rHmXdfVACi6pcBfPRNrVSl4Gpxx6NCAI10BU/bO4sg4CiDWm/JTWca9DyPr09YpR0Bdk lH81bETRk1Fa7dtKfsmum7YT9JR5sFCoHgROxSnlHpPdoe7RE0lzv1AQI2T+NyhfMq06 pSNFredlvKj4v3msGvNGkrNNppvbebesLSi7ackDankyf9uf/rrv7op7dY50RKX3KaJv pQLBVQb/ftSTg6DgiSPWnYc0zXwuSNril5AcAmWzZquAQN6lRfcMM0n4BtZKn7nEjE5Q paYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bbAMDaJ3; 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 s2si3274972ejn.51.2021.12.02.19.55.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Dec 2021 19:55:03 -0800 (PST) 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=bbAMDaJ3; 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 95ABD80FF4; Fri, 3 Dec 2021 04:54:52 +0100 (CET) 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="bbAMDaJ3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8B43F8022E; Fri, 3 Dec 2021 04:54:47 +0100 (CET) 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-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) (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 D3939804C8 for ; Fri, 3 Dec 2021 04:54:43 +0100 (CET) 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-x102b.google.com with SMTP id gt5so1353632pjb.1 for ; Thu, 02 Dec 2021 19:54:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Nw7hnDotlVrPTDv0/IQ8pi1eBbkl2nNLX0KVEzWKHEM=; b=bbAMDaJ3+/7xxdtv/QwcEx7hid72+sSzPD1Vl7v/SkvSztWtUGpP5ur/xUJbL5i84K gIsVoG0LIJ1sOnPCNej0PTS5Jch4Z1CpHWkY31Yd1+ybfoNTn169B9yhyjag74GLfF/g haUOx82/mevC13ewbbX0OyrDVoAesdKeRfzDHc/Ui6jiidTjhtBlg1ZZL2/zgNHSFNch P43LltWeW7REcSDLi53gQHUrNT7Ps1PftMfNoEcpgJfYPDCGwoqSi7LB72JLb3sMSwuW 1KrKVSoCUZDMv7szb1jjkenZ2y0dw6JZRaj0fl1L6jgNGChzjGE/VEeTwkuMsfpm8WVY tq+w== 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=Nw7hnDotlVrPTDv0/IQ8pi1eBbkl2nNLX0KVEzWKHEM=; b=rbgAsVWE8hP//UkZrDM5Z+7LfZFhlKk1ksfcZR8KO2i6fk7o5nG/BPLjSzwOURzUh+ ///p0n9HKAP97aTtSU6pmKNdx/KdAJLAVC67tLqUna7jhGu2VfG9DH1QEY3Y0cr7m2O9 KJacb7znuK5fdFofJ57+AMSpVIb8KHm30+wflTcaYVsoGgpxwyRcFyxutq0BaLhKUeje FlB/RkR6d8wa+8SqTnz5L88uOiN0PqaSUvOvoEIFurCGOoTzQcXZ8jMMwN3RSHR3Q+TY mkKOlcJlSOvRoqv4tmnXkSqNMwUPGx8Kay6+X9mPOnAyEOBY7EYMD8Ojoh09yeSEiH9B 4X0A== X-Gm-Message-State: AOAM532hKyWPjo+fz8Hpx4hPaKcD0syN50/oiYLGCXe/mimGvkTu5hOU 7V/cXGfoY+vGO//Lo3SmkbcmrSlHAYmEEg== X-Received: by 2002:a17:90b:2252:: with SMTP id hk18mr10966529pjb.36.1638503676022; Thu, 02 Dec 2021 19:54:36 -0800 (PST) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id y32sm1301334pfa.145.2021.12.02.19.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Dec 2021 19:54:35 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Masahisa Kojima Subject: [PATCH 0/3] fix TCG2 error handling Date: Fri, 3 Dec 2021 12:58:12 +0900 Message-Id: <20211203035815.27433-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.38 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 series fix the efi_tcg2.c error handling. Masahisa Kojima (3): efi_loader: efi_tcg2_register returns appropriate error efi_loader: check tcg2 protocol installation outside the TCG protocol efi_loader: correctly handle tcg2_measure_pe_image() error include/efi_loader.h | 2 + lib/efi_loader/Kconfig | 2 + lib/efi_loader/efi_image_loader.c | 11 +++- lib/efi_loader/efi_setup.c | 2 + lib/efi_loader/efi_tcg2.c | 85 ++++++++++++++++++++++++------- 5 files changed, 81 insertions(+), 21 deletions(-)