From nobody Mon Feb 9 20:31:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+52710+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52710+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1578020679; cv=none; d=zohomail.com; s=zohoarc; b=UhNQxvii84+uadfaEpW4UzOD+kWogP7ET2VUG47KrVky+gHBM96J4qlmuvd8ZKoppBYwFii3ZvF3jURzjy8lEnVaXgGhYSeuYBrgWgOlF0cegmhRqflHIh8IAOXUfMUTZGtp4YrpqCALFj8MN5oxnRhFgTucF3Bksct7WG+kHso= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578020679; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=vLA52gMh06dxqwyZFi8W6uaw1ZrTFj+wCblUvT8eZkY=; b=lYjfl02ml7D/enw4dNVoxwlg6bTZSbyEAOu6+kEIurAxCL/0if+1DEv8b4I6H9pEB/OXbKYGYdibpSc2tVr/mIk+90UYMoVaSYl32MuI2RqBDPRGDYqcAhZX7dbTjLRyUqTH4+GVSB1Tfs/tLEOCHHSlhdeVEaRF5aBavTPlrvE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52710+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1578020679577529.7928593235183; Thu, 2 Jan 2020 19:04:39 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 2tYqYY1788612x2EZcvdV9k2; Thu, 02 Jan 2020 19:04:39 -0800 X-Received: from mga04.intel.com (mga04.intel.com []) by mx.groups.io with SMTP id smtpd.web09.3729.1578020675360032184 for ; Thu, 02 Jan 2020 19:04:38 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jan 2020 19:04:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,389,1571727600"; d="scan'208";a="252455087" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by fmsmga002.fm.intel.com with ESMTP; 02 Jan 2020 19:04:37 -0800 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Chao Zhang Subject: [edk2-devel] [PATCH 03/13] SecurityPkg/Tcg2PhysicalPresenceLib: Use the new Ex function Date: Fri, 3 Jan 2020 11:04:17 +0800 Message-Id: <20200103030428.28176-4-zhichao.gao@intel.com> In-Reply-To: <20200103030428.28176-1-zhichao.gao@intel.com> References: <20200103030428.28176-1-zhichao.gao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhichao.gao@intel.com X-Gm-Message-State: WE9tmKCzT0Myt6PHEXu0djxLx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1578020679; bh=9BzuLq10w/PFcg0/XDv8JrSyeKQUWU0pDSyBLy9/jFY=; h=Cc:Date:From:Reply-To:Subject:To; b=rhDfvPi8rn/uBGr4apIidUCJ3sHifAHc7jNx6BTlVCqP2FU8KVeRvQMQyCWZfm39/11 t2evDuEC2+R9mIVa5kHjPCROzZw8mK3mjw51lOH5zU7JWYGo92v0xnMgHz9mbNKxMEeyi K/91QPtxWI5q1MaOQTE2lb8rmjJHa26hIKE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2443 Change the call of Tcg2PpVendorLibExecutePendingRequest to Tcg2PpVendorLibExecutePendingRequestEx. Change the call of Tcg2PpVendorLibSubmitRequestToPreOSFunction to Tcg2PpVendorLibSubmitRequestToPreOSFunctionEx. Cc: Jiewen Yao Cc: Jian J Wang Cc: Chao Zhang Signed-off-by: Zhichao Gao --- .../DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2Physical= PresenceLib.c b/SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2Physi= calPresenceLib.c index 80e2e37bf4..081605f26c 100644 --- a/SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenc= eLib.c +++ b/SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenc= eLib.c @@ -7,7 +7,7 @@ =20 Tpm2ExecutePendingTpmRequest() will receive untrusted input and do valid= ation. =20 -Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.
+Copyright (c) 2013 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -767,7 +767,7 @@ Tcg2ExecutePendingTpmRequest ( if (TcgPpData->PPRequest >=3D TCG2_PHYSICAL_PRESENCE_VENDOR_SPECIFIC_OPE= RATION) { NewFlags =3D *Flags; NewPPFlags =3D NewFlags.PPFlags; - TcgPpData->PPResponse =3D Tcg2PpVendorLibExecutePendingRequest (Platfo= rmAuth, TcgPpData->PPRequest, &NewPPFlags, &ResetRequired); + TcgPpData->PPResponse =3D Tcg2PpVendorLibExecutePendingRequestEx (Plat= formAuth, TcgPpData, &NewPPFlags, &ResetRequired); NewFlags.PPFlags =3D NewPPFlags; } else { if (!RequestConfirmed) { @@ -1196,7 +1196,7 @@ Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction ( if (EFI_ERROR (Status)) { Flags.PPFlags =3D TCG2_BIOS_TPM_MANAGEMENT_FLAG_DEFAULT | TCG2_BIOS_= STORAGE_MANAGEMENT_FLAG_DEFAULT; } - return Tcg2PpVendorLibSubmitRequestToPreOSFunction (OperationRequest, = Flags.PPFlags, RequestParameter); + return Tcg2PpVendorLibSubmitRequestToPreOSFunctionEx (&PpData, Flags.P= PFlags); } =20 return TCG_PP_SUBMIT_REQUEST_TO_PREOS_SUCCESS; --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#52710): https://edk2.groups.io/g/devel/message/52710 Mute This Topic: https://groups.io/mt/69392330/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-