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=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 33138C07E9A for ; Wed, 14 Jul 2021 14:40:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F2F6661369 for ; Wed, 14 Jul 2021 14:40:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2F6661369 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com 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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=oLukwSwbRgy71v1PE100PSa97V640lZRpIcdd9SIU/A=; b=SN+5yLfzNVyCY5 muxqOrD65c+ApNYnXvgRBGsubDt82e/ATHC9ezFIU4acONCDQyaul/W9IHb9xBEtIsKOugVJpnZir 6dCu03QS+TmDOP0Rd/hnb7/AUc4HntNr+r6au7dlowtoRdS0ahZmW1Ce/F7w5g6un9lJXcOkHQI/p oQnEjHiqtu8Gq88ibQBvSXIaaDR6kVN57RJSijBULns3ErJAStwU2oycTqnlfJshbmWzYeeGI52Ml a1011bCtfkAHrAwhx65uKPZnqZSTQ2ALei0EzS7Ug5SqdhGRA+WbNUbnTYz5LjkSHbePDgEy1wOXK FkQy3M9p72IGvW0lilmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3g2J-00Dry9-Sz; Wed, 14 Jul 2021 14:38:56 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3g2G-00Drwv-2T for linux-arm-kernel@lists.infradead.org; Wed, 14 Jul 2021 14:38:53 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D569731B; Wed, 14 Jul 2021 07:38:49 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 842633F694; Wed, 14 Jul 2021 07:38:48 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org Cc: andreyknvl@gmail.com, catalin.marinas@arm.com, dvyukov@google.com, glider@google.com, mark.rutland@arm.com, pcc@google.com, ryabinin.a.a@gmail.com, vincenzo.frascino@arm.com, will@kernel.org Subject: [PATCH 0/3] arm64: MTE cleanups Date: Wed, 14 Jul 2021 15:38:40 +0100 Message-Id: <20210714143843.56537-1-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210714_073852_203755_5BB7BCAD X-CRM114-Status: GOOD ( 11.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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 While working on moving the MTE entry code over to C, I spotted a few things that could be improved more generally. The first patch is a fix for a potential issue in some kernel configurations, the second avoids redundant work to generate and load a compile-time constant, and the third removes some redundant infrastructure for suprressing fault reporting which made the architectural fault handling code confusing. The entry bits may conflict with Peter's concurrent rework there; I can rebase this series as required. Thanks, Mark. Mark Rutland (3): arm64: mte: fix restoration of GCR_EL1 from suspend arm64: kasan: mte: use a constant kernel GCR_EL1 value arm64: kasan: mte: remove redundant mte_report_once logic arch/arm64/include/asm/memory.h | 2 -- arch/arm64/include/asm/mte-kasan.h | 17 ------------ arch/arm64/include/asm/mte.h | 6 ----- arch/arm64/include/asm/sysreg.h | 16 +++++++++++ arch/arm64/kernel/entry.S | 5 ++-- arch/arm64/kernel/mte.c | 54 -------------------------------------- arch/arm64/kernel/suspend.c | 1 - arch/arm64/mm/fault.c | 15 +---------- arch/arm64/mm/proc.S | 3 +-- include/linux/kasan-tags.h | 15 +++++++++++ lib/test_kasan.c | 2 -- mm/kasan/hw_tags.c | 8 ------ mm/kasan/kasan.h | 22 +--------------- 13 files changed, 36 insertions(+), 130 deletions(-) create mode 100644 include/linux/kasan-tags.h -- 2.11.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel