Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3267785pxb; Fri, 12 Feb 2021 13:49:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFMR+nwX7ZYbeY14fTGRWDXbhT8qdJ7Bik4BZmU13cE1eV+lYTIp/MPdaccW9k1/ly8eGY X-Received: by 2002:a17:906:560b:: with SMTP id f11mr5108805ejq.162.1613166579286; Fri, 12 Feb 2021 13:49:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613166579; cv=none; d=google.com; s=arc-20160816; b=HNJa09cpsdjQZonrJsJLsh6/215hm+ZATCVdXf3y9NYfZrj92GIbP7vDdN7KmyDksF 0YyZCzA9K7rIKB5kfRYAIk28LvlID8u2Wq80ztWpRb0k32sST2YMFE2nWEeyxmDfbuux y3oUeo5Rs3bLNZ5kR9qZWpvZGozKdwvTIRfEFAC3v0cwj95f4WERVWJ7Mt/rsxBpncHX f729Lv5L5XihZ1WWaZ1S/zxXy1VhslZYXLVABaReSucNCxhBYNFJjt5a2Mx3nMB+fJHE 3UIjIjm6J/HMPaEa1yjs/FkeYo51GYz3fOfeyaxl0nuZ/krw0APOgA7otXE0ViWtmiIq RWEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9lL2r/Ey+YYeyZvvoc/iJkTezo+Dg1gXvxnIcJaEP3o=; b=mImYqan6McgA+vC9UIREvfF63PP1kQe1fIT/cY5hauZvzcFd4T+IEOfd1yvgazX1l3 O+2ait6pfmJvZ6pX1yfGOG4A7FGym43zixSXmRQrWAverZTGKdodQRsLi3oJI/795o/B w1BF0Pd2RSo8DvmHmVZsRJmzukR9uwuubKlWOvEjOiTv8PzTR4KGwNKby68HKXPmS/F8 Qb6lT+z64DBwsIRY5zHtXmiHOZHXUtdv4rbXBoaBX3ZgxqylfiWXZP1hxE1BTL7x5rs+ Cpl8+m9k05EF+3vApQwqNvoA26u2cs9sjdk2knOzmSKWXcE+ATHoWC3SJpUp1uoxFwCn QL+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fqnpY2LT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci1si7059253ejc.348.2021.02.12.13.49.13; Fri, 12 Feb 2021 13:49:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fqnpY2LT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231649AbhBLVpo (ORCPT + 99 others); Fri, 12 Feb 2021 16:45:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229923AbhBLVpn (ORCPT ); Fri, 12 Feb 2021 16:45:43 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54E95C061574 for ; Fri, 12 Feb 2021 13:45:03 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id d2so378182pjs.4 for ; Fri, 12 Feb 2021 13:45:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9lL2r/Ey+YYeyZvvoc/iJkTezo+Dg1gXvxnIcJaEP3o=; b=fqnpY2LTk6Zsf/0+gk4cZNkiRQa9ox4GWv28mE+3MrRnQ3ZfHCbkJ1FsxOJDLTbT/5 lg9DkNp9poT4rzBrcie54CgkuC7jJqbLnaq7nFUbUdzH3BR3e1wVi47kGPALDqvFui+8 RJPGrCqA73nJPeDsR7aVEBjJiBTbIiiEp/h1vApnRiXRvOorZdPU7ILlBfC2SwCsYH0g U3jo/lC0FDaJYub6uo3nZM6RlUQKi1Y3EXmNWh1F/3xLZwbJShTWqVi6iOcMtwVIzbQV n7LCOHzPzAjDZAySpkXtBLiTQ4Hrc2OqXVRDbkAt/BsheLfj05oNw7kRfY+6Yfgv0P6u sWkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9lL2r/Ey+YYeyZvvoc/iJkTezo+Dg1gXvxnIcJaEP3o=; b=PkwFcOOuqrh5POFvvbgBkyzFfxWPGYZHwWDINUpyjaJXlPv1XIKM8Pc12hA0e85uf1 5JAR2DTQNWG84ZYFtIq8PWa4a56v8vQioJ76NKJXPuG8n8PawTBpbDI7AEfB+dKdhfy5 D1GD+8dzof4i7kptQmrtWqykGs+bTVaVNvthbPfWXNPxdw3FGFsO2g7xu1dVaNjNlg1T orRp2dRhNuRgHxiOmelouy+40hdRewMBkP76nxHsDnK5fmpLSVt0za8Q6WyoYRCF51pJ nwpq/BEbr2CPuzyTzhvKkhwkqQeD4M1JA7WAm/Fq5iH2Ysj9xG1Dt60NvR93SE9lp/fA 12Dw== X-Gm-Message-State: AOAM5320YcwYbiQroy70w+ga8gr7pVSMoskTwv0ri3h8Cm6xK8TuVMJq oWRHodX+RlNi4y9F16LiRuYiXU9NngKKHW89sN2/+w== X-Received: by 2002:a17:90a:9ac:: with SMTP id 41mr4510715pjo.136.1613166302591; Fri, 12 Feb 2021 13:45:02 -0800 (PST) MIME-Version: 1.0 References: <20210211153353.29094-1-vincenzo.frascino@arm.com> <20210211153353.29094-8-vincenzo.frascino@arm.com> <20210212172224.GF7718@arm.com> In-Reply-To: <20210212172224.GF7718@arm.com> From: Andrey Konovalov Date: Fri, 12 Feb 2021 22:44:51 +0100 Message-ID: Subject: Re: [PATCH v13 7/7] kasan: don't run tests in async mode To: Catalin Marinas , Vincenzo Frascino Cc: Linux ARM , LKML , kasan-dev , Andrew Morton , Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Lorenzo Pieralisi Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 12, 2021 at 6:22 PM Catalin Marinas wrote: > > On Thu, Feb 11, 2021 at 03:33:53PM +0000, Vincenzo Frascino wrote: > > From: Andrey Konovalov > > > > Asynchronous KASAN mode doesn't guarantee that a tag fault will be > > detected immediately and causes tests to fail. Forbid running them > > in asynchronous mode. > > > > Signed-off-by: Andrey Konovalov > > Signed-off-by: Vincenzo Frascino > > --- > > lib/test_kasan.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/lib/test_kasan.c b/lib/test_kasan.c > > index f8c72d3aed64..77a60592d350 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; > > + } > > I think we have time to fix this properly ;), so I'd rather not add this > patch at all. Yeah, this patch can be dropped. I have a prototype of async support for tests working. I'll apply it on top of the next version Vincenzo posts and share the patch. Vincenzo, when you post the next version, please make sure you rebase on top of the mm tree version that includes "kasan: export HW_TAGS symbols for KUnit tests" (linux-next/akpm doesn't yet have it).