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=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 376E7C433DB for ; Tue, 9 Feb 2021 17:08:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DC7AA64E31 for ; Tue, 9 Feb 2021 17:08:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233134AbhBIRHx (ORCPT ); Tue, 9 Feb 2021 12:07:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:51914 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232990AbhBIRHl (ORCPT ); Tue, 9 Feb 2021 12:07:41 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5556D64E31; Tue, 9 Feb 2021 17:06:57 +0000 (UTC) Date: Tue, 9 Feb 2021 17:06:54 +0000 From: Catalin Marinas To: Andrey Konovalov Cc: Vincenzo Frascino , Linux ARM , LKML , kasan-dev , Andrew Morton , Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Lorenzo Pieralisi Subject: Re: [PATCH v12 7/7] kasan: don't run tests in async mode Message-ID: <20210209170654.GH1435@arm.com> References: <20210208165617.9977-1-vincenzo.frascino@arm.com> <20210208165617.9977-8-vincenzo.frascino@arm.com> <20210209120241.GF1435@arm.com> <0e373526-0fa8-c5c0-fb41-5c17aa47f07c@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 09, 2021 at 04:02:25PM +0100, Andrey Konovalov wrote: > On Tue, Feb 9, 2021 at 1:16 PM Vincenzo Frascino > wrote: > > On 2/9/21 12:02 PM, Catalin Marinas wrote: > > > On Mon, Feb 08, 2021 at 04:56:17PM +0000, Vincenzo Frascino wrote: > > >> diff --git a/lib/test_kasan.c b/lib/test_kasan.c > > >> index 7285dcf9fcc1..f82d9630cae1 100644 > > >> --- a/lib/test_kasan.c > > >> +++ b/lib/test_kasan.c > > >> @@ -51,6 +51,10 @@ static int kasan_test_init(struct kunit *test) > > >> kunit_err(test, "can't run KASAN tests with KASAN disabled"); > > >> return -1; > > >> } > > >> + if (kasan_flag_async) { > > >> + kunit_err(test, "can't run KASAN tests in async mode"); > > >> + return -1; > > >> + } > > >> > > >> multishot = kasan_save_enable_multi_shot(); > > >> hw_set_tagging_report_once(false); > > > > > > I think we can still run the kasan tests in async mode if we check the > > > TFSR_EL1 at the end of each test by calling mte_check_tfsr_exit(). > > > > > > > IIUC this was the plan for the future. But I let Andrey comment for more details. > > If it's possible to implement, then it would be good to have. Doesn't > have to be a part of this series though. I think it can be part of this series but after the 5.12 merging window (we are a few days away from final 5.11 and I don't think we should rush the MTE kernel async support in). It would be nice to have the kasan tests running with async by the time we merge the patches (at a quick look, I think it's possible but, of course, we may hit some blockers when implementing it). -- Catalin