From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2EE3C433DB for ; Tue, 26 Jan 2021 12:52:36 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 52BA523104 for ; Tue, 26 Jan 2021 12:52:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 52BA523104 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DleupjmgFsgXUCIXA/0G9YhQEWd+8aaq5510eLkJ7Ps=; b=SFmHu7Pok9b2IqwK4jcdBOxnA bVaApI27Mrg1WTrh/S7d9i9nzyw+8NWhQ99dfTK+0sDan9zke/jsRvj7JJ7dOlQDeyte3zGb0avdN jDUSM62Vg406SDSZebBVJEeysIidf7PmoxlPs7+WERYA5UuxvrYQ1IJQbutvGcyNKZBRGVZDTt77T 82Qe4CC4oeMTYZEqrX8L4fN9fRHWL6vEJlISiaqVpDRmTsvKQNAWZey2MbiLsvY43FUeBwRI7wlM7 gD1Gcwj/pbD/j6VYiU1ZQmlP9epZUZ+FWHRCCYWKSgR/1NWJnuQ+2fcbTiKkdCVAykmXBonOr5K1p TCzcOTRjA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4Nnw-000392-MH; Tue, 26 Jan 2021 12:50:44 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4NnL-0002uC-4d for linux-arm-kernel@lists.infradead.org; Tue, 26 Jan 2021 12:50:19 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id A3F3C23104; Tue, 26 Jan 2021 12:50:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611665404; bh=q4oX4T75qfWKcUAgbiXEqfTO9YmhG1JKbBL7GViYtBc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FmCIdX4lGOs1R9IlyfQiNrg6I8Ou07qJVfH09b0Pa49T66g+MTZ0xcy5oy7kSqiW1 LkA4XAoYk/G5uNoAUcBBM36WIhkqLwo0x/sYNwgE+yt8TZVxT/9bnu3eUT3Cuswqvd amncBSy78benJWebvhPeu5eyFnL0pcqDbjG61R+yvjRvHXL+QGEfm4U8aRc9hIZCVi FZVm/dzxoeMiV/6QH9ch8Ifgqv+fZ6o3cJZHVRy/+zAQLSucRiVKhwUQ+fxHPPg3yr rOvVjtW/5Gv9ZUz4qfgqPcpImhW5jNxiKxMl1mUjKsaxbFI/EBDrEHXK2PHu7hP5kj obvZA2Tia2egA== Date: Tue, 26 Jan 2021 12:49:59 +0000 From: Will Deacon To: Peter Collingbourne Subject: Re: [PATCH v6 1/3] arm64: mte: make the per-task SCTLR_EL1 field usable elsewhere Message-ID: <20210126124958.GC29702@willie-the-truck> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210126_075007_569304_49FA1B7F X-CRM114-Status: GOOD ( 15.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: libc-alpha@sourceware.org, Szabolcs Nagy , Catalin Marinas , Kevin Brodsky , linux-api@vger.kernel.org, Kostya Serebryany , Florian Weimer , Linux ARM , Andrey Konovalov , Vincenzo Frascino , Dave Martin , Evgenii Stepanov Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Dec 29, 2020 at 10:59:13PM -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. > > Signed-off-by: Peter Collingbourne > Link: https://linux-review.googlesource.com/id/Ic65fac78a7926168fa68f9e8da591c9e04ff7278 > --- > arch/arm64/Kconfig | 4 +++ > arch/arm64/include/asm/mte.h | 4 --- > arch/arm64/include/asm/processor.h | 10 ++++++- > arch/arm64/kernel/mte.c | 47 ++++++------------------------ > arch/arm64/kernel/process.c | 34 +++++++++++++++++---- > 5 files changed, 50 insertions(+), 49 deletions(-) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 05e17351e4f3..82e38d1ca012 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -348,6 +348,9 @@ config KASAN_SHADOW_OFFSET > default 0xeffffff800000000 if ARM64_VA_BITS_36 && KASAN_SW_TAGS > default 0xffffffffffffffff > > +config ARM64_NEED_SCTLR_USER > + bool > + > source "arch/arm64/Kconfig.platforms" > > menu "Kernel Features" > @@ -1653,6 +1656,7 @@ config ARM64_MTE > # Required for tag checking in the uaccess routines > depends on ARM64_PAN > select ARCH_USES_HIGH_VMA_FLAGS > + select ARM64_NEED_SCTLR_USER I'm not sure I'd bother with this; is it the end of the world if we do this unconditionally? Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel