Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752035AbeAEOXU (ORCPT + 1 other); Fri, 5 Jan 2018 09:23:20 -0500 Received: from mail-co1nam03on0065.outbound.protection.outlook.com ([104.47.40.65]:23397 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751847AbeAEOWr (ORCPT ); Fri, 5 Jan 2018 09:22:47 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Subject: Re: [PATCH] x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN To: Thomas Gleixner , "Woodhouse, David" Cc: "linux-kernel@vger.kernel.org" , "tim.c.chen@linux.intel.com" , "peterz@infradead.org" , "torvalds@linux-foundation.org" , "ak@linux.intel.com" , "riel@redhat.com" , "keescook@google.com" , "gnomes@lxorguk.ukuu.org.uk" , "pjt@google.com" , "dave.hansen@intel.com" , "luto@amacapital.net" , "jikos@kernel.org" , "gregkh@linux-foundation.org" References: From: Tom Lendacky Message-ID: Date: Fri, 5 Jan 2018 08:22:40 -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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: CY4PR19CA0043.namprd19.prod.outlook.com (10.172.173.157) To DM5PR12MB1147.namprd12.prod.outlook.com (10.168.236.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f91df11a-63fa-4856-e691-08d55447c9a8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060);SRVR:DM5PR12MB1147; X-Microsoft-Exchange-Diagnostics: 1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zmRfRDjRYQNVJVOGhPz3cSxr435eOutqZG/GzybhOcuVpN9dI06j3LOvOG+YbLpnUINM/zaDpP9B6RuiYcbjqtSavveXS1yDlS7TwKJ4ReC+HHKX0c4czaB1wHI/pqISTGrkjKOiVS6ApU24wh0eh+j/abVv7+G7xKIHz2stwh0y8APw62a/v8EodGu1bN+DDWs6Arb7w+8jwDwlb2dIKqM1U0MoH5cM+HvLoJjySL6iVoCISJEDZbuNz3TSxxfuAA6sX8MifijQ3A4nv2XzDCIVc9/Tvzr0Oq3gg4rikidU9BPtkAUO6tyae7QCjy6PuELTnVbP15ZKsdnnuprUCWAFpnpMW1w7AVetygXQ0;4:9pEVaVGhxTv4WIxTwc4vg2oLHHj+DO0b+SosANhlJe05k629th2iAugcbMGYP/1NbMoMOGMYTgOlMS5NAOeeLCiWy3XFQoDExnz1OmCSoN5plpU18USGfpkkuRGZwjXyJWGddaHhdNdYzdrV3ohrP2xo5+V4Wqikb+KIAD77YZQ2fDpew8XPQTrm4pVq5KwCmJOJ2M2YLwlGybJYhneivaXoF56PmcK4DRqUFuQWDdYHSTXW1KSEEnFGqz+wwwn7ttnofWJT4YDbrEvD1z6zzQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:DM5PR12MB1147;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DM5PR12MB1147; X-Forefront-PRVS: 05437568AA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(39380400002)(39860400002)(346002)(366004)(376002)(396003)(189003)(24454002)(199004)(25786009)(66066001)(47776003)(6246003)(105586002)(8676002)(65956001)(65806001)(81156014)(229853002)(8936002)(68736007)(81166006)(83506002)(478600001)(2906002)(72206003)(6486002)(77096006)(36756003)(58126008)(54906003)(110136005)(316002)(106356001)(4326008)(16526018)(3260700006)(7416002)(16576012)(65826007)(386003)(5660300001)(53546011)(2950100002)(90366009)(31696002)(97736004)(59450400001)(31686004)(53936002)(305945005)(7736002)(230700001)(76176011)(86362001)(52116002)(52146003)(6116002)(3846002)(50466002)(64126003)(2486003)(23676004);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB1147;H:[10.236.65.116];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMTQ3OzIzOlJNRWlCcVdtV3d4OFN0ZzNIU2JqbU5HN1Rw?= =?utf-8?B?bWdLZVptNkNiV3hZODd1dWUwVi9aV2t5bFpKMEJGRXQzZkdLM1B6WGV0d2Er?= =?utf-8?B?V3NSTUtMOTZhdzZ4ZXFOV3RNWEg4UmY3U2NjL3UvMTkvdnhNZTVpeXlEcy9Z?= =?utf-8?B?aDBhSHljbHkvOURkVkMva0FZOERDTnU5WTAwZ1pTaFlyelJFMWVxT1gxdkhz?= =?utf-8?B?NG1aZ1IrSDF1QmVTcWl5T2dHaVV6aE8vd01pZnRYSDl4WlU1MEoxMjNBRkg5?= =?utf-8?B?bjBqQzlhOEZpcE1JVVdjZUxzUjFuZEczc3RYNEtFdmdzaXlrWjF1ejBPZWJa?= =?utf-8?B?eEJIN2RycGtDalhwUHVZZlI3MUorcExoU0pCOHpSL0VsOThwSlJxY3Y0MjJD?= =?utf-8?B?L0NRWjFxUUcvVU5IN2d0NVFFSGh0WExoZnRJaVBKSWR6bFJRaHRzRmo1N25P?= =?utf-8?B?Q0M2L296OWM1L1BBblc3Y01nMElhYldoamd5Z1pUVGg5RVBVTmNGeHhkZUsx?= =?utf-8?B?TmovdVFSL0F5UE05c01UR3hpUmluQlc5TU82OXdyR3VLbC9Rd3VSQnYy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X49SvsHSJdmmJy7Ac6hca2Tb9+bfSEEpt1TCZeh0GD39uvuXRi1LlH4nq1yciNMfW6s+ps6e3PF2IOgNuIbblrWThNe8PURwU=;24:zOz1nziTk/+pNfxFU2eBJhO7AvvHIulJE0fkGiFg54P/lNyLUsRHd4nhy4K5opYMH2Ai2K8QPUuPvpMHjbqdgbP9xz34q274Mfa6/2fY1Xg=;7:pLGWohUZvUNq8vjyUQR2PDrCQaSSWxhrxc2wsi52xLuuHUY8VMD/XUyW3AhL8MOPwMgfWejKLHvtMVQxGrUwgzl5qjMdn20xarzXcAEVxwWmB4/HnyywOfRfTz3fuV7bLDDHjSEncJ8SrDGNm+NxTBzyZMADxWLSg/8pnvhQEz5TTjb9qXK7Ffej1f9bfCPefy9AnnimXCZW0gj2mY276lB6pfESDyzPD2fHP0EvRDu5zJhs8gKRW0K0Ck/XENhF SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1147;20:GEe1Bb0zXaMKlxaOUG6OZSqAhZOhNMOTL2IvI0b5u6D3+NEp/i+KpoSK6owtP3MRwxHd66S0FG3Ydb8244ou1ute5pp/k5Vs/NtPDXVT05skeEhEyP0tm2JTBPhIGgOxtfzvEzWHvU+T40BMBLpg1QHXK6MZWZoliRtLBTvPv2xwR5aADApCghuHfkElXYAwrpbt2IdMT9LSB3xGun3UEM5Tc5rADXnl5IzB6o3NbHQXtnr6ybPVFnqrO46/Qn8e X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2018 14:22:43.5181 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f91df11a-63fa-4856-e691-08d55447c9a8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1147 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 1/5/2018 8:10 AM, Thomas Gleixner wrote: > Use the name associated with the attack which needs page table isolation > for mitigation. > > Signed-off-by: Thomas Gleixner > --- > arch/x86/include/asm/cpufeatures.h | 2 +- > arch/x86/mm/pti.c | 6 +++--- > 2 files changed, 4 insertions(+), 4 deletions(-) Don't you need to update the value in arch/x86/kernel/cpu/common.c, also? Thanks, Tom > > --- a/arch/x86/include/asm/cpufeatures.h > +++ b/arch/x86/include/asm/cpufeatures.h > @@ -341,6 +341,6 @@ > #define X86_BUG_SWAPGS_FENCE X86_BUG(11) /* SWAPGS without input dep on GS */ > #define X86_BUG_MONITOR X86_BUG(12) /* IPI required to wake up remote CPU */ > #define X86_BUG_AMD_E400 X86_BUG(13) /* CPU is among the affected by Erratum 400 */ > -#define X86_BUG_CPU_INSECURE X86_BUG(14) /* CPU is insecure and needs kernel page table isolation */ > +#define X86_BUG_CPU_MELTDOWN X86_BUG(14) /* CPU is affected by meltdown attack and needs kernel page table isolation */ > > #endif /* _ASM_X86_CPUFEATURES_H */ > --- a/arch/x86/mm/pti.c > +++ b/arch/x86/mm/pti.c > @@ -56,13 +56,13 @@ > > static void __init pti_print_if_insecure(const char *reason) > { > - if (boot_cpu_has_bug(X86_BUG_CPU_INSECURE)) > + if (boot_cpu_has_bug(X86_BUG_CPU_MELTDOWN)) > pr_info("%s\n", reason); > } > > static void __init pti_print_if_secure(const char *reason) > { > - if (!boot_cpu_has_bug(X86_BUG_CPU_INSECURE)) > + if (!boot_cpu_has_bug(X86_BUG_CPU_MELTDOWN)) > pr_info("%s\n", reason); > } > > @@ -96,7 +96,7 @@ void __init pti_check_boottime_disable(v > } > > autosel: > - if (!boot_cpu_has_bug(X86_BUG_CPU_INSECURE)) > + if (!boot_cpu_has_bug(X86_BUG_CPU_MELTDOWN)) > return; > enable: > setup_force_cpu_cap(X86_FEATURE_PTI); >