From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (NAM02-BL2-obe.outbound.protection.outlook.com [40.92.3.22]) by mx.groups.io with SMTP id smtpd.web11.4523.1585105127319091611 for ; Tue, 24 Mar 2020 19:58:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=Co0Ez/9q; spf=pass (domain: outlook.com, ip: 40.92.3.22, mailfrom: michael.kubacki@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lnEKzUzHbuxz6zyHJSz1FW8gq0hMyFpNcgdofjZ1HhpH31G4ern2u5x/T5OzVieTh0dMsjhzwHh4eoUd4P0dXSdfo1XY015i8t1AteJtz76jEI5juq5jAu0mSvn3k5t6Vpm+5KLkj4KZy22DK8yi0H+k38b2SrrtYH7HiNlEjv5nlg4xCsXlnENJV7E3zALvn/4hmvQd6WDgb2uivoE9FawxhWgh/Vnh9rYzsTVc2XntdvPnDlEyPIHP37YkHumnMbpzbiKZVrQl6u5U5mwVoSnrXQ9fqM2HFWVN+HSE+l3y0360nWllFWVdEYXkHKdnfrVv1VgIoz/OIzvqFU4c1g== 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=TNNwfyZ6iAXvPt3cgIcz5U4Y+GyYCRTypDAyaG6zcuI=; b=ZbaS+4G7n2LbFwMFBaMiW9VDSFlbPWItxIgNvOgJScJeCbrsPxefjvmgKzfJEr4AADUhI4+e9A2GiBUW0VMwUpN5UhPuTaCeeA8JSsOo6jcISq+qGhVLyXn+UWOReJMhyBTUBiVRQs0NcyJz5btVagyYciYngDNMvKvi+KiHPqIBaWrb4tjwWGqLqizU+gt/Zp8FYXUQqPxDik9HCfaJEKp+qO4sskn/DTgGhP2Qp+tTFE7WeL1i1Vcvjn2xnyhZ+iD9ObNiNqj2V3t8bmunWebNoUB4ang24w2HhwnOWIVfyc7sdsTx9tH15VKamQ2jVst1aJsE02fqsoEaL1TGag== 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=TNNwfyZ6iAXvPt3cgIcz5U4Y+GyYCRTypDAyaG6zcuI=; b=Co0Ez/9qmbpgZrLkO3Vx7UiSfzmA/OiNC68NrGNASaJQgnlGL0RXrOClwbC3If495GPlO/S5kAJVwcxZEhTu1k6xo0ELtldOk/OHiEsbp0+veXCH3aEJ4bJwqu812UyFf8fEmk80UwUyEzHhzWLSlZ9E1k6tUdkzZm2AiEW8KvGcl4eIf+n8JN2b+POF/QjXeSA3TB6Sc3LP3/ZkGPoh+ozIMun98bHtodC39G4PkySoIQxf25xCy8Wmw4XFAsDu4cfXCaizHTNSD51oQl3fOiG4Cwuq8POKTvc9JE8qTUj1joi1sMdY8+Xej5TXzv8Kgb5i348jLkMk4aAlau/Xwg== Received: from SN1NAM02FT035.eop-nam02.prod.protection.outlook.com (10.152.72.60) by SN1NAM02HT168.eop-nam02.prod.protection.outlook.com (10.152.73.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13; Wed, 25 Mar 2020 02:58:45 +0000 Received: from MWHPR07MB3440.namprd07.prod.outlook.com (2a01:111:e400:7e44::33) by SN1NAM02FT035.mail.protection.outlook.com (2a01:111:e400:7e44::145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17 via Frontend Transport; Wed, 25 Mar 2020 02:58:45 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:2A263929A97DB38E5AA1F330534ADCEFBBD8377208852E204F46CC4449409BAD;UpperCasedChecksum:4E513E611DBDE304D0078D223366EF77F13F3932875471A6CCC3A6F8C9627D1F;SizeAsReceived:7880;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; Wed, 25 Mar 2020 02:58:45 +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 v2 0/2] Return GetVariable() attr if EFI_BUFFER_TOO_SMALL Date: Tue, 24 Mar 2020 19:58:01 -0700 Message-ID: X-Mailer: git-send-email 2.16.3.windows.1 X-ClientProxiedBy: MW2PR16CA0062.namprd16.prod.outlook.com (2603:10b6:907:1::39) To MWHPR07MB3440.namprd07.prod.outlook.com (2603:10b6:301:69::28) Return-Path: michael.kubacki@outlook.com X-Microsoft-Original-Message-ID: <20200325025803.21384-1-michael.kubacki@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2001:4898:80e8:3:bc31:1508:3501:39ae) by MW2PR16CA0062.namprd16.prod.outlook.com (2603:10b6:907:1::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.19 via Frontend Transport; Wed, 25 Mar 2020 02:58:45 +0000 X-Mailer: git-send-email 2.16.3.windows.1 X-Microsoft-Original-Message-ID: <20200325025803.21384-1-michael.kubacki@outlook.com> X-TMN: [ic9MLkGldzY9Aqr3XyvigmjyYnNjjn53iHp0JYqicc5ToRmV7clza0UKtbMdo2QP] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 79f86983-8105-463b-4d20-08d7d0686f24 X-MS-TrafficTypeDiagnostic: SN1NAM02HT168: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Htr/UTk+vB6OI2B0cYmauCi2THvHbRTATkqig8JelMR6R57ydYbjPzcprEfy46FtkIuU5rVveiofi6qxjWeAagLFIJyOWIF+Uw4WU/sQpGOnyKXyDKh6RHFSpEAE4SGiwyy0OjSOJopzg8oAML9S3cu+vpAeMDJ6s6FngyhpoH2bZpqAfiLGSLm/+OTLN7jwPyIZpiROsQUKKUYouE77fqqxXfb6XlLBqirzdsUD8d0= X-MS-Exchange-AntiSpam-MessageData: MIdc02nL4uBW/ROnl4OGQ0kXSkuoOSDfJ49One6y1JjaESDI9kcU0IHCuD/apx4HyNBcUYWZ16nsI45KEokzaFhfxc9D2HTErQcdNx4Si9uqcpbG4XBkmbO1NpVniP3+fsmAqXhM7T1jk80yg/dGi8KLrBgq+zXtCuBt04mWmLZX/3BSAs4R20qIPoBpmNjjKblpR5dhgbWcytRmkNh1uQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79f86983-8105-463b-4d20-08d7d0686f24 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2020 02:58:45.7759 (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: SN1NAM02HT168 Content-Type: text/plain From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2062 This is a two-part patch series to update the GetVariable() implementation to return Attributes in the case EFI_BUFFER_TOO_SMALL is returned. * [PATCH v2 1/2] Makes the actual functional change in the variable driver implementation. * [PATCH v2 2/2] Removes a change made in NetworkPkg that worked around the previous behavior when EFI_BUFFER_TOO_SMALL is returned. 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 (2): MdeModulePkg/Variable: Return GetVariable() attr if EFI_BUFFER_TOO_SMALL Revert "NetworkPkg/TlsAuthConfigDxe: fix TlsCaCertificate attributes retrieval" MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 10 +++++--- MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c | 10 +++++--- NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c | 27 +------------------- 3 files changed, 14 insertions(+), 33 deletions(-) -- 2.16.3.windows.1