Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2407057imm; Thu, 11 Oct 2018 09:44:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV60YsfGBKBAeV3+Ax5xFzD83SO8gQCeRrZ7pUtrD2caPQUi8Peus9WpkYh6BuEOTPypkmdUL X-Received: by 2002:a62:5103:: with SMTP id f3-v6mr2292327pfb.107.1539276282295; Thu, 11 Oct 2018 09:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539276282; cv=none; d=google.com; s=arc-20160816; b=hMJQ+HUzmYAJRcwAoUA0Y9aN3LGn+8fXdRvIwu4bYc68y7Oriw3kt+aAOLGRz2dHYk WYD/Ku088hGISYO4OU6JRDtsNk+zDqx+HEI0nJZ6CRGY4MG7BuEmBemO2GbAWlFKCqN8 K+U4GWgCTa/71fSRnNLKv0UhHJOwjv06iT0ZEzmlKNb1Ahlz/F0YaqOuvWn5lwn90KGG sC+v5vCC+eLDxvLUXYobRCqfp/3CdReXhYjTF11zBGCkFela+Czfp5CXZ8U+gbjfaLUS pweE8AprZij+0a9Tf9r/VTvZs456X3iWyhMmXObxyaYhsOKs001IrB4J2uHLN/TEmdLZ D87Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=J229Uxywx+XJHg8U1l8YCQkfUWpnLnZpHZg149Tw6yE=; b=yfM5fm77uSFIla2qgMWvPZZOJg0cbuNC5I3JyLG6M+Q2x61FIMMjj/sw8u9qeempG/ w3o+cjeDPO6v3beltMyH4YE8X2rqBNzBKfZG4TIQuzCfSDID1QXG7oHwPNHjWkXA/qoj cOx6RBQhPHE6+E+6YkWss1raJaNraXECC7SzN1bt8usMgvLU51oBCSti6Hy9V+fkmr6n H3cOz5VkGBk/VP4ussWoxhunGYOo6cAxs0UPFvhcHmAsYNDX0vMimkakpo4JSgkXZTiU 7ZGj8ALVKL+vYaMj+fCQTZ9MOAfpz/Q5M7iM7bSoM+BfPr9GAsX7hMeHkGpV3oyd9tfj 5nZw== ARC-Authentication-Results: i=1; mx.google.com; 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 r21-v6si20557876pgo.506.2018.10.11.09.44.27; Thu, 11 Oct 2018 09:44:42 -0700 (PDT) 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; 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 S1730326AbeJLALn (ORCPT + 99 others); Thu, 11 Oct 2018 20:11:43 -0400 Received: from mail.skyhub.de ([5.9.137.197]:51366 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729991AbeJLALn (ORCPT ); Thu, 11 Oct 2018 20:11:43 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XVn_nnE6gcfr; Thu, 11 Oct 2018 18:43:40 +0200 (CEST) Received: from zn.tnic (p200300EC2BD5D200329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bd5:d200:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A4C461EC0266; Thu, 11 Oct 2018 18:43:40 +0200 (CEST) Date: Thu, 11 Oct 2018 18:43:29 +0200 From: Borislav Petkov To: Yu-cheng Yu Cc: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue Subject: Re: [PATCH v5 01/27] x86/cpufeatures: Add CPUIDs for Control Flow Enforcement Technology (CET) Message-ID: <20181011164329.GF25435@zn.tnic> References: <20181011151523.27101-1-yu-cheng.yu@intel.com> <20181011151523.27101-2-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181011151523.27101-2-yu-cheng.yu@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 11, 2018 at 08:14:57AM -0700, Yu-cheng Yu wrote: > Add CPUIDs for Control Flow Enforcement Technology (CET). This is not "CPUIDs" but feature flags. Fix the subject too pls. > CPUID.(EAX=7,ECX=0):ECX[bit 7] Shadow stack > CPUID.(EAX=7,ECX=0):EDX[bit 20] Indirect branch tracking > > Signed-off-by: Yu-cheng Yu > --- > arch/x86/include/asm/cpufeatures.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h > index 89a048c2faec..142b15da06fd 100644 > --- a/arch/x86/include/asm/cpufeatures.h > +++ b/arch/x86/include/asm/cpufeatures.h > @@ -321,6 +321,7 @@ > #define X86_FEATURE_PKU (16*32+ 3) /* Protection Keys for Userspace */ > #define X86_FEATURE_OSPKE (16*32+ 4) /* OS Protection Keys Enable */ > #define X86_FEATURE_AVX512_VBMI2 (16*32+ 6) /* Additional AVX512 Vector Bit Manipulation Instructions */ > +#define X86_FEATURE_SHSTK (16*32+ 7) /* Shadow Stack */ > #define X86_FEATURE_GFNI (16*32+ 8) /* Galois Field New Instructions */ > #define X86_FEATURE_VAES (16*32+ 9) /* Vector AES */ > #define X86_FEATURE_VPCLMULQDQ (16*32+10) /* Carry-Less Multiplication Double Quadword */ > @@ -341,6 +342,7 @@ > #define X86_FEATURE_AVX512_4VNNIW (18*32+ 2) /* AVX-512 Neural Network Instructions */ > #define X86_FEATURE_AVX512_4FMAPS (18*32+ 3) /* AVX-512 Multiply Accumulation Single precision */ > #define X86_FEATURE_PCONFIG (18*32+18) /* Intel PCONFIG */ > +#define X86_FEATURE_IBT (18*32+20) /* Indirect Branch Tracking */ > #define X86_FEATURE_SPEC_CTRL (18*32+26) /* "" Speculation Control (IBRS + IBPB) */ > #define X86_FEATURE_INTEL_STIBP (18*32+27) /* "" Single Thread Indirect Branch Predictors */ > #define X86_FEATURE_FLUSH_L1D (18*32+28) /* Flush L1D cache */ > -- With that addressed: Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.