From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=jian.j.wang@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 64F0E2117FD46 for ; Wed, 24 Oct 2018 21:23:27 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2018 21:23:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,422,1534834800"; d="scan'208";a="102469903" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 24 Oct 2018 21:23:27 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 24 Oct 2018 21:23:26 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 24 Oct 2018 21:23:26 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.161]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.214]) with mapi id 14.03.0415.000; Thu, 25 Oct 2018 12:23:24 +0800 From: "Wang, Jian J" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Kinney, Michael D" , "Ni, Ruiyu" , "Yao, Jiewen" , Laszlo Ersek Thread-Topic: [edk2] [PATCH v3 2/6] MdeModulePkg: introduce UEFI freed-memory guard bit in HeapGuard PCD Thread-Index: AQHUa1o/koBZcienBkap6w+0YFZY7qUuwXeAgACcgUA= Date: Thu, 25 Oct 2018 04:23:24 +0000 Message-ID: References: <20181024052620.4088-1-jian.j.wang@intel.com> <20181024052620.4088-3-jian.j.wang@intel.com> <860d3863-7a4b-3a46-a01d-ffeac374c583@intel.com> In-Reply-To: <860d3863-7a4b-3a46-a01d-ffeac374c583@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjc1ZDAwMWItM2U3YS00MTVmLTg3NjctYTI0MjAwNmM3OTliIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSHFMNEU1Szg0dEZvb0VGUXJ1YXlwR1NKbUdtNkluaXAyc0hVQ0JVeWhqb2hQWitIc3pWVVl6bThtUVhyTDBMRCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH v3 2/6] MdeModulePkg: introduce UEFI freed-memory guard bit in HeapGuard PCD X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2018 04:23:28 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 U3RhciwNCg0KUmVnYXJkcywNCkppYW4NCg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0t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N0aW9uIG9mIEd1YXJkIFBhZ2UgZm9yIFBvb2wgR3VhcmQuDQo+ID4gICAgICMg ICAgICAgICAgMCAtIFRoZSByZXR1cm5lZCBwb29sIGlzIG5lYXIgdGhlIHRhaWwgZ3VhcmQgcGFn ZS48QlI+DQo+ID4gZGlmZiAtLWdpdCBhL01kZU1vZHVsZVBrZy9NZGVNb2R1bGVQa2cudW5pDQo+ IGIvTWRlTW9kdWxlUGtnL01kZU1vZHVsZVBrZy51bmkNCj4gPiBpbmRleCA5ZDJlNDczZmE5Li5l NzJiODkzNTA5IDEwMDY0NA0KPiA+IC0tLSBhL01kZU1vZHVsZVBrZy9NZGVNb2R1bGVQa2cudW5p DQo+ID4gKysrIGIvTWRlTW9kdWxlUGtnL01kZU1vZHVsZVBrZy51bmkNCj4gPiBAQCAtMTIyNywx MSArMTIyNywxMyBAQA0KPiA+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAi Tm90ZSB0aGF0IGR1ZSB0byB0aGUgbGltaXQNCj4gb2YgcG9vbCBtZW1vcnkgaW1wbGVtZW50YXRp b24gYW5kIHRoZSBhbGlnbm1lbnRcbiINCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgInJlcXVpcmVtZW50IG9mIFVFRkkgc3BlYywNCj4gQklUNyBpcyBhIHRyeS1iZXN0 IHNldHRpbmcgd2hpY2ggY2Fubm90IGd1YXJhbnRlZVxuIg0KPiA+ICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAidGhhdCB0aGUgcmV0dXJuZWQgcG9vbCBpcw0KPiBleGFjdGx5 IGFkamFjZW50IHRvIGhlYWQgZ3VhcmQgcGFnZSBvciB0YWlsIGd1YXJkXG4iDQo+ID4gLSAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInBhZ2UuXG4iDQo+ID4gKyAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgInBhZ2UuXG5cbiINCj4gPiArICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAiTm90ZSB0aGF0IFVFRkkgZnJlZWQtDQo+IG1lbW9yeSBndWFy ZCBhbmQgcG9vbC9wYWdlIGd1YXJkIGNhbm5vdCBiZSBlbmFibGVkIGF0IHRoZSBzYW1lIHRpbWUu XG5cbiINCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIiAgIEJJVDAg LSBFbmFibGUgVUVGSSBwYWdlDQo+IGd1YXJkLjxCUj5cbiINCj4gPiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIiAgIEJJVDEgLSBFbmFibGUgVUVGSSBwb29sDQo+IGd1YXJk LjxCUj5cbiINCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIiAgIEJJ VDIgLSBFbmFibGUgU01NIHBhZ2UNCj4gZ3VhcmQuPEJSPlxuIg0KPiA+ICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAiICAgQklUMyAtIEVuYWJsZSBTTU0gcG9vbA0KPiBndWFy ZC48QlI+XG4iDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIiAgIEJJ VDQgLSBFbmFibGUgVUVGSQ0KPiBmcmVlZC1tZW1vcnkgZ3VhcmQgKFVzZS1BZnRlci1GcmVlIG1l bW9yeSBkZXRlY3Rpb24pLjxCUj5cbiINCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIiAgIEJJVDcgLSBUaGUgZGlyZWN0aW9uIG9mDQo+IEd1YXJkIFBhZ2UgZm9yIFBv b2wgR3VhcmQuXG4iDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICIg ICAgICAgICAgMCAtIFRoZSByZXR1cm5lZA0KPiBwb29sIGlzIG5lYXIgdGhlIHRhaWwgZ3VhcmQg cGFnZS48QlI+XG4iDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICIg ICAgICAgICAgMSAtIFRoZSByZXR1cm5lZA0KPiBwb29sIGlzIG5lYXIgdGhlIGhlYWQgZ3VhcmQg cGFnZS48QlI+Ig0KPiA+DQoNCg==