From patchwork Fri Jul 7 13:41:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9830383 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D9E2F60352 for ; Fri, 7 Jul 2017 13:44:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFADD26E3E for ; Fri, 7 Jul 2017 13:44:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C40132853B; Fri, 7 Jul 2017 13:44:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3F60526E3E for ; Fri, 7 Jul 2017 13:44:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTTWN-0004gp-LD; Fri, 07 Jul 2017 13:42:11 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTTWM-0004fp-Lz for xen-devel@lists.xen.org; Fri, 07 Jul 2017 13:42:10 +0000 Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id ED/D6-02181-1BF8F595; Fri, 07 Jul 2017 13:42:09 +0000 X-Brightmail-Tracker: H4sIAA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-15.tower-31.messagelabs.com!1499434927!100377334!1 X-Originating-IP: [104.47.33.55] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 33628 invoked from network); 7 Jul 2017 13:42:08 -0000 Received: from mail-bn3nam01on0055.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) (104.47.33.55) by server-15.tower-31.messagelabs.com with AES256-SHA256 encrypted SMTP; 7 Jul 2017 13:42:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Tdm8sJu4z3Rm3mCabNbWHIQHfatUOfY11Jez04zSN1A=; b=SKUUMB8lJV9Lg/k7o8ZMi9j1iGtkQPc07e85ngzopThqMKtJSObF0mqSut8soV/pYJqzyiY8bYUhXHZISxzKvmXv07A6E7JjooampggOmHFq7cJlOp7xfzB/yqnmeXy4ZQqrpHCWnqH6+VeWtWz2O6hm17JTkNbA63rta01SpcY= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by MWHPR12MB1150.namprd12.prod.outlook.com (10.169.204.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Fri, 7 Jul 2017 13:41:59 +0000 From: Tom Lendacky To: linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, xen-devel@lists.xen.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org Date: Fri, 07 Jul 2017 08:41:55 -0500 Message-ID: <20170707134155.29711.19302.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170707133804.29711.1616.stgit@tlendack-t1.amdoffice.net> References: <20170707133804.29711.1616.stgit@tlendack-t1.amdoffice.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR03CA0057.namprd03.prod.outlook.com (10.173.137.19) To MWHPR12MB1150.namprd12.prod.outlook.com (10.169.204.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cad4e0e6-f76f-4648-5d81-08d4c53df3ba X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHPR12MB1150; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1150; 3:pW+jhYdJMdIOLsknc98UgiTk2yrpPJIPkRW1kC225UQyhTQRaAFl51xiev6YWqpSnJhMGFYqPsKroQ9Gcav8ag+UDCvzqwTpaxwG1LqTBfunM+rHl/WkA3d8F6ZIabFudqNVdRGh2Jxp0YWIjPZOjSjxyQdMdVKEM5bRd4akgOba/JmdqwgBeMCw+dpwVUxc1PFkGsdxtIiaLTmYU/QVSuzRFvQhqnZ3wFBosmKrsgtFkf8FycR48OIJPhEt2+SLHLGkltHsaR+T51bYXG7e5vIfs8xEHkJ5+ML40U1ggoqaT2PypFIIA7E4wDG7/LCTBpnLRZ+DSythpzXJvghqqL/HnBb6pF23lv+zw2Q2Lqul2XqNiFm5ibjY8pA0kWlT9iTKdMeH5JE2P3/JGBumzYB229GVn9gjPBvNb4Ysg3trT/JBSKUiwL82EUvNZ54Uo6RGN9lvEupsmXs3fQOaokaBtNPmEAd1aDNBy4qTbDmvi6WKH0KgVUeVcDVxxCsZqBBGhs0P4fsdcpDrzXXP+CM1wiWzVi5TAqhbXwOIFVIYVeirupsxlOhUNokAEUSz32lJ9HwaWaayWgLFv9YSIGARmO2xGui2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uREgNcV7wklJj4EhheBAw37DitV/v7R0PQvsTfa1uzpWXux8i8Ak3C2OSmtnMQjOlAYJkQufBj5zYYON7DGxNxzzKqOxvL9TRLGjuT0uFqobmZUnRXBwthzSbQE8yJthppnJsEGwbnudjV2UnZhnykfbVWlFv0v3DWKIo95CMaJLWbtpdS9NqmqxY1ftun4RFIY/QGSar7DFsmQ16UK3bMn0KwUkiA3AS8XgGamZOgpUKCSvrW8yzOx7aPHPrN1OrFUkGa6PXtopZq4ikgRjNlK9WJbJCE/vOySozSxDELWdCWjXUY2T7WbUgcToxk9wG8U2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(2017060910064)(8121501046)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR12MB1150; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR12MB1150; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjEyTUIxMTUwOzQ6YkdHL3IrMWNYSTR2Z2F6K3UzQU5LRXRRa3Rj?= =?utf-8?B?dmRTKzVaWnpVcnNKN2k3aFRRdzRXZFdBSDZzT2t6Q096dXQ1MmJka25OLzVm?= =?utf-8?B?cWM5S2JvRXpPemZHc0RMVUViZG05Um94T21IY1FUemt5eCtuWE53QmFEeXZm?= =?utf-8?B?c1ZlZHhlRW9FTE1JYmFwdDRHNEEvTnhyblFjT3dIb25SUkxPQzZyUzBsQlhK?=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=?utf-8?B?N0RkWHNCLzc0a0Fmc2wzTmt0b2dJeFB1YURXemVZeEJmb2FlN1RvTm96N2RL?= =?utf-8?B?MEZtSGFIMEdwMWgxY1I3SG5tc043aXRaQ3orYkt4ZGhYcjBseERISDJ5MmIx?= =?utf-8?B?MlNPUGVSYU9sVmJoSFVLU01HS3czZU5wZlJSb2pOMkFzK3lVN3FTOGVpZWw3?= =?utf-8?B?QUI4VFdHVUxwRzllSUlVNUdrY3d6KzR0T3AyeTR3N0YvK3B6aS9RbjN3K0lT?= =?utf-8?B?d0xXaVg4NHRlWWFnQzVBaGFoTDdUR1JFS2FNNWtwYWhjOE1icmNqb01leTY2?= =?utf-8?B?MWVydCtQem9jbGJoaVNCZXNXTk55eU0xYzhjb01XbEU5UWxvdTRLVWNCSVB5?= =?utf-8?B?ekhJblUwa2N1b0xYOGdjcDhiV3AxYVcrS3haVUVuQUt6TmRjOENLYm93SUdR?= =?utf-8?B?Y1RMUWhqU1dtMElQb29RMUt1MHJUbGlJaElOK0Y4Z3dmZVMxVUVuTTZoaUt1?= =?utf-8?B?cmhUVWxyY3VtOVl5T3dEc3oxZVBYLzIralMzQjA1SjhYSmJNVlBKNG1aY1NC?= =?utf-8?B?K0NSclNxdEVzaGVyNklSd2w1ZmxXVUdUYVhFbHBaZ0tZYjdVblduL212bExB?= =?utf-8?Q?OMzExuyLxL81/VD2DePx0DVKTino6l/ewVUI=3D?= X-Forefront-PRVS: 0361212EA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39410400002)(39450400003)(39840400002)(39860400002)(25786009)(38730400002)(103116003)(6506006)(54356999)(50986999)(5660300001)(76176999)(7416002)(7406005)(4326008)(110136004)(9686003)(54906002)(55016002)(50466002)(53936002)(66066001)(47776003)(6116002)(3846002)(33646002)(6666003)(230700001)(1076002)(42186005)(2950100002)(72206003)(478600001)(189998001)(53416004)(83506001)(2906002)(8676002)(81166006)(86362001)(7736002)(23676002)(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3ntb1ohaIGdVOO0vLoD7/NiNfQFv7OQUrKzrL5AnulNjiJL/8T1xZ2ej+nH/oB9zk= X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1150; 20://VUc5wPjbK/vMfkbjye1OPQx89M/mZU5aG+/qYw/tfacGXMC6jENR3KrNo10vyx2H6xI+jVtIrAu62ZAOrH6hWuxT2Zi4KvLW7Ww8K10WRzuR5WhPPmX4YqqwGPXVPw/LXNd1lswAmQaSSOjYUi6DRj21hm6GD67lHyGS3LscEP+FPG9lHMXjYsdT5fe+lRMXqAsObCdzAX6KF9pKSKwSXqiB0xisztOIhL/ISV1qG+r+ar5/tVgPy2VNXD8UQa X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2017 13:41:59.7430 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1150 Cc: Brijesh Singh , Toshimitsu Kani , "Michael S. Tsirkin" , Matt Fleming , Alexander Potapenko , "H. Peter Anvin" , Boris Ostrovsky , Jonathan Corbet , Joerg Roedel , Radim =?utf-8?b?S3LEjW3DocWZ?= , Larry Woodman , Ingo Molnar , Andrey Ryabinin , Dave Young , Rik van Riel , Arnd Bergmann , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , Dmitry Vyukov , Juergen Gross , Paolo Bonzini Subject: [Xen-devel] [PATCH v9 21/38] x86/mm: Add support to access persistent memory in the clear X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Persistent memory is expected to persist across reboots. The encryption key used by SME will change across reboots which will result in corrupted persistent memory. Persistent memory is handed out by block devices through memory remapping functions, so be sure not to map this memory as encrypted. Reviewed-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/mm/ioremap.c | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c index ee33838..effa529 100644 --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c @@ -420,17 +420,46 @@ void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr) * Examine the physical address to determine if it is an area of memory * that should be mapped decrypted. If the memory is not part of the * kernel usable area it was accessed and created decrypted, so these - * areas should be mapped decrypted. + * areas should be mapped decrypted. And since the encryption key can + * change across reboots, persistent memory should also be mapped + * decrypted. */ static bool memremap_should_map_decrypted(resource_size_t phys_addr, unsigned long size) { + int is_pmem; + + /* + * Check if the address is part of a persistent memory region. + * This check covers areas added by E820, EFI and ACPI. + */ + is_pmem = region_intersects(phys_addr, size, IORESOURCE_MEM, + IORES_DESC_PERSISTENT_MEMORY); + if (is_pmem != REGION_DISJOINT) + return true; + + /* + * Check if the non-volatile attribute is set for an EFI + * reserved area. + */ + if (efi_enabled(EFI_BOOT)) { + switch (efi_mem_type(phys_addr)) { + case EFI_RESERVED_TYPE: + if (efi_mem_attributes(phys_addr) & EFI_MEMORY_NV) + return true; + break; + default: + break; + } + } + /* Check if the address is outside kernel usable area */ switch (e820__get_entry_type(phys_addr, phys_addr + size - 1)) { case E820_TYPE_RESERVED: case E820_TYPE_ACPI: case E820_TYPE_NVS: case E820_TYPE_UNUSABLE: + case E820_TYPE_PRAM: return true; default: break;