Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC40BC001B0 for ; Mon, 7 Aug 2023 17:25:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4826F8073F; Mon, 7 Aug 2023 19:25:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.ibm.com 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=ibm.com header.i=@ibm.com header.b="lVDmDM13"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EED1A80752; Mon, 7 Aug 2023 19:25:54 +0200 (CEST) Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EAA5680727 for ; Mon, 7 Aug 2023 19:25:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eajames@linux.ibm.com Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 377HEIsL020296; Mon, 7 Aug 2023 17:25:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=UMQqBoopc9xFCHoWzYbTC/12cR+RLSRGN5HmdyldqP0=; b=lVDmDM13jGDmlXpU0eqBpN+VjsLK9A5B41JFTPAMv4AoTIA3HWnEqOm3FFHtxwT4Z05n Tp8coXBJS8kUlaANAQAl0Pic1CAurrE/vCUgG7JtG4tauY6LirkEvgle/z9/X9re+LQf FaXrhbaTwFZ/zK6SjuvVFIEQNJCpDwhvgaUB121gXq6Eui/nDsfnTd3bDmIec3QfSUET +VmSxcSUpNh4KSIhp0wI0647iR/4TWlKHxVCeIa0yxJ7k8gmsomRcv55CEmybv3fA7va iVpZIKFWiYtDeyEnBVLaU4QQjzZ/4ilIZX7Wqfe/gKGfSMUw9dsEAjNgQDZ8brtY1u6z rA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3sb4k6rk6y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 17:25:45 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 377HFHYl023518; Mon, 7 Aug 2023 17:25:45 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3sb4k6rk6g-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 17:25:44 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 377Gogs3030766; Mon, 7 Aug 2023 17:11:08 GMT Received: from smtprelay06.dal12v.mail.ibm.com ([172.16.1.8]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3sa1rmxyx2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 17:11:08 +0000 Received: from smtpav04.dal12v.mail.ibm.com (smtpav04.dal12v.mail.ibm.com [10.241.53.103]) by smtprelay06.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 377HB7wu2949742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Aug 2023 17:11:07 GMT Received: from smtpav04.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 44FC358052; Mon, 7 Aug 2023 17:11:07 +0000 (GMT) Received: from smtpav04.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1A77B58056; Mon, 7 Aug 2023 17:11:07 +0000 (GMT) Received: from [9.61.130.18] (unknown [9.61.130.18]) by smtpav04.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 7 Aug 2023 17:11:07 +0000 (GMT) Message-ID: <7c5940da-92d8-132f-66e2-33f9fe0e0970@linux.ibm.com> Date: Mon, 7 Aug 2023 12:11:06 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v10 07/10] efi_loader: fix EFI_ENTRY point on get_active_pcr_banks Content-Language: en-US To: Ilias Apalodimas Cc: u-boot@lists.denx.de, sjg@chromium.org, xypron.glpk@gmx.de, joel@jms.id.au References: <20230807151735.84093-1-eajames@linux.ibm.com> <20230807151735.84093-8-eajames@linux.ibm.com> From: Eddie James In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: bWSmoCZlb91G3pIkMTkk0M1Y-WOL2N0b X-Proofpoint-ORIG-GUID: K6hERSHsgLhMrm_TSFhSgSVxMMUKkcfQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-07_18,2023-08-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 malwarescore=0 suspectscore=0 bulkscore=0 phishscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 priorityscore=1501 clxscore=1015 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308070158 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 On 8/7/23 10:56, Ilias Apalodimas wrote: > Hi Eddie, > > On Mon, 7 Aug 2023 at 18:17, Eddie James wrote: >> From: Ilias Apalodimas > We need a commit message for that. Something along the lines of > efi_tcg2_get_active_pcr_banks() doesnt immediately call the > EFI_ENTRY() wrappers once it enters the function. Move the call a few > lines above and cover the error cases properly as well Oops, yep. I'll fix this too. Thanks, Eddie > > Thanks > /Ilias >> Signed-off-by: Ilias Apalodimas >> --- >> lib/efi_loader/efi_tcg2.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/lib/efi_loader/efi_tcg2.c b/lib/efi_loader/efi_tcg2.c >> index 5f0f4b5dd2..829bae7436 100644 >> --- a/lib/efi_loader/efi_tcg2.c >> +++ b/lib/efi_loader/efi_tcg2.c >> @@ -718,16 +718,16 @@ efi_tcg2_get_active_pcr_banks(struct efi_tcg2_protocol *this, >> struct udevice *dev; >> efi_status_t ret; >> >> + EFI_ENTRY("%p, %p", this, active_pcr_banks); >> + >> if (!this || !active_pcr_banks) { >> ret = EFI_INVALID_PARAMETER; >> goto out; >> } >> - >> ret = tcg2_platform_get_tpm2(&dev); >> if (ret != EFI_SUCCESS) >> goto out; >> >> - EFI_ENTRY("%p, %p", this, active_pcr_banks); >> ret = tcg2_get_active_pcr_banks(dev, active_pcr_banks); >> >> out: >> -- >> 2.39.3 >>