Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp510408imm; Fri, 12 Oct 2018 01:58:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV60/YAhTMN8ztbp3tl/E33DIlq9i6IAzZlf2ICDijI6Arh9JVz/SnxHQEIMJfeoF7cZG/m/4 X-Received: by 2002:a63:d40c:: with SMTP id a12-v6mr4645339pgh.394.1539334684639; Fri, 12 Oct 2018 01:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539334684; cv=none; d=google.com; s=arc-20160816; b=DKrI9SYKE+A5oGpQb5RSlsTknpMb64cbI3rsFkSyAjt0FEDRqg0uo6JKBBgVetKsNf tkGOkE4vP3WBEjcFuwEYPwurLLs1HI395o09jmS3ure8mBbq2L4RC+xIAahZGV28YJ4Q fhNKWpLbwfbFdQI8U4SppLQw80PgNSd43D0E1LVUy8dVRTJvn6BNhxwcsEiKrdXtl+63 H7GyUlQ7cHffFzo1kSuNneHWuJsbazputZIRcOAN/36YvzMVl0nKlZ2UsAWw81BW4u1R f3FnozLDut1HqAp3Z2L332fr7MckuExjiOtSFVtlc+vyVcj9NjtAi7Z1DQKgsLhqUjzD V3uw== 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=nMI270/t1zxtAgnr2T33MjS3OFDmLAi8FlAHA27nkHg=; b=CtB99LSXah3gy3qlHhwoaLS1ZCC2SZuDNuse1pj8X6h7BcgwKr/aZgyq22pX0ZCXpW 4Nuq2VuRZjrV0nVdGa+USUeti4J5rHVxwhf5reCvOiXHE/C7EKEAKOkVJxgVS1kXNc4y u5Tab9xge6ziqTfBgJDICXC0sM8WjNiItbGGMaOkz7fqBflkyZBIVpJ3rk9eUyebx08O uApZoiUNkBOx1vQ6/NP8ALM6ApM/VnXT2mP4kGigJmXvND5D2p74ZFJMdhpUywxqpTeN gGirlem2obqqSHtwT1eWHT8tiQePcB2WIseF0MkhC9AYheEPKBaP0Xavm8NQ0+D5QCxP pWYw== 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 s136-v6si644338pgc.7.2018.10.12.01.57.45; Fri, 12 Oct 2018 01:58:04 -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 S1728036AbeJLQ1b (ORCPT + 99 others); Fri, 12 Oct 2018 12:27:31 -0400 Received: from foss.arm.com ([217.140.101.70]:48060 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727705AbeJLQ1b (ORCPT ); Fri, 12 Oct 2018 12:27:31 -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 D46F6F; Fri, 12 Oct 2018 01:56:05 -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 A42C13F5D3; Fri, 12 Oct 2018 01:56:05 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 07B251AE2DA4; Fri, 12 Oct 2018 09:56:05 +0100 (BST) Date: Fri, 12 Oct 2018 09:56:05 +0100 From: Will Deacon To: Mark Rutland 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: <20181012085605.GB11847@arm.com> References: <20181005084754.20950-1-kristina.martsenko@arm.com> <20181005084754.20950-2-kristina.martsenko@arm.com> <20181011162814.GC17000@arm.com> <20181012085352.xi6rkcpm62iqd6ru@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181012085352.xi6rkcpm62iqd6ru@lakrids.cambridge.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 12, 2018 at 09:53:54AM +0100, Mark Rutland wrote: > 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. Fair enough, but if we grow a different EC for ESR_EL1 that uses encoding 0x09, this all falls apart. At the very list, maybe we should comment those that are EL2 or higher with /* EL2 and above */ or just fix the misnomer and drop the useless _ELx_ part of the names completely. Will