From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by sourceware.org (Postfix) with ESMTPS id 3E072388A42E for ; Mon, 30 Nov 2020 12:51:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3E072388A42E Received: from gaia (unknown [95.146.230.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2055820691; Mon, 30 Nov 2020 12:51:53 +0000 (UTC) Date: Mon, 30 Nov 2020 12:51:51 +0000 From: Catalin Marinas To: Florian Weimer , Evgenii Stepanov , Kostya Serebryany , Dave Martin , Szabolcs Nagy , Vincenzo Frascino , Peter Collingbourne Cc: Will Deacon , linux-api@vger.kernel.org, libc-alpha@sourceware.org, Andrey Konovalov , Linux ARM , Kevin Brodsky Subject: Re: [PATCH v4 1/2] arm64: mte: make the per-task SCTLR_EL1 field usable elsewhere Message-ID: <20201130125151.GD3902@gaia> References: <160650438443.22092.12368244632759393865.b4-ty@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <160650438443.22092.12368244632759393865.b4-ty@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_MANYTO, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2020 12:51:58 -0000 Hi Peter, On Fri, Nov 27, 2020 at 07:13:43PM +0000, Catalin Marinas wrote: > On Thu, 19 Nov 2020 19:29:46 -0800, Peter Collingbourne wrote: > > In an upcoming change we are going to introduce per-task SCTLR_EL1 > > bits for PAC. Move the existing per-task SCTLR_EL1 field out of the > > MTE-specific code so that we will be able to use it from both the > > PAC and MTE code paths and make the task switching code more efficient. > > Applied to arm64 (for-next/pac-keys-ctrl), thanks! > > [1/2] arm64: mte: make the per-task SCTLR_EL1 field usable elsewhere > https://git.kernel.org/arm64/c/e710c29e0177 > [2/2] arm64: Introduce prctl(PR_PAC_{SET,GET}_ENABLED_KEYS) > https://git.kernel.org/arm64/c/284c64e9eba3 > > If Dave has any other comments next week, we can apply them on top. I'm dropping these patches from the arm64 tree as they conflict (and not in a trivial way) with the MTE patches queued in the mm tree. So we either wait until 5.12 or we try to merge them via Andrew on top of the mm tree. Given the interaction with MTE, I'm slightly inclined towards the former. -- Catalin