Received: by 10.192.165.148 with SMTP id m20csp2177167imm; Sun, 22 Apr 2018 02:02:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+yRTrLciMeT6FMBspDy0ZKiJuxjtKkfKQRexmiI1jgkgdbTvY19LOx4MgnfppZYD4s82RK X-Received: by 2002:a17:902:7684:: with SMTP id m4-v6mr11956045pll.340.1524387736500; Sun, 22 Apr 2018 02:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524387736; cv=none; d=google.com; s=arc-20160816; b=XLJHXCPYJZZkGPr81Cs1mr59qOt2vRK8ptnuoK/WgfnZo2enTeOnO5SoIZPf5edoE5 TG9tjPwv+hCn764aIQ9xFLxfui/9pfpyW8L19Qu1rp5URzg0ICi/DmfH5Njgvp6gHb8Z wvwCkhHUyAzR+ggMF682i/kgcNtu3ksVo4ApWcwAZbaUsPx42HbiF2DywzmVHeqBtZNi vkrlYYoREWxCjWI+lJA6yRoxHgRMla1nrg/2iR20qr71LG60q1ejkcPyCMx4R3wHqKnb PCA+17WYReiInCycNvIBUISjGhl3SYmqaZsdwJJY4IzQk/AfUP3MRZhiLFbD53FN+a54 tnYQ== 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:arc-authentication-results; bh=DsaSezCJt8robO3CU00oBCrpg2w0zaJ+QxrrMhLK6pM=; b=zLpB+2vhP17V0+OVyhZ1TfP1cQE2d5BrGSUCNUjBGqOnYpxGggcQtsJeXETOAMjMOP H003PPL6hWOLWcK7xCbWgo7SGdt9eGQMKOhIc6scP863wuVxXP7BxtwHxO+F/9hW+FQi DZeU9nhepbXXyWaYquE22YLqTkGbQq/tUfmp+n1BcMc1RbPIZTNqujHrsNEjeahG2E+F /e0JL6QqikbIAA18cmxNuA3v7Fx0bCKaOmEGc2hgOJv952xgFHfZNProKMAq9tN0z3Pg wSBEpfSxWCeTsffDDdgTorvzvAY5pmgtq4aPgoemQy4gdHadNIqkiA6e568PDysoFV6J N26g== 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 x12si7839653pge.687.2018.04.22.02.01.48; Sun, 22 Apr 2018 02:02:16 -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 S1751219AbeDVJAG (ORCPT + 99 others); Sun, 22 Apr 2018 05:00:06 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:56802 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbeDVJAF (ORCPT ); Sun, 22 Apr 2018 05:00:05 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 22EC48039B; Sun, 22 Apr 2018 11:00:04 +0200 (CEST) Date: Sun, 22 Apr 2018 11:00:03 +0200 From: Pavel Machek To: Marc Zyngier Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, arnd@arndb.de, catalin.marinas@arm.com, cdall@kernel.org, drjones@redhat.com, kvmarm@lists.cs.columbia.edu, linux-arch@vger.kernel.org, ramana.radhakrishnan@arm.com, suzuki.poulose@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, awallis@codeaurora.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCHv3 11/11] arm64: docs: document pointer authentication Message-ID: <20180422090003.GA24344@amd> References: <20180417183735.56985-1-mark.rutland@arm.com> <20180417183735.56985-12-mark.rutland@arm.com> <20180422080520.GC17875@amd> <86h8o3r5jy.wl-marc.zyngier@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <86h8o3r5jy.wl-marc.zyngier@arm.com> 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 --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun 2018-04-22 09:47:29, Marc Zyngier wrote: > On Sun, 22 Apr 2018 09:05:21 +0100, > Pavel Machek wrote: > >=20 > > Hi! > >=20 > > > @@ -205,6 +205,14 @@ Before jumping into the kernel, the following co= nditions must be met: > > > ICC_SRE_EL2.SRE (bit 0) must be initialised to 0b0. > > > - The DT or ACPI tables must describe a GICv2 interrupt controller. > > > =20 > > > + For CPUs with pointer authentication functionality: > > > + - If EL3 is present: > > > + SCR_EL3.APK (bit 16) must be initialised to 0b1 > > > + SCR_EL3.API (bit 17) must be initialised to 0b1 > > > + - If the kernel is entered at EL1: > > > + HCR_EL2.APK (bit 40) must be initialised to 0b1 > > > + HCR_EL2.API (bit 41) must be initialised to 0b1 > > > + > >=20 > > 0b1 is quite confusing way to write 1. >=20 > Do you find 0x1 equally confusing? It is slightly better. Still I'd not use it for describing single bit. > 0bx is a pretty common way of describing bit-fields of a hardware > register. It is also consistent with the rest of this document. =2E..and inconsistent with rest of the world :-). Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --jRHKVT23PllUwdXP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlrcTxMACgkQMOfwapXb+vKI0ACeMo1/1nh61yFTOI/1mDSHcvzC YrMAoIhqWJC2fBZtLjTJysk3kqkTVZC/ =h4Dt -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--