From nobody Sat Nov 2 16:38:06 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1488206324026535.5207281178469; Mon, 27 Feb 2017 06:38:44 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 0C8FB82125; Mon, 27 Feb 2017 06:38:42 -0800 (PST) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7D41981F56 for ; Mon, 27 Feb 2017 06:38:40 -0800 (PST) Received: by mail-wm0-x231.google.com with SMTP id v186so62856130wmd.0 for ; Mon, 27 Feb 2017 06:38:40 -0800 (PST) Received: from localhost.localdomain ([105.149.201.216]) by smtp.gmail.com with ESMTPSA id z134sm14475167wmc.20.2017.02.27.06.38.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Feb 2017 06:38:38 -0800 (PST) X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nb8SGWLAE5lMcobcIuLS9BJVgytWpLPoAS1SPVfrMd4=; b=SN0VJkm/RN9qoT8krhFFmUSM4bUV2Tzhf4vXnEyif9KCjuOG2DxeX6lfWA6IFbiS2J DOzeDenFlBsEhbCerGH773jvbRWeP0MGhZm0LCjzRUbN6FLJ52xLpXpZp6/c+Agjpjgi Pk7zZNf4O7TujzOJYYWQxXob0DxGBGRx+onW8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nb8SGWLAE5lMcobcIuLS9BJVgytWpLPoAS1SPVfrMd4=; b=ZURBTRzxJrsasY2vJqXbM+2f0G7DuSNhmh3FaBiLg86tBpkhB2cJ2y0P/EXcCRcCLm 3XR4epobiiHygXJlQpv/sacXMVAY4qvDw0OVEcTzDHSiNHWfUTmi6pzUndt6Hczhvu36 AEipjloPSjSKgLKu5OP/k37b7YwQH6DaItIbVmg6BJv3CAOO3hODqgiZ2l8t/aQVUIqN yp+Gr6Jl0ePuzDBn/HsyiV9o4Db/fSMCVu2riQo2cJHXquo5Pk6jfY0gtZI3my7UUmWt XyIwASdk7pc8koC9zQ6sZgPCbAH/+zEllly/NlhTslHJ24so34TTLYyYzAu81eJrUqHx 8/VQ== X-Gm-Message-State: AMke39maqfoP7kNvhGftXhCrVYra3yWysEQsGC/3wm24VY3dYwsqWtF5k4y73E3oxy4TVIby X-Received: by 10.28.113.200 with SMTP id d69mr9632479wmi.10.1488206319164; Mon, 27 Feb 2017 06:38:39 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, afish@apple.com, leif.lindholm@linaro.org, michael.d.kinney@intel.com, liming.gao@intel.com, jiewen.yao@intel.com Date: Mon, 27 Feb 2017 14:38:11 +0000 Message-Id: <1488206291-25768-8-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488206291-25768-1-git-send-email-ard.biesheuvel@linaro.org> References: <1488206291-25768-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH v4 7/7] ArmVirtPkg/ArmVirt.dsc.inc: enable NX memory protection for all platforms X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: feng.tian@intel.com, lersek@redhat.com, star.zeng@intel.com, Ard Biesheuvel MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" This sets the recently introduced PCD PcdDxeNxMemoryProtectionPolicy to a value that protects all memory regions except code regions against inadvertent execution. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/ArmVirt.dsc.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc index 151f413f1b2b..c9f20d570049 100644 --- a/ArmVirtPkg/ArmVirt.dsc.inc +++ b/ArmVirtPkg/ArmVirt.dsc.inc @@ -383,6 +383,12 @@ [PcdsFixedAtBuild.AARCH64] # gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3 =20 + # + # Enable NX memory protection for all non-code regions, including OEM an= d OS + # reserved ones. + # + gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC0000000= 00007FD5 + [Components.common] # # Networking stack --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel