Received: by 10.223.176.46 with SMTP id f43csp1111668wra; Fri, 19 Jan 2018 07:05:23 -0800 (PST) X-Google-Smtp-Source: ACJfBouMh/35wREXSkEay7Xf1WgLXpLG+yTzmY76lnv8ZE286Qp2nm8FGvQSE5NzzxQrVqd/sG5A X-Received: by 10.98.194.8 with SMTP id l8mr31567903pfg.26.1516374323442; Fri, 19 Jan 2018 07:05:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516374323; cv=none; d=google.com; s=arc-20160816; b=iwBy79PX+4rfNAXGWQk0RYMD2OcxyhmkpHT4YQdvl57w8bO5zWz1t6BNr+7M2goXqd ouYDSGw0tkzr4tJR1p8Sj6IE1puI1Yh5ZLD7QGQOrWMp2lVOyPjVpG4PIspveWEHKRpD INup/Iw17mLJT62l4iXmt8fvlZe8aXsSqbL112TFtO1ATdg1Mz5F4tXLtgIxHjENIJlA g/PKV+UkQv5e9lDRGdXIV8VYP51VF8B1oHio5q5pXjRtYdmuy++greMwipPSgW3Kv/cl 2MRLI29Kihexq0q68EXnjylh0f5VnAslBPLoQOk/ILPx2LffDz/cjB26mM/N/yx1xDiY qXFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=KjWU6mAxrjkntFMSYmlQbh+VtReF4zWR4lJgPY0BpYk=; b=S2oE7d3w7k3YnEXsU/lG8U2xa9M9wSBI2kyaBnHQSO/gPf/UR1rTt0L1i28ZgSvSpF 6qAOvSyqiduQmsrxZSE3puldj4raId8BkVmtlk2bTKVGKo+plUC4xSzMDtlU4p5k/MkP 2l7nscw92/XykrLZhdgk4iEOwtulyBN1DPPe2LNaye14p1u7cEu7N5TD8E6dC+nJrhNu pBCt36HzCp84jg2GSYjMxLe1pHlovMqd3YQGvLwo9vYXczbDlAqh5AMhtaz8XOvpt9cy qWx5v3zcvHRQcHCqM4OpIgXmPPM3J+KMav5KSSppPbPMpJfXDA0k7J/5EqFoT/rhlnV7 BOdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=v7qQbJqH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z22si9149000pfh.186.2018.01.19.07.05.09; Fri, 19 Jan 2018 07:05:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=v7qQbJqH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755893AbeASPER (ORCPT + 99 others); Fri, 19 Jan 2018 10:04:17 -0500 Received: from mail-by2nam01on0056.outbound.protection.outlook.com ([104.47.34.56]:59680 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754542AbeASPEI (ORCPT ); Fri, 19 Jan 2018 10:04:08 -0500 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=KjWU6mAxrjkntFMSYmlQbh+VtReF4zWR4lJgPY0BpYk=; b=v7qQbJqHoBQzFFVsGNIuTavqIvZ8jwPPjHUQaPeFTMUsHF1YxDbYwgyg74PkatJ25YRRwnJUW47Ztl00OypFkgtTD4z+2rxehGlTNgyXDKb8wly1UgRZH1Ka5Z9iGLwEUjooN+9K9kfVDz4xBVkKMqJ5xTqU3/2g2azmmnkW5vU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Received: from [10.236.65.116] (165.204.78.1) by MWHPR12MB1149.namprd12.prod.outlook.com (10.169.204.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Fri, 19 Jan 2018 15:04:05 +0000 Subject: Re: [PATCH v3 0/5] x86: SME: BSP/SME microcode update fix To: Gabriel C , Borislav Petkov Cc: x86@kernel.org, Brijesh Singh , linux-kernel@vger.kernel.org, Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Greg Kroah-Hartman References: <20180110192544.6026.17285.stgit@tlendack-t1.amdoffice.net> <20180111183313.7ub2t3xkeko5yb3z@pd.tnic> <68544677-2cbc-b41e-2db0-5799ef84d592@gmail.com> From: Tom Lendacky Message-ID: Date: Fri, 19 Jan 2018 09:03:52 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <68544677-2cbc-b41e-2db0-5799ef84d592@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: MWHPR2201CA0063.namprd22.prod.outlook.com (10.174.103.16) To MWHPR12MB1149.namprd12.prod.outlook.com (10.169.204.13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f94b5db6-af55-4c79-a0d5-08d55f4de2a4 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(2017052603307)(7153060)(7193020);SRVR:MWHPR12MB1149; X-Microsoft-Exchange-Diagnostics: 1;M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rAfhDkShBdlNZhtyR35PoSWDHpyUmVnfpX8lxhl0bq0KnhdE9wqXzb3R46r/OcXkpSUP6KK08kXjGwDngN3Cm6lu4MIy4StVjHE59zH2Lf2Qsn0B7jdV5S2nJX6n45ycrLVP6yrwGCX7OZtmbwJ9wh3KOeZjrFtYSMNZcR1pHQ636xdh6LY8Prmg9jWYF4/FDOr7yooVjI86+tb/kC+MCc6W0CN7Ox4ERHr3egNVfrBsLT09t0W4nuccPwjTsCEpDSBNdCaJsZw2/oHSSdCbY+Umug62aDkrAJL/Fo1CY2El4kfKX3nqY6H6vVq+TS2l2YN5GXg2aXJZvXD7EGQs46JGx0VwgRzAdnH;4:6e93JHNrokJekhq1iLIUCEFtMArRaTtSe/K02shQXXt5pV0RZ18tuniD/rvVUHWRyia8tDKE8uKtYnt/eo5QzJrgfRjcrN2byGBFBgVZAZIzm/Rq0vbMcWOvgB1yBIfuOVXormS97XeXDnRHh/U1YGrsFFmLOXNju/fvSXT7nN/51V8NdUUKblHDYstxoTx6BVpH2mmhKEw3lgtrh4+/7Pkl3HBW+hfmUyU6mXQEu+c7BTTAPxsbRPi+HWSP1iDnt6aPYpAiiGSc5kIJdWEkdw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040495)(2401047)(8121501046)(5005006)(3231023)(2400078)(944501161)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041282)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:MWHPR12MB1149;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:MWHPR12MB1149; X-Forefront-PRVS: 0557CBAD84 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(376002)(39380400002)(39860400002)(396003)(366004)(346002)(199004)(189003)(31696002)(65826007)(2950100002)(36756003)(5660300001)(39060400002)(68736007)(90366009)(6246003)(6486002)(4326008)(81166006)(8936002)(81156014)(8676002)(229853002)(53936002)(53546011)(97736004)(23676004)(59450400001)(26005)(76176011)(77096007)(2486003)(386003)(64126003)(52146003)(3260700006)(6666003)(83506002)(50466002)(2906002)(2870700001)(16526018)(86362001)(6116002)(105586002)(65956001)(16576012)(106356001)(305945005)(316002)(54906003)(110136005)(3846002)(58126008)(25786009)(31686004)(65806001)(47776003)(478600001)(7736002)(52116002)(72206003)(66066001)(15650500001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR12MB1149;H:[10.236.65.116];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjEyTUIxMTQ5OzIzOjZJSDZzVXd2TmVSZlpsTG9ndVMxcytQMXEz?= =?utf-8?B?dlFHT0lOZUptS1dadGJLN1p1Zy9rTWJlVFZUbDJybDhXbnRzakx1c0NoSVF4?= =?utf-8?B?Q2JYWHE3aDZKcjkrckpET2NXK05VWjhhNWJtbjRzZ3JoZUVwWkpCWTdEL1ZX?= =?utf-8?B?WFI4SkRReTRVWi9kTHRPL1FoM0VRSHJ1WDhjbnJ4alArdzMwUEdsREpkUmV2?= =?utf-8?B?dnZVb2hSdTVwT3VpUXdlejRtOTVEVWtrcUF5UlRpUXlwdXp4QUE0N1pLV0h4?= =?utf-8?B?TmM0dVBjblNURERsWnI5SW1tVGNXTUh2YVZ6MWwxSE5aZkxpQXViUmtPWlMx?= =?utf-8?B?eWc2RXNnRXFHZHlndTh4VWdBWi9vblA4SUVja2NsMldsbnRLRXZ4LzRxYXhv?= =?utf-8?B?V2Q4am1nTjFrbnkxRUlIZVRiV2s3MWdQeDQxTnlPeklJOWk5bnRQRlZ5K29U?= =?utf-8?B?MC9Hc0tZaVpqVm5ZZUR6dDdCR0c1cGhlSVQ0QVBBaUVyMmloejJOQnhHTFZC?=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gkPD2d7mGmbYo+nHZd2MVpPQ2A4obgiQ18LqQZzSjT6jJnO2grrIcHNYsPHmAfL/tJbVbls=;5:kP2+DSRkkRiexZJlQ2Jm6y3t3Nu+dxvtxLLMGuHylDtRDcPWncUDJiCJ89TES/X7Fn6eyd8iM7SX9eKxZ+QiWs3qV2J7RxcxWthnWtMV1W+0xfW196hrT0qwrZDiTMcq3uoH3Jf3P/QGxuIDhCxuakjOq5+QMpwvsbGfM51/sb8=;24:JQnwgggEHZgeUBoDKOQDM3NDVy3q/Q+IUtEkg4qb0tQ+jB93oiKP3P4xNRDJqcL8r0kFASf/Wxmo85BvrzKmc4gYy8D6mYfVkjKfdwMnLrI=;7:wnxe2S3WAhmiCLiMCkfcwidNXXICmtvErkNWne2usMtNiWIZlE10saWtYtjcRlEG+c63fZwx2bBa8CYbshT+sJ+UyLlz7uD+D52yWSSpWQwxfZZzafjk5jk9SVysC5WT5rxZfmrvKGjS7ZUNFCqK40P1PFBk7Ge2PzY6hIFxw03AxQoPaX1bA6D892UKz/TKjqC+zc3n+MXd0KvjDcwAUmFUDPa4uMhUKy8T6Zouv8Fwcq91MyQc1cZMsO07PZd4 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1149;20:aXyBkBeb5bwUWb/wlW8X2uQ6xHRVZW/vnarty4SUcQTo/xwV/F4Taes3wTxLJoOJ5XtbluRlI9GFtUrLclRmo2vNKw741XHrFPPKK8RTsdAQE1KWlIaOGOxB/2H3GgLe2mgAxXq3Ho6ydh/FrFJpmiONp3URoorIk2gwxuNYLd66kMzg9g2Z7kh+a6y+4srRbwQxuPTKgjiOXBTPdxj9UwkTtUQbfDo/ePHrzp8HTNyKAYIxkw+Nrxm0znIzWYnv X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2018 15:04:05.3134 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f94b5db6-af55-4c79-a0d5-08d55f4de2a4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1149 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/15/2018 4:47 PM, Gabriel C wrote: > On 11.01.2018 19:33, Borislav Petkov wrote: >> On Wed, Jan 10, 2018 at 01:25:45PM -0600, Tom Lendacky wrote: >>> This patch series addresses an issue when SME is active and the BSP >>> is attempting to check for and load microcode during load_ucode_bsp(). >>> Since the initrd has not been decrypted (yet) and the virtual address >>> of the initrd treats the memory as encrypted, the CPIO archive parsing >>> fails to locate the microcode. >>> >>> This series moves the encryption of the initrd into the early boot code >>> and encrypts it at the same time that the kernel is encrypted.  Since >>> the initrd is now encrypted, the CPIO archive parsing succeeds in >>> properly locating the microcode. >>> >>> The following patches are included in this fix: >>> - Cleanup register saving in arch/x86/mm/mem_encrypt_boot.S >>> - Reduce parameters and complexity for creating the SME PGD mappings >>> - Centralize the use of the PMD flags used in sme_encrypt_kernel() in >>>    preparation for using PTE flags also. >>> - Prepare sme_encrypt_kernel() to handle PAGE aligned encryption, not >>>    just 2MB large page aligned encryption. >>> - Encrypt the initrd in sme_encrypt_kernel() when the kernel is being >>>    encrypted. >>> >>> This patch series is based on tip/master. >>> >>> --- >>> >>> Changes from v2: >>> - General code cleanup based on feedback. >>> >>> Changes from v1: >>> - Additional patch to cleanup the register saving performed in >>>    arch/x86/mm/mem_encrypt_boot.S in prep for changes made in the >>>    remainder of the patchset. >>> - Additional patch to reduce parameters and complexity for creating the >>>    SME PGD mappings by introducing and using a structure for referencing >>>    the PGD to populate, the pagetable allocation area, the >>> virtual/physical >>>    addresses being mapped and the pagetable flags to be used. >>> - Consolidate PMD/PTE mapping code to reduce duplication. >>> >>> Tom Lendacky (5): >>>        x86/mm: Cleanup register saving in mem_encrypt_boot.S >>>        x86/mm: Use a struct to reduce parameters for SME PGD mapping >>>        x86/mm: Centralize PMD flags in sme_encrypt_kernel() >>>        x86/mm: Prepare sme_encrypt_kernel() for PAGE aligned encryption >>>        x86/mm: Encrypt the initrd earlier for BSP microcode update >>> >>> >>>   arch/x86/include/asm/mem_encrypt.h |    4 >>>   arch/x86/kernel/head64.c           |    4 >>>   arch/x86/kernel/setup.c            |   10 - >>>   arch/x86/mm/mem_encrypt.c          |  356 >>> ++++++++++++++++++++++++++---------- >>>   arch/x86/mm/mem_encrypt_boot.S     |   80 ++++---- >>>   5 files changed, 308 insertions(+), 146 deletions(-) >> >> All 5: >> >> Reviewed-by: Borislav Petkov >> > > Guys , are these patches going to be part of 4.15 ? > > With mem_encrypt=on without these patches microcode loading doesn't > work right. Also @stable 4.14 would need the fixes too. It looks like these patches have been pulled into 4.15. I did forget to cc stable, so I'll follow-up with a separate email to have these back-ported to the 4.14 stable tree. Thanks, Tom > > > Regards, > > Gabriel C