Received: by 10.192.165.148 with SMTP id m20csp2140033imm; Sun, 22 Apr 2018 01:06:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/EPN9sgcqzrcdBI5jAC7A/cGsvM0CWFQG2bilYjlcHHGd/rNEoBTPQocXkMsil6eOK+IPQ X-Received: by 2002:a17:902:be15:: with SMTP id r21-v6mr15857528pls.237.1524384407495; Sun, 22 Apr 2018 01:06:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524384407; cv=none; d=google.com; s=arc-20160816; b=zpatVhPGaPK5EMscUwYaFibV/cw1yJP0qtqKBDKdcdTj7ONGsnreTpuTIEDSu4NS7z ekgx3LrhoBaQwiiVlSeqzILGpIbOkT8hiwc+Z1Y8X7uBKMZWz6txahgeocF+F3iZ/7+3 8q81u57UvdOfk7MN+TvOcYVHztlhSRqEfJTpHywRf+Y+rcFsHLGQqVUeClanJuHuF/VD 39MOTiir/X+1hpBYggpHgZQ6rTkHmJqTjQwL28H3LpNmfAa6duwTIGOEhUpPyVlQGhxq HdHu7hk+mjqrZwk/T+BsOnQSHGtte7TVPMZB7+Iu4PJNU0UuVqtM4YfI2/zSSqREIGmU LrqQ== 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=rweEv+YlnyoBQxSoGC7+QSnS18h18Y54x/KaM+ZK12U=; b=qpnCugAQenam7Q53iKPLx5J+nnK44uSdFake/IKCMAfXXYDpXQIIsMV6tUOP66fDY2 IQw1q4G4jxa03ab2p69XmBqnDpf3VfpGB10+mTLQQNmVB2kTEsuytb8G4OMXz91h77TT TrSh7CehHL403UWufajzQzN614answHfsCdSikz6p56JzI9A2jOszZVVYmJUxKkMSBnd GVev5tt6dchbEfsRPK3Cb+nNvU4xdNJGO7JH+WNyPr2/URqolkd1/lfnVTvuEHWCZrFZ TMWAUrwyB1Qj0g6TyDtAelxTIkKMze3y7GSkOjgxoQ1pgMuUHLZj+C1OvrgNnu3sh3yd eiew== 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 v19si7902654pgc.694.2018.04.22.01.06.31; Sun, 22 Apr 2018 01:06:47 -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 S1751620AbeDVIFZ (ORCPT + 99 others); Sun, 22 Apr 2018 04:05:25 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:55644 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751322AbeDVIFW (ORCPT ); Sun, 22 Apr 2018 04:05:22 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 502D580446; Sun, 22 Apr 2018 10:05:21 +0200 (CEST) Date: Sun, 22 Apr 2018 10:05:21 +0200 From: Pavel Machek To: Mark Rutland Cc: 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, marc.zyngier@arm.com, 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: <20180422080520.GC17875@amd> References: <20180417183735.56985-1-mark.rutland@arm.com> <20180417183735.56985-12-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="V88s5gaDVPzZ0KCq" Content-Disposition: inline In-Reply-To: <20180417183735.56985-12-mark.rutland@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 --V88s5gaDVPzZ0KCq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > @@ -205,6 +205,14 @@ Before jumping into the kernel, the following condit= ions 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 > + 0b1 is quite confusing way to write 1. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --V88s5gaDVPzZ0KCq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlrcQkAACgkQMOfwapXb+vKlSQCeNU0RERVJm4ZqVsCIP89svUq/ RK0AnR1nYiaJQ9ICHmunce6TL5rFZM0O =7Aq9 -----END PGP SIGNATURE----- --V88s5gaDVPzZ0KCq--