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=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 930A5C433E0 for ; Fri, 22 Jan 2021 11:29:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 55832235E4 for ; Fri, 22 Jan 2021 11:29:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728309AbhAVL3j (ORCPT ); Fri, 22 Jan 2021 06:29:39 -0500 Received: from foss.arm.com ([217.140.110.172]:42258 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728253AbhAVLVn (ORCPT ); Fri, 22 Jan 2021 06:21:43 -0500 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 C691911D4; Fri, 22 Jan 2021 03:20:39 -0800 (PST) Received: from [10.37.8.28] (unknown [10.37.8.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D45203F719; Fri, 22 Jan 2021 03:20:37 -0800 (PST) Subject: Re: [PATCH v5 4/6] arm64: mte: Enable async tag check fault To: Andrey Konovalov Cc: Linux ARM , LKML , kasan-dev , Catalin Marinas , Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov References: <20210121163943.9889-1-vincenzo.frascino@arm.com> <20210121163943.9889-5-vincenzo.frascino@arm.com> From: Vincenzo Frascino Message-ID: <04eba2be-641b-ee23-7fa0-436c33168cd8@arm.com> Date: Fri, 22 Jan 2021 11:24:28 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/21/21 5:38 PM, Andrey Konovalov wrote: >> + if (unlikely(tfsr_el1 & SYS_TFSR_EL1_TF1)) { >> + /* >> + * Note: isb() is not required after this direct write >> + * because there is no indirect read subsequent to it >> + * (per ARM DDI 0487F.c table D13-1). >> + */ >> + write_sysreg_s(0, SYS_TFSR_EL1); >> + >> + kasan_report_async(); > Do we need a static bool reported like in do_tag_recovery() here? > I would say not because async mode does not get disabled after the first fault. -- Regards, Vincenzo