Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp487319ybl; Wed, 14 Aug 2019 01:00:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPGPdLphWjfZT1naPLT7/ih0VWOAOfvvMt4IWhDmiCAhgLIBeh+blgsNMUW7FaYOkwFG28 X-Received: by 2002:a17:90a:d343:: with SMTP id i3mr6191830pjx.15.1565769613435; Wed, 14 Aug 2019 01:00:13 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si60556576plw.37.2019.08.14.00.59.57; Wed, 14 Aug 2019 01:00:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=eZSJBh2d; dkim=neutral (body hash did not verify) header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b="Q9O/kjxD"; arc=fail (body hash mismatch); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726534AbfHNH7Q (ORCPT + 99 others); Wed, 14 Aug 2019 03:59:16 -0400 Received: from mail-eopbgr30049.outbound.protection.outlook.com ([40.107.3.49]:34887 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725816AbfHNH7P (ORCPT ); Wed, 14 Aug 2019 03:59:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ygDwrTkMA6vN2PDjMyXBr3b1Ws3kAxKrY9WBm935roc=; b=eZSJBh2dghVEUG5frwYvKyHZ0pI0AOL4vR+jdo8WIQIM9z6MgUMJOUjF2ZpDJ7Yp0rtGn06EkuchCry2b1Y9CDEwQtkizbeN+qbxCVcNwIhRPmx72PkciDbROEM6wSuT8ECyJ2XR1IwLc0BLfB9CUBtLeJnlVCdX+pAAH/RPiyw= Received: from HE1PR0802CA0015.eurprd08.prod.outlook.com (2603:10a6:3:bd::25) by AM5PR0801MB1844.eurprd08.prod.outlook.com (2603:10a6:203:39::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.18; Wed, 14 Aug 2019 07:59:02 +0000 Received: from AM5EUR03FT039.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::209) by HE1PR0802CA0015.outlook.office365.com (2603:10a6:3:bd::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2157.14 via Frontend Transport; Wed, 14 Aug 2019 07:59:02 +0000 Authentication-Results: spf=temperror (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; vger.kernel.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;vger.kernel.org; dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT039.mail.protection.outlook.com (10.152.17.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2052.18 via Frontend Transport; Wed, 14 Aug 2019 07:59:00 +0000 Received: ("Tessian outbound 220137ab7b0b:v26"); Wed, 14 Aug 2019 07:58:51 +0000 X-CR-MTA-TID: 64aa7808 Received: from 677307678570.1 (cr-mta-lb-1.cr-mta-net [104.47.13.51]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 3D2D8684-A502-4890-8541-0E94EACEDD83.1; Wed, 14 Aug 2019 07:58:46 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04lp2051.outbound.protection.outlook.com [104.47.13.51]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 677307678570.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 14 Aug 2019 07:58:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B6gPrLY92t7q4wnmJMWIIdspTcy3PKHslrtQxDHdRhDCDeDW7CWOjFqVWUkHnYHemQ6phlwexvu+afkWd7/ZZCU4Ivt0wEpFowOUaj/gGviYZ9TFskg06Es9vgOW0Y6GUgSSlwg1fUcFIxIuD2HjftmAa6cVsQJG4epASiLTI4xhHSmM5Boo+MqWIW/PMhC2XcrSDRmavlFYlQ8a3ickM0peFS29PMGXLFD344zMhat7+xHvgh3hKOgHlnr0HWANR5aeUG4Qimz+VH2tH7zMkIP5h3SyGHMPrMQaEqagxeTDuPrkBhqpO4lG2dGvWM64YruN+ApqWMvw5pFYQ5Wlmw== 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=CgF3Ql8Ry6htNOZDhrxZDHQvIQbYmhVdYJou1G8pfn8=; b=nWyydFoF+XhrF4CVJYuAPtP3nKX6Z/SC7/czvMaSfVRfqppxfW35rkGdyp6SAhHZKY+SbpoouoThssZTotWrwYkhwMGaSaSpdEuGz6fQkcZ47HCrN1DZBf8WzsN8BboLF9dphx/iFLM94K1ZL2kXv9x1PD07wIM7xN5K0iw+oRGTAc41Abwjl5A63N3zpqCzYf9Ptp03eudG2S6Rje5/JAyECQxjTzGP1J2GD1mELl/drnghq4YSXLGc3EQWaqKnnHO0CJfPMxiDOQrao1tlizJ113ljzecNZ3ef11ijTzw1NdA3mI9yJKar8qTzSKUo8JiQaziBLlVNf9naTbaaWw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CgF3Ql8Ry6htNOZDhrxZDHQvIQbYmhVdYJou1G8pfn8=; b=Q9O/kjxDtOXm4OqbdvcWXRL9WmR/wzHoKW13lx2zJeV/EKhFWaRrkJHhfENU8lnrv1tP0ifmYh2GBGwRNHlixMoqng+NeHgdfBPgwRJhIFaRa0+8V9ZcZj+tptfu93rU1wW7EfVs4CKZaiwtmt05F7ueKV2z2NAQWmK7Ppsep68= Received: from DBBPR08MB4678.eurprd08.prod.outlook.com (10.255.78.151) by DBBPR08MB4315.eurprd08.prod.outlook.com (20.179.41.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.16; Wed, 14 Aug 2019 07:58:43 +0000 Received: from DBBPR08MB4678.eurprd08.prod.outlook.com ([fe80::604c:b27f:b6bb:6f96]) by DBBPR08MB4678.eurprd08.prod.outlook.com ([fe80::604c:b27f:b6bb:6f96%4]) with mapi id 15.20.2157.022; Wed, 14 Aug 2019 07:58:43 +0000 From: Guillaume Gardet To: Ard Biesheuvel , Chester Lin , "linux@armlinux.org.uk" CC: "akpm@linux-foundation.org" , "rppt@linux.ibm.com" , "ren_guo@c-sky.com" , Juergen Gross , "geert@linux-m68k.org" , "mingo@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-efi@vger.kernel.org" , Joey Lee , Gary Lin Subject: RE: [PATCH] efi/arm: fix allocation failure when reserving the kernel base Thread-Topic: [PATCH] efi/arm: fix allocation failure when reserving the kernel base Thread-Index: AQHVSPSS9nx4lee000qskpi0lgLxmKbqonoAgA+3GZA= Date: Wed, 14 Aug 2019 07:58:43 +0000 Message-ID: References: <20190802053744.5519-1-clin@suse.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 8dab6588-b089-418a-8ce0-0cf91e12923d.1 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Guillaume.Gardet@arm.com; x-originating-ip: [217.140.96.140] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 77c6b903-2d1c-4346-00a6-08d7208d449e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam-Untrusted: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DBBPR08MB4315; X-MS-TrafficTypeDiagnostic: DBBPR08MB4315:|AM5PR0801MB1844: X-MS-Exchange-PUrlCount: 1 X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:10000;OLM:10000; x-forefront-prvs: 01294F875B X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4636009)(346002)(376002)(366004)(136003)(396003)(39860400002)(199004)(189003)(13464003)(66476007)(102836004)(6436002)(6506007)(53936002)(86362001)(53546011)(55016002)(476003)(54906003)(110136005)(76176011)(8936002)(14444005)(33656002)(2906002)(478600001)(14454004)(81156014)(486006)(4326008)(66556008)(64756008)(76116006)(256004)(6116002)(2501003)(66946007)(11346002)(446003)(66446008)(26005)(8676002)(3846002)(25786009)(6306002)(966005)(74316002)(7736002)(81166006)(5660300002)(186003)(305945005)(316002)(7416002)(9686003)(71190400001)(6246003)(7696005)(66066001)(71200400001)(52536014)(229853002)(99286004);DIR:OUT;SFP:1101;SCL:1;SRVR:DBBPR08MB4315;H:DBBPR08MB4678.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info-Original: qtRNSvQzyh6hPMLjg64pei+XOCdd7BSCIkVx65eWF6ULcNtBqrQ59bv0yhoHiTkK0w+c/1qvZuKqnN1o91eivIGBWdt3rWtDP0yApMyJbJ/Hcp2dsOW6PdDCJ7wq+pMWBJnLVmcAwNgjwICAycxj5foCbqp0P+H8ZbIORxCbd3MaSPdTEW1+6hPJvTdeQUuwguJUoKoRYvs2Pkszq6RPdhDgbjdjo8rrI3ah8aY8PhiMPPqyICUO7WIza3PYt30rXCi2BBpT6VGSqi0W2Ti8S5MbyanB1BsjQgg4EANQxPfHfpWlyx0UJ1A9y/fcEUA0XzqlZXDCruZcp4ip1IAyjx1lVyBE52K0GmROznVjrMiLOgeBnfvZDcw8851/+XzkBY4UCyQSvXWsLw/U9+CVDjJabuH+QKZtTduv8brS02s= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4315 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Guillaume.Gardet@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT039.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;IPV:CAL;SCL:-1;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(376002)(136003)(396003)(346002)(2980300002)(40434004)(13464003)(189003)(199004)(76130400001)(186003)(3846002)(6116002)(52536014)(26005)(476003)(436003)(63370400001)(9686003)(70206006)(5660300002)(22756006)(8936002)(446003)(126002)(486006)(70586007)(11346002)(2486003)(23676004)(7696005)(86362001)(6506007)(14444005)(76176011)(5024004)(2906002)(53546011)(14454004)(63350400001)(102836004)(336012)(478600001)(6246003)(54906003)(33656002)(966005)(26826003)(55016002)(4326008)(50466002)(229853002)(110136005)(316002)(8676002)(2501003)(6306002)(81156014)(99286004)(74316002)(305945005)(81166006)(7736002)(25786009)(66066001)(47776003)(36906005)(356004)(107886003)(450100002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM5PR0801MB1844;H:64aa7808-outbound-1.mta.getcheckrecipient.com;FPR:;SPF:TempError;LANG:en;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;MX:1;A:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 610e8b30-a140-47d5-743a-08d7208d3a50 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(710020)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:AM5PR0801MB1844; X-Forefront-PRVS: 01294F875B X-Microsoft-Antispam-Message-Info: ZCpekqz71OVR6WD09PfMt4cx4cmpgI6AReX4dReJGbym86aHZRbm5guQsmDep3ox1qtZlVpir2fhq1cm4ikPgethlIJC+agBTbHAGF4qLi4SE6bo/RxlGFu35cBCne+yO1a1GcQz4nz8RPS3zkZVmHtbnfFsa+O5G8y+8M8qGaD+YX/lyAZ/eNpE4zfwkm0AvGIaPVhQwxDr8FjBHetpxANwycktgIwzGiIy51aXjWrnMMEtA06NtTtp/dVVx1s61S2zvlfpdkdm35dGv/fEV/oW4uJuaj6VrL23xeFY+us9E1giosnqpFvqjCx+T/tJm7VkbRFlCCblN+CXjNvehneK3FAbySkfoJvfpPX+J9Vo77qfhfqS7WctdelOXFlJeHW8JRXF6AD8rotDmzaTOKMJeuZPVNWVUfAJ9f1DBMo= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2019 07:59:00.8586 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77c6b903-2d1c-4346-00a6-08d7208d449e X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1844 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQXJkIEJpZXNoZXV2ZWwg PGFyZC5iaWVzaGV1dmVsQGxpbmFyby5vcmc+DQo+IFNlbnQ6IDA0IEF1Z3VzdCAyMDE5IDA5OjU3 DQo+IFRvOiBDaGVzdGVyIExpbiA8Y2xpbkBzdXNlLmNvbT47IGxpbnV4QGFybWxpbnV4Lm9yZy51 aw0KPiBDYzogYWtwbUBsaW51eC1mb3VuZGF0aW9uLm9yZzsgcnBwdEBsaW51eC5pYm0uY29tOyBy ZW5fZ3VvQGMtc2t5LmNvbTsNCj4gSnVlcmdlbiBHcm9zcyA8Skdyb3NzQHN1c2UuY29tPjsgZ2Vl cnRAbGludXgtbTY4ay5vcmc7IG1pbmdvQGtlcm5lbC5vcmc7DQo+IGxpbnV4LWFybS1rZXJuZWxA bGlzdHMuaW5mcmFkZWFkLm9yZzsgbGludXgta2VybmVsQHZnZXIua2VybmVsLm9yZzsgbGludXgt DQo+IGVmaUB2Z2VyLmtlcm5lbC5vcmc7IEd1aWxsYXVtZSBHYXJkZXQgPEd1aWxsYXVtZS5HYXJk ZXRAYXJtLmNvbT47IEpvZXkgTGVlDQo+IDxKTGVlQHN1c2UuY29tPjsgR2FyeSBMaW4gPEdMaW5A c3VzZS5jb20+DQo+IFN1YmplY3Q6IFJlOiB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AgLTE0NCwyNyArMTQ0LDUyIEBAIHN0YXRpYw0KPiA+IGVm aV9zdGF0dXNfdCByZXNlcnZlX2tlcm5lbF9iYXNlKGVmaV9zeXN0ZW1fdGFibGVfdCAqc3lzX3Rh YmxlX2FyZywNCj4gPiAgICAgICAgICAgICAgICAgY2FzZSBFRklfQk9PVF9TRVJWSUNFU19EQVRB Og0KPiA+ICAgICAgICAgICAgICAgICAgICAgICAgIC8qIElnbm9yZSB0eXBlcyB0aGF0IGFyZSBy ZWxlYXNlZCB0byB0aGUgT1MgYW55d2F5ICovDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAg Y29udGludWU7DQo+ID4gLQ0KPiA+ICsgICAgICAgICAgICAgICBjYXNlIEVGSV9SRVNFUlZFRF9U WVBFOg0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIC8qIElnbm9yZSByZXNlcnZlZCByZWdp b25zICovDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgY29udGludWU7DQo+ID4gICAgICAg ICAgICAgICAgIGNhc2UgRUZJX0NPTlZFTlRJT05BTF9NRU1PUlk6DQo+ID4gICAgICAgICAgICAg ICAgICAgICAgICAgLyoNCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgKiBSZXNlcnZlIHRo ZSBpbnRlcnNlY3Rpb24gYmV0d2VlbiB0aGlzIGVudHJ5IGFuZCB0aGUNCj4gPiAgICAgICAgICAg ICAgICAgICAgICAgICAgKiByZWdpb24uDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICov DQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgc3RhcnQgPSBtYXgoc3RhcnQsICh1NjQpZHJh bV9iYXNlKTsNCj4gPiAtICAgICAgICAgICAgICAgICAgICAgICBlbmQgPSBtaW4oZW5kLCAodTY0 KWRyYW1fYmFzZSArIE1BWF9VTkNPTVBfS0VSTkVMX1NJWkUpOw0KPiA+ICsgICAgICAgICAgICAg ICAgICAgICAgIGtlcm5lbF9iYXNlID0gcm91bmRfdXAoc3RhcnQsIFBNRF9TSVpFKTsNCj4gPiAr ICAgICAgICAgICAgICAgICAgICAgICBzcGFyZSA9IGtlcm5lbF9iYXNlIC0gc3RhcnQ7DQo+ID4g KyAgICAgICAgICAgICAgICAgICAgICAgZW5kID0gbWluKGVuZCwga2VybmVsX2Jhc2UgKw0KPiA+ ICsgTUFYX1VOQ09NUF9LRVJORUxfU0laRSk7DQo+ID4gKw0KPiA+ICsgICAgICAgICAgICAgICAg ICAgICAgIHN0YXR1cyA9IGVmaV9jYWxsX2Vhcmx5KGFsbG9jYXRlX3BhZ2VzLA0KPiA+ICsgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBFRklfQUxMT0NBVEVfQUREUkVTUywN Cj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRUZJX0xPQURFUl9E QVRBLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBNQVhfVU5D T01QX0tFUk5FTF9TSVpFIC8gRUZJX1BBR0VfU0laRSwNCj4gPiArICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgJmtlcm5lbF9iYXNlKTsNCj4gPiArICAgICAgICAgICAgICAg ICAgICAgICBpZiAoc3RhdHVzICE9IEVGSV9TVUNDRVNTKSB7DQo+ID4gKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICBwcl9lZmlfZXJyKHN5c190YWJsZV9hcmcsDQo+ID4gKyAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJyZXNlcnZlX2tlcm5lbF9iYXNlOiBhbGxv YyBmYWlsZWQuXG4iKTsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvdG8g b3V0Ow0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIH0NCj4gPiArICAgICAgICAgICAgICAg ICAgICAgICAqcmVzZXJ2ZV9hZGRyID0ga2VybmVsX2Jhc2U7DQo+ID4NCj4gPiArICAgICAgICAg ICAgICAgICAgICAgICBpZiAoIXNwYXJlKQ0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgYnJlYWs7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgLyoNCj4gPiArICAgICAg ICAgICAgICAgICAgICAgICAgKiBJZiB0aGVyZSdzIGEgZ2FwIGJldHdlZW4gc3RhcnQgYW5kIGtl cm5lbF9iYXNlLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAqIGl0IG5lZWRzIGJlIHJl c2VydmVkIHNvIHRoYXQgdGhlIG1lbWJsb2NrX2xpbWl0DQo+ID4gKyAgICAgICAgICAgICAgICAg ICAgICAgICogd2lsbCBub3QgZmFsbCBvbiBhIHZlcnkgbG93IGFkZHJlc3Mgd2hlbiBydW5uaW5n DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICogYWRqdXN0X2xvd21lbV9ib3VuZHMoKSwg d2NoaWNoIGNvdWxkIGV2ZW50dWFsbHkNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgKiBj YXVzZSBDTUEgcmVzZXJ2YXRpb24gaXNzdWUuDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAg ICovDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgc3RhdHVzID0gZWZpX2NhbGxfZWFybHko YWxsb2NhdGVfcGFnZXMsDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgRUZJX0FMTE9DQVRFX0FERFJFU1MsDQo+ID4gLSAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRUZJX0xPQURFUl9EQVRBLA0KPiA+IC0gICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChlbmQgLSBzdGFydCkg LyBFRklfUEFHRV9TSVpFLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIEVGSV9SRVNFUlZFRF9UWVBFLA0KPiA+ICsgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNwYXJlIC8gRUZJX1BBR0VfU0laRSwNCj4gPiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAmc3RhcnQpOw0K PiA+ICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChzdGF0dXMgIT0gRUZJX1NVQ0NFU1MpIHsN Cj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByX2VmaV9lcnIoc3lzX3RhYmxl X2FyZywNCj4gPiAtICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInJlc2Vy dmVfa2VybmVsX2Jhc2UoKTogYWxsb2MgZmFpbGVkLlxuIik7DQo+ID4gKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICJyZXNlcnZlIHNwYXJlLXJlZ2lvbg0KPiA+ICsgZmFp bGVkXG4iKTsNCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvdG8gb3V0Ow0K PiA+ICAgICAgICAgICAgICAgICAgICAgICAgIH0NCj4gPiAtICAgICAgICAgICAgICAgICAgICAg ICBicmVhazsNCj4gPg0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOw0KPiA+ICAg ICAgICAgICAgICAgICBjYXNlIEVGSV9MT0FERVJfQ09ERToNCj4gPiAgICAgICAgICAgICAgICAg Y2FzZSBFRklfTE9BREVSX0RBVEE6DQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgLyoNCj4g PiBAQCAtMjIwLDcgKzI0NSw3IEBAIGVmaV9zdGF0dXNfdCBoYW5kbGVfa2VybmVsX2ltYWdlKGVm aV9zeXN0ZW1fdGFibGVfdA0KPiAqc3lzX3RhYmxlLA0KPiA+ICAgICAgICAgKmltYWdlX3NpemUg PSBpbWFnZS0+aW1hZ2Vfc2l6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