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.100; helo=mga07.intel.com; envelope-from=jian.j.wang@intel.com; receiver=edk2-devel@lists.01.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 F1F4E221ED766 for ; Wed, 20 Dec 2017 21:38:37 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Dec 2017 21:43:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,434,1508828400"; d="scan'208";a="20043905" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga002.jf.intel.com with ESMTP; 20 Dec 2017 21:43:25 -0800 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 20 Dec 2017 21:43:25 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 20 Dec 2017 21:43:25 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Thu, 21 Dec 2017 13:43:23 +0800 From: "Wang, Jian J" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Dong, Eric" Thread-Topic: [PATCH] MdeModulePkg/MdeModulePkg.dec: Clarify usage of PcdHeapGuardPropertyMask Thread-Index: AQHTehq1s5BYwlFCMEKWzoI2OTRDKaNNSNHw Date: Thu, 21 Dec 2017 05:43:23 +0000 Message-ID: References: <20171221050802.15648-1-jian.j.wang@intel.com> <0C09AFA07DD0434D9E2A0C6AEB0483103B9C5C26@shsmsx102.ccr.corp.intel.com> In-Reply-To: <0C09AFA07DD0434D9E2A0C6AEB0483103B9C5C26@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDkwZjhiNjQtN2NkZi00ZjI1LTk0NGYtZDAxZDIyY2Q5OGE2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJVQ0hxemF4dUZ1Q1VoQTZhSFdFQ2J4KzZJdUI4NDN6MU5xTU1ZWmVHTWZseW5oSGZVSTk0WHZRbEdwQTkrUXlCIn0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdeModulePkg/MdeModulePkg.dec: Clarify usage of PcdHeapGuardPropertyMask X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2017 05:38:38 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks. .uni file will be updated accordingly. Regards, Jian > -----Original Message----- > From: Zeng, Star > Sent: Thursday, December 21, 2017 1:15 PM > To: Wang, Jian J ; edk2-devel@lists.01.org > Cc: Dong, Eric ; Zeng, Star > Subject: RE: [PATCH] MdeModulePkg/MdeModulePkg.dec: Clarify usage of > PcdHeapGuardPropertyMask >=20 > Please also the *.uni file accordingly, with that, Reviewed-by: Star Zeng > >=20 >=20 > Thanks, > Star > -----Original Message----- > From: Wang, Jian J > Sent: Thursday, December 21, 2017 1:08 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Dong, Eric > Subject: [PATCH] MdeModulePkg/MdeModulePkg.dec: Clarify usage of > PcdHeapGuardPropertyMask >=20 > Cc: Star Zeng > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Jian J Wang > --- > MdeModulePkg/MdeModulePkg.dec | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) >=20 > diff --git a/MdeModulePkg/MdeModulePkg.dec > b/MdeModulePkg/MdeModulePkg.dec > index 8efad57766..d134ec798a 100644 > --- a/MdeModulePkg/MdeModulePkg.dec > +++ b/MdeModulePkg/MdeModulePkg.dec > @@ -939,13 +939,17 @@ >=20 > gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPoolType|0x0|UINT64|0x30 > 001053 >=20 > ## This mask is to control Heap Guard behavior. > + # Note that due to the limit in pool memory implementation and the > alignment > + # requirement of UEFI spec, BIT7 is a try-best setting which cannot gu= arantee > + # that the returned pool is exactly adjacent to head guard page or tai= l guard > + # page. > # BIT0 - Enable UEFI page guard.
> # BIT1 - Enable UEFI pool guard.
> # BIT2 - Enable SMM page guard.
> # BIT3 - Enable SMM pool guard.
> # BIT7 - The direction of Guard Page for Pool Guard. > - # 0 - The returned pool is adjacent to the bottom guard page.=
> - # 1 - The returned pool is adjacent to the top guard page. > + # 0 - The returned pool is near the tail guard page.
> + # 1 - The returned pool is near the head guard page.
> # @Prompt The Heap Guard feature mask >=20 > gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPropertyMask|0x0|UINT8|0 > x30001054 >=20 > -- > 2.15.1.windows.2