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=star.zeng@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 98D642270D33E for ; Wed, 11 Apr 2018 22:54:48 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Apr 2018 22:54:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,440,1517904000"; d="scan'208";a="33058787" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga008.jf.intel.com with ESMTP; 11 Apr 2018 22:54:47 -0700 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 11 Apr 2018 22:54:47 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 11 Apr 2018 22:54:47 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.184]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.151]) with mapi id 14.03.0319.002; Thu, 12 Apr 2018 13:54:45 +0800 From: "Zeng, Star" To: "Wang, Jian J" , "edk2-devel@lists.01.org" CC: "Zeng, Star" Thread-Topic: [edk2] [PATCH 0/2] add sanity check for SetMemoryAttributes Thread-Index: AQHT0XCKynR0rlNwbkybwxJwMpPpxKP8oogg Date: Thu, 12 Apr 2018 05:54:44 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103BAAC319@shsmsx102.ccr.corp.intel.com> References: <20180411083846.7300-1-jian.j.wang@intel.com> In-Reply-To: <20180411083846.7300-1-jian.j.wang@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 0/2] add sanity check for SetMemoryAttributes X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2018 05:54:48 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Star Zeng -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Jian= J Wang Sent: Wednesday, April 11, 2018 4:39 PM To: edk2-devel@lists.01.org Subject: [edk2] [PATCH 0/2] add sanity check for SetMemoryAttributes Heap Guard feature needs enough memory and paging to work. Otherwise callin= g SetMemoryAttributes to change page attribute will fail. This patch add ne= cessary check of result of calling SetMemoryAttributes. This can help users to debug their problem in enabling this feature. Jian J Wang (2): MdeModulePkg/DxeCore: add sanity check for SetMemoryAttributes MdeModulePkg/SmmCore: add sanity check for SetMemoryAttributes MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 9 +++++++-- MdeModulePkg/Core/PiSmmCore/HeapGuard.c | 30 ++++++++++++++++++-----------= - 2 files changed, 25 insertions(+), 14 deletions(-) -- 2.16.2.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel