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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00F20C761A6 for ; Wed, 29 Mar 2023 20:21:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229481AbjC2UV4 (ORCPT ); Wed, 29 Mar 2023 16:21:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjC2UVz (ORCPT ); Wed, 29 Mar 2023 16:21:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3B2E2D48 for ; Wed, 29 Mar 2023 13:21:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 473A2B8235A for ; Wed, 29 Mar 2023 20:21:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F41AAC433D2; Wed, 29 Mar 2023 20:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1680121311; bh=9JIJu0bX4AdCWRaLehVef0Y7GGvi9OIteYZVGC36w8Y=; h=Date:To:From:Subject:From; b=k7lJzusEEw4uDb9q8O2RTK0Shtu0x/8bLaWdbXHRE7s38nGDVRz293z7NJO2caN1r 9rmJ4yVo6zjvtthyAmOpvgodfUMeVRh4zdTvK62tWmPrTRlfTHaMnTq0uIpXlDGjaN 0whC21WK8CvTlZ1U5yktQQoWX1Ue7tbBWvP9myNE= Date: Wed, 29 Mar 2023 13:21:50 -0700 To: mm-commits@vger.kernel.org, will@kernel.org, vincenzo.frascino@arm.com, ryabinin.a.a@gmail.com, pcc@google.com, ouyangweizhao@zeku.com, glider@google.com, eugenis@google.com, elver@google.com, dvyukov@google.com, catalin.marinas@arm.com, andreyknvl@google.com, akpm@linux-foundation.org From: Andrew Morton Subject: + arm64-mte-rename-tco-routines-v2.patch added to mm-unstable branch Message-Id: <20230329202150.F41AAC433D2@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: arm64: mte: rename TCO routines has been added to the -mm mm-unstable branch. Its filename is arm64-mte-rename-tco-routines-v2.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/arm64-mte-rename-tco-routines-v2.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrey Konovalov Subject: arm64: mte: rename TCO routines Date: Wed, 29 Mar 2023 20:37:46 +0200 drop __ from mte_disable/enable_tco names, as those functions are to be exported to KASAN code Link: https://lkml.kernel.org/r/74d26337b2360733956114069e96ff11c296a944.1680114854.git.andreyknvl@google.com Signed-off-by: Vincenzo Frascino Signed-off-by: Catalin Marinas Signed-off-by: Andrey Konovalov Cc: Will Deacon Cc: Alexander Potapenko Cc: Andrey Ryabinin Cc: Dmitry Vyukov Cc: Evgenii Stepanov Cc: Marco Elver Cc: Peter Collingbourne Cc: Weizhao Ouyang Signed-off-by: Andrew Morton --- arch/arm64/include/asm/mte-kasan.h | 12 ++++++------ arch/arm64/include/asm/uaccess.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) --- a/arch/arm64/include/asm/mte-kasan.h~arm64-mte-rename-tco-routines-v2 +++ a/arch/arm64/include/asm/mte-kasan.h @@ -51,13 +51,13 @@ static inline bool system_uses_mte_async * The Tag check override (TCO) bit disables temporarily the tag checking * preventing the issue. */ -static inline void __mte_disable_tco(void) +static inline void mte_disable_tco(void) { asm volatile(ALTERNATIVE("nop", SET_PSTATE_TCO(0), ARM64_MTE, CONFIG_KASAN_HW_TAGS)); } -static inline void __mte_enable_tco(void) +static inline void mte_enable_tco(void) { asm volatile(ALTERNATIVE("nop", SET_PSTATE_TCO(1), ARM64_MTE, CONFIG_KASAN_HW_TAGS)); @@ -71,13 +71,13 @@ static inline void __mte_enable_tco(void static inline void __mte_disable_tco_async(void) { if (system_uses_mte_async_or_asymm_mode()) - __mte_disable_tco(); + mte_disable_tco(); } static inline void __mte_enable_tco_async(void) { if (system_uses_mte_async_or_asymm_mode()) - __mte_enable_tco(); + mte_enable_tco(); } /* @@ -203,11 +203,11 @@ void mte_enable_kernel_asymm(void); #else /* CONFIG_ARM64_MTE */ -static inline void __mte_disable_tco(void) +static inline void mte_disable_tco(void) { } -static inline void __mte_enable_tco(void) +static inline void mte_enable_tco(void) { } --- a/arch/arm64/include/asm/uaccess.h~arm64-mte-rename-tco-routines-v2 +++ a/arch/arm64/include/asm/uaccess.h @@ -138,7 +138,7 @@ static inline void __uaccess_enable_hw_p static inline void uaccess_disable_privileged(void) { - __mte_disable_tco(); + mte_disable_tco(); if (uaccess_ttbr0_disable()) return; @@ -148,7 +148,7 @@ static inline void uaccess_disable_privi static inline void uaccess_enable_privileged(void) { - __mte_enable_tco(); + mte_enable_tco(); if (uaccess_ttbr0_enable()) return; _ Patches currently in -mm which might be from andreyknvl@google.com are kasan-drop-empty-tagging-related-defines.patch kasan-arm64-rename-tagging-related-routines.patch arm64-mte-rename-tco-routines-v2.patch kasan-arm64-add-arch_suppress_tag_checks_start-stop.patch kasan-arm64-add-arch_suppress_tag_checks_start-stop-v2.patch kasan-suppress-recursive-reports-for-hw_tags.patch kasan-suppress-recursive-reports-for-hw_tags-v2.patch kcov-improve-documentation.patch kcov-improve-documentation-v2.patch kcov-improve-documentation-v3.patch