From patchwork Mon Feb 27 14:38:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 94549 Delivered-To: patch@linaro.org Received: by 10.140.20.113 with SMTP id 104csp889665qgi; Mon, 27 Feb 2017 06:38:43 -0800 (PST) X-Received: by 10.99.117.3 with SMTP id q3mr9073101pgc.222.1488206323117; Mon, 27 Feb 2017 06:38:43 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id a4si15258769pgn.328.2017.02.27.06.38.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Feb 2017 06:38:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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) 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) 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) 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 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(+) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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 + # + # Enable NX memory protection for all non-code regions, including OEM and OS + # reserved ones. + # + gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5 + [Components.common] # # Networking stack