From 96cf70951f53f16853fdd42129b73940e71bab2d Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Sat, 8 Feb 2025 11:25:19 +0100 Subject: MdePkg/DynamicStackCookieEntryPointLib: Drop execute-in-place versions SEC, PEI_CORE and PEIM type modules generally execute in place from memory that is not writable. This means that it is not generally possible to use an entrypoint implementation that stores a dynamically generated stack cookie into a global variable. For PEIMs in particular, there may be other options, such as a DEPEX on the permanent memory PPI, but the current dynamic implementations of the stack checking library entrypoints for PEI_CORE and PEIM modules must not be used as-is. So remove them, and update the readme accordingly. Signed-off-by: Ard Biesheuvel --- .../PeimEntryPoint.inf | 43 ---------------------- 1 file changed, 43 deletions(-) delete mode 100644 MdePkg/Library/DynamicStackCookieEntryPointLib/PeimEntryPoint.inf (limited to 'MdePkg/Library/DynamicStackCookieEntryPointLib/PeimEntryPoint.inf') diff --git a/MdePkg/Library/DynamicStackCookieEntryPointLib/PeimEntryPoint.inf b/MdePkg/Library/DynamicStackCookieEntryPointLib/PeimEntryPoint.inf deleted file mode 100644 index b6b8f0a94f..0000000000 --- a/MdePkg/Library/DynamicStackCookieEntryPointLib/PeimEntryPoint.inf +++ /dev/null @@ -1,43 +0,0 @@ -## @file -# Module entry point library for PEIM that dynamically updates the stack cookie. -# -# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
-# -# SPDX-License-Identifier: BSD-2-Clause-Patent -# -# -## - -[Defines] - INF_VERSION = 0x00010005 - BASE_NAME = PeimEntryPointDynamicInit - MODULE_UNI_FILE = Peim/PeimEntryPoint.uni - FILE_GUID = 0E53AFCB-7FDD-461E-B8CE-6DA9F3F9014C - MODULE_TYPE = PEIM - VERSION_STRING = 1.0 - LIBRARY_CLASS = PeimEntryPoint|PEIM - -# -# VALID_ARCHITECTURES = IA32 X64 AARCH64 -# - -[Sources] - Peim/PeimEntryPoint.c - -[Sources.IA32] - IA32/DynamicCookieGcc.nasm | GCC - IA32/DynamicCookieMsvc.nasm | MSFT - -[Sources.X64] - X64/DynamicCookieGcc.nasm | GCC - X64/DynamicCookieMsvc.nasm | MSFT - -[Sources.AARCH64] - AArch64/DynamicCookieGcc.S | GCC - -[Packages] - MdePkg/MdePkg.dec - -[LibraryClasses] - DebugLib - StackCheckLib -- cgit