From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.92.21.10]) by mx.groups.io with SMTP id smtpd.web12.24069.1585346173998872334 for ; Fri, 27 Mar 2020 14:56:14 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=TzKJlVe5; spf=pass (domain: outlook.com, ip: 40.92.21.10, mailfrom: michael.kubacki@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=McWYBp3QrpJI3Ps68FY2DADtcKPiRtk6tfRnfhRDf0WL3qcHFQqZWCbKWUQTUc5h7x8+zGjE34WCk2mFj/O5zA8yuMouSO+o5g5wrH78qwKi5u+sYEaxYh6E4YD9H4pY9GeZb43uVKhL7mmMD/S4Iu/MxsI1HubcZRLy+QpQNQFlnjHk+YG4xPzQrtN95wE9fdSYIlF83+DamEtx0v0YSVaZtNUMTQv16wAKIPX1DmPjItUWLagDuy5pTnnlUY5NfhD9kgSQHVow4TqK15D09twSF4h1XEFdHE8OLtl8D4JQ4dV5y45ytiGkXpGCTtJlyUbIw0PnRIsDLM0gXsMtFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WxMacqQmvmijOH5e6KsUQL8nX5RYM2FyXtqdnlMmRvY=; b=C3a5ePYGILMNlAvTSZTnBqciI6dLA3J5HxQwUMVKKc0EVV6nJRPW5wYTeZ6QlER6fScrlSChtw+c7Sys5fknCVtMMNrQf/spQTAj0msmieiJw8kOfUshe/l8s0seXJtVp1KPYPIXX9hkb8cicdwihjl32fIL17NDnxtHsphPDCmKSCHtksCLOVNWP6hJN6wOgEPy1j6Tc1i9Zv0SEj8zppXjX9JEsebYLXFAtI+io3zBfj7YtCTMASrk/aWwaIr5/PdcxEcrKBvvPKtuEh15lT7P6HEZbfktgpaTN0P394WukbLcHwgQtVLwMZ6tL+9AOU+ztbNXJR4EyHxt1zhdZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WxMacqQmvmijOH5e6KsUQL8nX5RYM2FyXtqdnlMmRvY=; b=TzKJlVe5Pp/p9TbJ+SdPBNlTR+kaP76+WEApGlMLzAk3v1Q5dobiwZnsHAbvZi5C53ct61CTneqtLOuphHAz6cGbjX6WJE0IBeAnhj+wL0dXu0WY492i3LMW+iTBMnoJdVYrQ5n+fY3Cl5K466OcUuvovh2ypJgMVcR/KXoACPQevGQlY1EgkV25ZCD7RLrkUEhhnwYFVIBg9eXD4EmGwqsfBaC8lWTkMrxPcJ+Zobm/CpRnPE230UXuTcKEdJ7ky842CqjwcOi1zgauYj+B5/oUIhLtTYitrduX2qBwMF0ZBdtHN1zRK90/766+okVxr6hKxovC9xnXHfbaBCo7nA== Received: from DM6NAM12FT037.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc64::4f) by DM6NAM12HT106.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc64::352) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.9; Fri, 27 Mar 2020 21:56:13 +0000 Received: from MWHPR07MB3440.namprd07.prod.outlook.com (10.13.178.52) by DM6NAM12FT037.mail.protection.outlook.com (10.13.179.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.9 via Frontend Transport; Fri, 27 Mar 2020 21:56:12 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:F00CC45DD0CA9A64035D05E0E73C333B94FD1CAE3AC677492ABEEAFE5E84DA69;UpperCasedChecksum:22C500DC955A38CEBB8D5EE0523E792117EFB041FCB7D2DAAE681FA494F9425D;SizeAsReceived:7881;Count:47 Received: from MWHPR07MB3440.namprd07.prod.outlook.com ([fe80::f5a7:e51b:e22a:959f]) by MWHPR07MB3440.namprd07.prod.outlook.com ([fe80::f5a7:e51b:e22a:959f%7]) with mapi id 15.20.2835.023; Fri, 27 Mar 2020 21:56:12 +0000 From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Bret Barkelew , Laszlo Ersek , Siyuan Fu , Liming Gao , Michael D Kinney , Maciej Rabeda , Jian J Wang , Jiaxin Wu , Hao A Wu Subject: [PATCH v3 0/3] Return GetVariable() attr if EFI_BUFFER_TOO_SMALL Date: Fri, 27 Mar 2020 14:55:33 -0700 Message-ID: X-Mailer: git-send-email 2.16.3.windows.1 X-ClientProxiedBy: MWHPR20CA0037.namprd20.prod.outlook.com (2603:10b6:300:ed::23) To MWHPR07MB3440.namprd07.prod.outlook.com (2603:10b6:301:69::28) Return-Path: michael.kubacki@outlook.com X-Microsoft-Original-Message-ID: <20200327215536.9556-1-michael.kubacki@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2001:4898:80e8:a:5a12:4b01:47a7:5411) by MWHPR20CA0037.namprd20.prod.outlook.com (2603:10b6:300:ed::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19 via Frontend Transport; Fri, 27 Mar 2020 21:56:12 +0000 X-Mailer: git-send-email 2.16.3.windows.1 X-Microsoft-Original-Message-ID: <20200327215536.9556-1-michael.kubacki@outlook.com> X-TMN: [XWE8300NwVjfIg/xZwAMigsdYKh2PHaYPLkG9jBI7YbxWRWv8TuwoJ+NcPPBz9RC] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: f876fa4a-9b6d-4a5e-b239-08d7d299aa6d X-MS-TrafficTypeDiagnostic: DM6NAM12HT106: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: diSBlAW/brtxC6B74TWCXXk2F/BRGXV/q7e4dkPnawG7LOiEHAC87DbBQa1pd5Vp+nqShz3xOdlwNgSGT1YrrqhnqFfng6MtcmPeg0UpQL2F9YFUrKps66LXUw80lMrlPGQZDVoJyIFwQBdPOZKyR96C2llDgs+8AZesiLrOM2m0t2U9dBHevUG1rDZbhqKg X-MS-Exchange-AntiSpam-MessageData: cc2E1M9PyaOwJvqHPkDBH/jsS/sUMFFnob8TYuh2IVlfV1aPjldKFbSgp+4RkH+4mxDCUa8ijM3zzy6a6JN+5doEfec3jf84aoWODJ7q1O5cDWws4HZK8kmDlJpEoW3qpf1vXwiPf7V3qPCCPRy/U2EMnOgubC1yJH70Z6e+GvKM+jDONrKBfD4WeX87tmFfgUOh6bIenU9pVdL5BUR06Q== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f876fa4a-9b6d-4a5e-b239-08d7d299aa6d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2020 21:56:12.8648 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM12HT106 Content-Type: text/plain From: Michael Kubacki This patch series updates the GetVariable() implementation to return Attributes in the case EFI_BUFFER_TOO_SMALL is returned. * [PATCH v3 1/3] Makes the functional change in the DXE/MM variable driver. * [PATCH v3 2/3] Makes the functional change in the PEI variable driver. * [PATCH v3 3/3] Removes a change made in NetworkPkg that worked around the previous behavior when EFI_BUFFER_TOO_SMALL is returned. V3 changes: * Apply the same GetVariable() behavior in VariablePei so it is consistent with the DXE/MM variable driver implementation. V2 changes: * Revert commit 6896efdec2 in NetworkPkg since the variable Attributes are now returned in the case of EFI_BUFFER_TOO_SMALL. Cc: Bret Barkelew Cc: Laszlo Ersek Cc: Siyuan Fu Cc: Liming Gao Cc: Michael D Kinney Cc: Maciej Rabeda Cc: Jian J Wang Cc: Jiaxin Wu Cc: Hao A Wu Signed-off-by: Michael Kubacki Michael Kubacki (3): MdeModulePkg Variable: Return GetVariable() attr if EFI_BUFFER_TOO_SMALL MdeModulePkg VariablePei: Return GetVariable() attr if EFI_BUFFER_TOO_SMALL Revert "NetworkPkg/TlsAuthConfigDxe: fix TlsCaCertificate attributes retrieval" MdeModulePkg/Universal/Variable/Pei/Variable.c | 19 +++++++------- MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 10 +++++--- MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c | 10 +++++--- NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c | 27 +------------------- 4 files changed, 24 insertions(+), 42 deletions(-) -- 2.16.3.windows.1