Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2392167imm; Thu, 11 Oct 2018 09:31:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV62SuDwGXWAHql9YFFRC4OsL7/8ttt+3C1WbV2hBhkzGKh4BEXtureLffSun2PQua8+WlB7d X-Received: by 2002:a62:830e:: with SMTP id h14-v6mr2299019pfe.29.1539275465509; Thu, 11 Oct 2018 09:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539275465; cv=none; d=google.com; s=arc-20160816; b=nT4ndY4lm49uhh1LWFV+xS7tw9b0w/Os9mFNJDv+mSydMyvYhVg7HBQQ31LzCOL3eC l4u+aHWbrECIIFpZKa6L3208eyKTjWYn4dWdO8juXbsCK7C3vq/oqQkIPejKYniXM9sh SX17uQ4fGupUWhgcLfOSg5SHElkKrMUuYsEXQUHyp2NH8+TFaXF9q3ZYvmv9SyD+Tych PZBR62CufmE685Q7TJCe7pi0u2/W0Jvj0gUpNpghC8LldXcMMUlBOGe+YCw8bH0EXImg E0ceBQxYXVLfSTnslUMOBAg0ld/rkiyFf+pjJGBEuMKVV9Zm4HPRfcYLagNK5EmQkOZK wU7A== 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=DrDUJC5pSNyZebugt/tO0o1EC1Hus3TGoaR3XOCGm+Y=; b=Wed9jC3/Kmzw6BZ0/jZjTY/I4UjbLu120E0vn0DGMUWOotgVk5HOQE53EmOdJCFxOV B61MbnzhyBuE+GwLcv8ekeJPKtNdRcNBT3/VkCDeBQQ8iXB5JZTF8K9RoR0cwLRkAdkp 34NdBzIcf+pqaiQfq6+Yhg7r/c2n0AIoCdI7P24b/WSTpt8oqf0r5NhH/6ttH7qHZ3kR qgOtAfs1ov/xa3DKeLNOepOt4WP0XDVbxHFWscVMe+YVoVfUiK7Xm77jjvPnr6Jc9iDK MmbDnl3Pj/sCdnJdUseCl1kVbouVofWQiTiFqnwqPOQHHkeQur1kJekv2Ory9Uv3I5Hz woUQ== 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 15-v6si29472644pfr.242.2018.10.11.09.30.50; Thu, 11 Oct 2018 09:31:05 -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 S1730088AbeJKX4M (ORCPT + 99 others); Thu, 11 Oct 2018 19:56:12 -0400 Received: from foss.arm.com ([217.140.101.70]:40806 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729368AbeJKX4L (ORCPT ); Thu, 11 Oct 2018 19:56:11 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 62C04ED1; Thu, 11 Oct 2018 09:28:14 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 333EC3F5B3; Thu, 11 Oct 2018 09:28:14 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 4D2F01AE189D; Thu, 11 Oct 2018 17:28:14 +0100 (BST) Date: Thu, 11 Oct 2018 17:28:14 +0100 From: Will Deacon To: Kristina Martsenko Cc: linux-arm-kernel@lists.infradead.org, Adam Wallis , Amit Kachhap , Andrew Jones , Ard Biesheuvel , Arnd Bergmann , Catalin Marinas , Christoffer Dall , Dave P Martin , Jacob Bramley , Kees Cook , Marc Zyngier , Mark Rutland , Ramana Radhakrishnan , "Suzuki K . Poulose" , kvmarm@lists.cs.columbia.edu, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 01/17] arm64: add pointer authentication register bits Message-ID: <20181011162814.GC17000@arm.com> References: <20181005084754.20950-1-kristina.martsenko@arm.com> <20181005084754.20950-2-kristina.martsenko@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181005084754.20950-2-kristina.martsenko@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 On Fri, Oct 05, 2018 at 09:47:38AM +0100, Kristina Martsenko wrote: > From: Mark Rutland > > The ARMv8.3 pointer authentication extension adds: > > * New fields in ID_AA64ISAR1 to report the presence of pointer > authentication functionality. > > * New control bits in SCTLR_ELx to enable this functionality. > > * New system registers to hold the keys necessary for this > functionality. > > * A new ESR_ELx.EC code used when the new instructions are affected by > configurable traps > > This patch adds the relevant definitions to and > for these, to be used by subsequent patches. > > Signed-off-by: Mark Rutland > Signed-off-by: Kristina Martsenko > Cc: Catalin Marinas > Cc: Marc Zyngier > Cc: Suzuki K Poulose > Cc: Will Deacon > --- > arch/arm64/include/asm/esr.h | 3 ++- > arch/arm64/include/asm/sysreg.h | 30 ++++++++++++++++++++++++++++++ > 2 files changed, 32 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/include/asm/esr.h b/arch/arm64/include/asm/esr.h > index ce70c3ffb993..022785162281 100644 > --- a/arch/arm64/include/asm/esr.h > +++ b/arch/arm64/include/asm/esr.h > @@ -30,7 +30,8 @@ > #define ESR_ELx_EC_CP14_LS (0x06) > #define ESR_ELx_EC_FP_ASIMD (0x07) > #define ESR_ELx_EC_CP10_ID (0x08) > -/* Unallocated EC: 0x09 - 0x0B */ > +#define ESR_ELx_EC_PAC (0x09) Really minor nit: but shouldn't this be ESR_EL2_EC_PAC, since this trap can't occur at EL1 afaict? Rest of the patch looks good: Reviewed-by: Will Deacon Will