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 A08C3D80047 for ; Sat, 17 Feb 2024 01:27:32 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=YJcmutdGISFqCwI3ux8O+4GrOSnHBI87aGTV13nwG4c=; 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=20140610; t=1708133251; v=1; b=G50yl7XPhNUpBpWVfWDUq76DjP2wJPNJruLbGwBHDEXOunpL+YjNvmCDHgehyaJ7r09wo16I YDo+NMaXqmjvYyzfwJQ+aEo4yJbFKtmlcjdKXxKNYHX0KsthYD4WjTbrJ7dyLfEZhqPUVIb9VHV xQ6HoVbX6a4o+ownJ2WiS5FU= X-Received: by 127.0.0.2 with SMTP id Rj2hYY7687511x97qsEs1dIa; Fri, 16 Feb 2024 17:27:31 -0800 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web10.1852.1708133250372562947 for ; Fri, 16 Feb 2024 17:27:30 -0800 X-Received: from OSD-Desktop.redmond.corp.microsoft.com (unknown [131.107.160.171]) by linux.microsoft.com (Postfix) with ESMTPSA id CEEE3207FD3C; Fri, 16 Feb 2024 17:27:29 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com CEEE3207FD3C From: "Oliver Smith-Denny" To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Sami Mujawar , Liming Gao Subject: [edk2-devel][PATCH v2 0/3] Fix Runtime Granularity Issues Date: Fri, 16 Feb 2024 17:27:22 -0800 Message-Id: <20240217012725.31763-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: kG2DWaGa0EJK0cAlg2yHcP7Qx7686176AA= 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=20140610 header.b=G50yl7XP; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linux.microsoft.com (policy=none) This patch series is the second 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 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 (#115560): https://edk2.groups.io/g/devel/message/115560 Mute This Topic: https://groups.io/mt/104405577/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-