Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp507954imm; Fri, 12 Oct 2018 01:54:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV63mX32Ts7xrKSNDslpn27KyWrCTnilUyYO2i1tqx9uIYNOUZ1zuziI5ydk6zOdrn3KwsvJS X-Received: by 2002:a62:b09:: with SMTP id t9-v6mr5227443pfi.36.1539334485315; Fri, 12 Oct 2018 01:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539334485; cv=none; d=google.com; s=arc-20160816; b=npB4CuPa7vt7sJtqlJx4tm61FdlsNruTuCaSElienNxkp6/hWCMLKSbnNNC1ux68qe NSnagYZHIXVAdR3zGOhD2cjFZK1ZZ5LFDLHj5FoX0v3i+wGOZjccZUJojW3j1qn/NUK/ KNrbixCncHwFs7F+705+Bh0/3sID2yqSNeYqCh/nQUaGaZjoKjPTidL8u9auM4DyQqq8 cr2sQhQhf5qUyCzd/Lf1QSnoPbIxPrV964v2YU5a0akzhgYFeghAzcrWUdUQDPURqDVL URDDn5aBWfl+CUbtseK3x4Di95nVKuLL8R7VNr4uFYCxsNxOZgWLx6yegU5sRv6dgVgU Ijew== 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=wWuuPb8SJl5/UQC3DMlOwefvKZ021YD8TXz4wNPIaCA=; b=FkWcR6rxjsCjlJQOUnvFHakErFD22OV1z+5kGDGi5666E0+YXYcoR2C85GeaWkUFFY gZpsbA1NadPSYM5fqngCa1VOHN2mKmYA0UMqPYQTWxbOw/H3sznXURQcHA8lHh/b/EHI PlX2htdUR03dPSSietc/XDyvN96gWEIp8NwAXn1ojadHcBtr5MQdMxBElvzh/7y7JTQr LMqYRLaFTI7UviOICmmV8OhR/uEJmH5x0CL3IImxWw5OKbkY2gsTMzztNTcgHHr0g50e GEL9Y8czf1SbSr5bWVzMbs+fxCGt+yC3W8+NXAJPH0irDHfL7YonfBMZCMTrePUW+8sI ZqCA== 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 s63-v6si650945pfb.217.2018.10.12.01.54.28; Fri, 12 Oct 2018 01:54:45 -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 S1728029AbeJLQZ0 (ORCPT + 99 others); Fri, 12 Oct 2018 12:25:26 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48010 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727705AbeJLQZ0 (ORCPT ); Fri, 12 Oct 2018 12:25:26 -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 455FDF; Fri, 12 Oct 2018 01:54:02 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 30D6D3F5D3; Fri, 12 Oct 2018 01:53:59 -0700 (PDT) Date: Fri, 12 Oct 2018 09:53:54 +0100 From: Mark Rutland To: Will Deacon Cc: Kristina Martsenko , 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 , 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: <20181012085352.xi6rkcpm62iqd6ru@lakrids.cambridge.arm.com> References: <20181005084754.20950-1-kristina.martsenko@arm.com> <20181005084754.20950-2-kristina.martsenko@arm.com> <20181011162814.GC17000@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181011162814.GC17000@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) 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 05:28:14PM +0100, Will Deacon wrote: > On Fri, Oct 05, 2018 at 09:47:38AM +0100, Kristina Martsenko wrote: > > +#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? It can also be taken to EL3 dependent on SCR_EL3.API. We use ESR_ELx_EC_ for other exceptions that can't be taken to EL1 (e.g. ESR_ELx_EC_SMC{32,64}), so I think it would be more consistent to leave this as ESR_ELx_EC_PAC rather than ESR_EL2_EC_PAC. Thanks, Mark.