From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mx.groups.io with SMTP id smtpd.web10.1860.1689119592206278394 for ; Tue, 11 Jul 2023 16:53:12 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@taylorbeebe.com header.s=google header.b=T3cWf8br; spf=pass (domain: taylorbeebe.com, ip: 209.85.210.171, mailfrom: t@taylorbeebe.com) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-6726d5d92afso99114b3a.1 for ; Tue, 11 Jul 2023 16:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=taylorbeebe.com; s=google; t=1689119591; x=1691711591; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ibf7lfRrswQS+6zOA2c6WFCgz1iFYtXlCyDcJAW4lss=; b=T3cWf8brgtoNZ5fJQ6Dya/V9l0TsHOJZUS9oNfaGvYQPveVZ/jbaFyL4hkB7z1mm/V xUvMsrULX/5Q/oraFTkHVrkLKcTY2ZWPJoJ0flDCxWFCNleFcr9+MgLq+QhniOjrwNXO C2DSTLePtJExoKr8zTWfF8rV1AS8mVzODRG953lJvtaupCc++yExhc3gcK6KXQ7c/d2n MoOjjtn1V1JpWA5971Eya1uEikVF9aREY+KjkuU69DLZoamPXfhAMusffGj1i31VLQ3P 9bNqkcLKfJmBpUiYn5HT3AK8BJcI7DYzFhIZ+UOTMpApvbsOQwxtNMyz+/t8oT9JFbo/ c+3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689119591; x=1691711591; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ibf7lfRrswQS+6zOA2c6WFCgz1iFYtXlCyDcJAW4lss=; b=HaKGvMWj7Aq19bOKB7q0ZYSTngUlukT2pcr5NMf5VJzUncmYdDh4vnD5MCCiaJF3FT Xdd0xZwvEeownwjXq6fiSIhvymoBsPFGlS1QjWjCoUxgIDw2zuoIlhX3s+IDa8oKZFio gAMMnLJbNjk33Jv9L/cpe9ZOwdz2gDQyw1bXBQRIOozxYmnLx7lwA1S0LISJ8iUeI8c+ tD9SYM77lJdR/r/b5RQEjQEH42GBG4JMBbc51tlBZy3KDcaFGhh8jzGGSmfX1QXSyWZr ZdhyHf+jgtJxwTwt7ll5nswFijCE8RZi2kBt/5FdGdIt2T8+FBT1L2tFzI046SOxOqE/ lZsA== X-Gm-Message-State: ABy/qLZvtD/Jp97oalAatblAHlQ8+NQYPc/rDIUVRVRq7CQjVxu06ScR 9Voq+OOinRPJ0ety8FScOGUaFmsGRpxzNGpyRbKFcg== X-Google-Smtp-Source: APBJJlFfWPlqajWTTnWUjBdo3O6rWEP20olPlGD31oEbjsK0YurYaSrHBR3Y946CdbU+aHHg6WCVIw== X-Received: by 2002:a05:6a20:3c8d:b0:12c:8aa2:8b59 with SMTP id b13-20020a056a203c8d00b0012c8aa28b59mr302598pzj.28.1689119591615; Tue, 11 Jul 2023 16:53:11 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([50.46.230.135]) by smtp.gmail.com with ESMTPSA id a13-20020a62e20d000000b00660d80087a8sm2232677pfi.187.2023.07.11.16.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 16:53:11 -0700 (PDT) From: "Taylor Beebe" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Gerd Hoffmann Subject: [PATCH 14/14] MdeModulePkg: Delete Memory Protection PCDs Date: Tue, 11 Jul 2023 16:52:50 -0700 Message-ID: <1aaf5939a7b5cf6dabbacfd51b4caa08032d5d11.1689101263.git.t@taylorbeebe.com> X-Mailer: git-send-email 2.41.0.windows.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Taylor Beebe Now that references in the rest of the codebase have been updated to reference the memory protection HOB, delete the memory protection PCDs. Signed-off-by: Taylor Beebe Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Sami Mujawar Cc: Gerd Hoffmann --- ArmVirtPkg/ArmVirt.dsc.inc | 15 --------------- ArmVirtPkg/ArmVirtCloudHv.dsc | 5 ----- ArmVirtPkg/ArmVirtQemu.dsc | 5 ----- 3 files changed, 25 deletions(-) diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc index 3174b19e51..e1eb189077 100644 --- a/ArmVirtPkg/ArmVirt.dsc.inc +++ b/ArmVirtPkg/ArmVirt.dsc.inc @@ -363,21 +363,6 @@ gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0 - # - # Enable strict image permissions for all images. (This applies - # only to images that were built with >= 4 KB section alignment.) - # - gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3 - - # - # Enable NX memory protection for all non-code regions, including OEM and OS - # reserved ones, with the exception of LoaderData regions, of which OS loaders - # (i.e., GRUB) may assume that its contents are executable. - # - gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5 - - gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|TRUE - [Components.common] # # Ramdisk support diff --git a/ArmVirtPkg/ArmVirtCloudHv.dsc b/ArmVirtPkg/ArmVirtCloudHv.dsc index c975e139a2..c4c3e0da44 100644 --- a/ArmVirtPkg/ArmVirtCloudHv.dsc +++ b/ArmVirtPkg/ArmVirtCloudHv.dsc @@ -140,11 +140,6 @@ # gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16 - # - # Enable the non-executable DXE stack. (This gets set up by DxeIpl) - # - gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE - !if $(SECURE_BOOT_ENABLE) == TRUE # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04 diff --git a/ArmVirtPkg/ArmVirtQemu.dsc b/ArmVirtPkg/ArmVirtQemu.dsc index 1e0225951a..214e08b789 100644 --- a/ArmVirtPkg/ArmVirtQemu.dsc +++ b/ArmVirtPkg/ArmVirtQemu.dsc @@ -212,11 +212,6 @@ # gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16 - # - # Enable the non-executable DXE stack. (This gets set up by DxeIpl) - # - gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE - !if $(SECURE_BOOT_ENABLE) == TRUE # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04 -- 2.41.0.windows.2