From nobody Sun Feb 8 18:49:27 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+78712+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78712+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1628175456; cv=none; d=zohomail.com; s=zohoarc; b=Zsj/ebH3wXlFsgYj/FIw/Zg/sTAlZIJpMuTKSDR/ebZBN0bmLMBz9BDUogweOACqYNQ7r39C5nOKKgLJugsc4+3lqm+hTUHNgQPRyKhkC9TQ7ZLMCEhRBcaq8dnPbKPKdI+5qxgw92ZDDHD+GSM0sNDkpxonW9f/mJ4dm3h5mFQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628175456; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=tnwcK3tRAOQTMkdgvvXbn1n4qcxCqZtowRZ0/qxrS1w=; b=G8rTxiGopWnPBNynQ52dk459TRlKEfKV9mmQ2D/oMFcjLgpkxCHDdrt0bJ4SfTMjrF+D8JCABHluNJtskXHHNSfG2oQLfngsf2BPMHMb70V3XONC7TW4RUPG4gQsiFeA4jAfPFz4x4RlkD/3XKEYU5FykImcqMm8rKb4Ibr4Eis= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78712+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1628175456405576.658748939419; Thu, 5 Aug 2021 07:57:36 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id SXWdYY1788612xxwYTeSsheE; Thu, 05 Aug 2021 07:57:36 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web10.9903.1628175455603980657 for ; Thu, 05 Aug 2021 07:57:35 -0700 X-Received: from localhost.localdomain (unknown [167.220.2.74]) by linux.microsoft.com (Postfix) with ESMTPSA id 3C27620B36ED; Thu, 5 Aug 2021 07:57:35 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3C27620B36ED From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Liming Gao , Eric Dong Subject: [edk2-devel] [edk2-platforms][PATCH v1 2/5] MinPlatformPkg/TestPointCheckLib: Set required size field in protocol Date: Thu, 5 Aug 2021 10:57:03 -0400 Message-Id: <20210805145706.2470-3-mikuback@linux.microsoft.com> In-Reply-To: <20210805145706.2470-1-mikuback@linux.microsoft.com> References: <20210805145706.2470-1-mikuback@linux.microsoft.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,mikuback@linux.microsoft.com X-Gm-Message-State: XJ1rmFZdn4W18c2pX8ymEMmdx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1628175456; bh=V0PkIVmLS6agYOb9mpi90i1YHp4kHFdevh0g+uNCW7o=; h=Cc:Date:From:Reply-To:Subject:To; b=lEOuazLublNH/gaZRDzLfHpbZxTO+KjUckUcFzPDB8UX8xgU5CICpZV2zXiz3vW3LAo /zW4Mp1eLqP3AT4EDFa9cNkHujYLT1uy4KpYuH26eZ90TnuqPB5eSMGdNqH9DgplVZWr4 zm/wRORnxfJHSKQ+KBHJZ0Iqi1zW2B2Tlik= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1628175457257100001 Content-Type: text/plain; charset="utf-8" From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3518 Per the protocol definition, the caller must allocate the input structure and set the size field. TestPointCheckTcgTrustedBoot() does not do this which can result in an EFI_BUFFER_TOO_SMALL error. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong Signed-off-by: Michael Kubacki --- Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckTcgTr= ustedBoot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/D= xeCheckTcgTrustedBoot.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPo= intCheckLib/DxeCheckTcgTrustedBoot.c index 2a04f86fedac..7a8e3fed22f9 100644 --- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheck= TcgTrustedBoot.c +++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheck= TcgTrustedBoot.c @@ -41,6 +41,7 @@ TestPointCheckTcgTrustedBoot ( goto Done; } =20 + ProtocolCapability.Size =3D (UINT8) sizeof (ProtocolCapability); Status =3D Tcg2->GetCapability (Tcg2, &ProtocolCapability); if (EFI_ERROR(Status)) { DEBUG ((DEBUG_ERROR, "Tcg2->GetCapability - %r\n", Status)); --=20 2.28.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 (#78712): https://edk2.groups.io/g/devel/message/78712 Mute This Topic: https://groups.io/mt/84686304/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-