From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 4C42F74003B for ; Sat, 9 Mar 2024 19:06:05 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=rdlZlyZ6/GIjYl28HMAuOYHyOCaHI+mVw6nn2jhkGro=; c=relaxed/simple; d=groups.io; h=DKIM-Filter:From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20240206; t=1710011163; v=1; b=2Uyi5M9PNzDsZSVPO+J9LH9vf7Sm9XEIiifdgq+r5NCaoZE+Toy7yCGrEiTJo1Ee3oZpHJrc FA+T14SHhIOmS+HYLDiKPiug4LrF3AZqBOqUhp3qYfGN1U26GiLrNJttXIfDTq5wshYD8brNuG9 UaCVbsUAJBZJBultRBJbGhZtpLNZ9N6dJZgSwWJfO3A31QCvlenRZkMLAlFT3Dx96+w8CwJXmXU lEmcIdCFge3+e2QTwpWLC6FaHMX92lEfMAIamT83pvvzdhBV/uQt0wogzgGUsHHDcc5XBrGoznX 2ToeTPWUjbteRTrVrMdA46PFCArXrZqY8x5ryZg1F7djg== X-Received: by 127.0.0.2 with SMTP id RfKJYY7687511x9T5UE6MG9p; Sat, 09 Mar 2024 11:06:03 -0800 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web10.18867.1710011163295789151 for ; Sat, 09 Mar 2024 11:06:03 -0800 X-Received: from OSD-Desktop.redmond.corp.microsoft.com (unknown [131.107.160.171]) by linux.microsoft.com (Postfix) with ESMTPSA id BFE7520B74C0; Sat, 9 Mar 2024 11:06:02 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com BFE7520B74C0 From: "Oliver Smith-Denny" To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Sami Mujawar , Liming Gao Subject: [edk2-devel][PATCH v3 0/3] Fix Runtime Granularity Issues Date: Sat, 09 Mar 2024 11:06:03 -0800 Message-Id: <20240309190559.28677-1-osde@linux.microsoft.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,osde@linux.microsoft.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: MDIYFAC0cydiWHhc354BKE8ax7686176AA= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=2Uyi5M9P; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linux.microsoft.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io This patch series is the third version of MdeModulePkg: DxeCore: Don't Guard Large Runtime Granularity Allocations=E2= =80=8B. The subject line has been updated because this went from a one commit patch with no cover letter to a multi-commit patch. The commit messages cover the vast amount of detail here, but this patchset fixes three issues: - a UEFI spec violation for which memory types require runtime page allocation granularity alignment - An incompatibility of the heap guard system to guard these regions that require runtime page allocation granularities greater than the EFI_PAGE_SIZE. - A CodeQL error that fails CI when updating the Page.c code v3: - edit comments for readability v2: - Add commit to fix UEFI spec violation - Add commit to fix newly flagged CodeQL error - Update guard commit message, comments, and static assert to use the correct types Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Sami Mujawar Cc: Liming Gao Oliver Smith-Denny (3): MdeModulePkg: DxeCore: Fix CodeQL Error in FreePages MdeModulePkg: DxeCore: Correct Runtime Granularity Memory Type MdeModulePkg: DxeCore: Do Not Apply Guards to Unsupported Types MdeModulePkg/MdeModulePkg.dec | 10 +++++++++ MdeModulePkg/Core/Dxe/Mem/HeapGuard.h | 14 +++++++++++++ MdeModulePkg/Core/Dxe/Mem/Page.c | 22 +++++++++++++++++--- MdeModulePkg/Core/Dxe/Mem/Pool.c | 15 +++++++++++-- MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 4 ++-- MdeModulePkg/Core/Pei/Memory/MemoryServices.c | 2 +- 6 files changed, 59 insertions(+), 8 deletions(-) --=20 2.40.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116559): https://edk2.groups.io/g/devel/message/116559 Mute This Topic: https://groups.io/mt/104832605/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-