Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2900256imu; Sun, 11 Nov 2018 03:31:49 -0800 (PST) X-Google-Smtp-Source: AJdET5dG+Mkia2vgkuUBAzhNL6TjqkKigEI7AfgEhyaG2s1SbX+HviS+2aMSIsjrkkvf41YZP5vI X-Received: by 2002:a17:902:7595:: with SMTP id j21-v6mr14306535pll.191.1541935909533; Sun, 11 Nov 2018 03:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541935909; cv=none; d=google.com; s=arc-20160816; b=Yl/GctTHFpyLdm92kNR9MPDLUq/a+1tu14c2Wa9PpumHDOZF5aCl2+ObZtsn5NhjQd yNbzF/LnZygjlin30LqYLli4pbovIS4bLag1G38Mp+ch7TjA4tI0Y0CBmx/405MU1XwM cMikg3sgc8YRXre3xelzsMLRSnVjtP18AmSBC8vQrxDnQegg+ymU7vRg7mq0l9lRzaq3 HTb70Gd3U9/wz12phBXkjRWdOnsovyQZC4r47qAr6c+6RwQ+nPdZKUEw6rnVeuH1KlfH BCCrBS99E6X0etfIzdD36+pYr1p4rdb15yjjLV03jIC9/TmBSshM9VWy92vm+tjzPBxO q4Vg== 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=koPH6cCCZ/ouFYeduqAWesEQWScsVZs3YyGpKJGBYxw=; b=rTZ2Wak2q4S03iUpJt6oyDmKZrmiiGNQr/F7kJ8ROGCDyi1guDmt/XjUHSI5CrgUls vcwscUokRJn7TdSslf2ZLkUacUVkNxznoiDArlTpiSpcLKC/G4dDde2WiCRfw10lPBv4 5LJX/IN4YdQQkqikp/eqX6ob4a9RTo24iD0FdyPwyqer+dF4ryTdrJAvOJU5PKE78kz7 beKkr0I4f+E1VawEqXLPGUgT3wA5yCkstS7Ubt+dI+4irJIyqhM6II8geofGujp9SDrc k8fopHsA+sY0hAJRnNBJkib+g2bAMWcFevNAdcCBiq9N93nEb8JNvRb95jwZXMB7yGUe NU1A== 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 k11si9015521pgh.132.2018.11.11.03.31.33; Sun, 11 Nov 2018 03:31:49 -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; 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 S1728024AbeKKVT0 (ORCPT + 99 others); Sun, 11 Nov 2018 16:19:26 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:44235 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727531AbeKKVT0 (ORCPT ); Sun, 11 Nov 2018 16:19:26 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 2B8958058E; Sun, 11 Nov 2018 12:31:03 +0100 (CET) Date: Sun, 11 Nov 2018 12:31:03 +0100 From: Pavel Machek To: Borislav Petkov Cc: Yu-cheng Yu , 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 , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue Subject: Re: [PATCH v5 04/27] x86/fpu/xstate: Add XSAVES system states for shadow stack Message-ID: <20181111113103.GG27666@amd> References: <20181011151523.27101-1-yu-cheng.yu@intel.com> <20181011151523.27101-5-yu-cheng.yu@intel.com> <20181108184038.GJ7543@zn.tnic> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nqkreNcslJAfgyzk" Content-Disposition: inline In-Reply-To: <20181108184038.GJ7543@zn.tnic> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nqkreNcslJAfgyzk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > +/* > > + * State component 12 is Control flow Enforcement kernel states > > + */ > > +struct cet_kernel_state { > > + u64 kernel_ssp; /* kernel shadow stack */ > > + u64 pl1_ssp; /* ring-1 shadow stack */ > > + u64 pl2_ssp; /* ring-2 shadow stack */ >=20 > Just write "privilege level" everywhere - not "ring". Please just use word "ring". It is well estabilished terminology. Which ring is priviledge level 1, given that we have SMM and virtualization support? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --nqkreNcslJAfgyzk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlvoEvcACgkQMOfwapXb+vKz1QCaAypyvDoDPjpZVCuUoaiXMZ/5 uvwAoIAkSweKPnKv96HsSHiq/rCF0eRL =gjve -----END PGP SIGNATURE----- --nqkreNcslJAfgyzk--