From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=jian.j.wang@intel.com; receiver=edk2-devel-bounces@lists.01.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 E007B2117A2A3; Thu, 18 Oct 2018 18:56:48 -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 fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Oct 2018 18:56:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,398,1534834800"; d="scan'208";a="100724262" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga001.jf.intel.com with ESMTP; 18 Oct 2018 18:56:38 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 18 Oct 2018 18:56:38 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 18 Oct 2018 18:56:37 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.111]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.183]) with mapi id 14.03.0319.002; Fri, 19 Oct 2018 09:56:28 +0800 From: "Wang, Jian J" To: edk2-devel , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [PATCH 0/3] Add use-after-free memory detection Thread-Index: AQHUZ04owDiWVuFy30ybR1btNgs6G6UlzhXg Date: Fri, 19 Oct 2018 01:56:28 +0000 Message-ID: References: <20181019015013.7488-1-jian.j.wang@intel.com> In-Reply-To: <20181019015013.7488-1-jian.j.wang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmZlMWRkMWQtZjAzYy00NWY2LWFjOGItZWY5Zjc0YWZiNzU5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoid1FqOFhrMjVYOE9xaThRa1JKeU9Eb2lFTlwvbDZJN1BCWnV1cEZ0b29vMWl6RXZFc3NHcURhY0VcL2NrT2FZZjQyIn0= 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 0/3] Add use-after-free memory detection 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: Fri, 19 Oct 2018 01:56:49 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1240 Tests: a. Access freed pages in shell to see if it triggers #PF b. Use debugger to verify page table attributes matching freed pages c. Exhaust memory space to see if the BIOS still works Regards, Jian > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] > Sent: Friday, October 19, 2018 9:50 AM > To: edk2-devel@lists.01.org > Subject: [edk2] [PATCH 0/3] Add use-after-free memory detection >=20 > UAF (Use-After-Free) memory detection is new feature introduced to > detect illegal access to memory which has been freed. >=20 > Jian J Wang (3): > MdeModulePkg/MdeModulePkg.dec: add new PCD for UAF detection feature > UefiCpuPkg/CpuDxe: fix an infinite loop issue > MdeModulePkg/Core: add use-after-free memory detection >=20 > MdeModulePkg/Core/Dxe/DxeMain.h | 1 + > MdeModulePkg/Core/Dxe/DxeMain.inf | 1 + > MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 8 + > MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 393 > ++++++++++++++++++++++++++- > MdeModulePkg/Core/Dxe/Mem/HeapGuard.h | 66 +++++ > MdeModulePkg/Core/Dxe/Mem/Page.c | 39 ++- > MdeModulePkg/Core/Dxe/Mem/Pool.c | 21 +- > MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c | 16 +- > MdeModulePkg/MdeModulePkg.dec | 6 + > UefiCpuPkg/CpuDxe/CpuPageTable.c | 12 + > 10 files changed, 537 insertions(+), 26 deletions(-) >=20 > -- > 2.16.2.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel