Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3112317pxb; Fri, 12 Feb 2021 09:25:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2LMngjI4cANELDYowWi0781b8CcrmBKzeOGMuXTJ/ehgTdtJ2DlSheGiHHIxVBpxNqS+6 X-Received: by 2002:aa7:d513:: with SMTP id y19mr4501526edq.229.1613150745758; Fri, 12 Feb 2021 09:25:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613150745; cv=none; d=google.com; s=arc-20160816; b=cr50Yk39+LfbnCcJHE66dHHP8CPHd0ADmUcvgh3riI5BHCHAax1ZejN1Z0AZf77GHG YtoYesavjpp3l5kdty3O1BXnKkFW5UCWPWll011OIoSEhWGRHUZove9FwS5tKBQHj4VE DvZCPv55AivB0CSg1nht1d54gLLiT6tzleFkRK5kp+N689c7bAXnmeCv2BX2WgZLJNIS IFd/aUxWMYHsevpmT+iLp8E+SzAeTdn6E6nHJqnFPbPl45oKeIYyx9vWNniqulqDfs58 WyEj9ldKv9jKOt9jb2Ue5H3dcz/hdKX2O9UTpaGdzw1+/V/bH5akvD/JaNzQzmCLIKR/ UTtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ekVpmv9Swr7Y1hOAz4CbvmvjT1UQ9s7bVnQP7oaGKFE=; b=L4S+qNWRyQ0/HfIyRtZFu3GoY/VkIlIlRLlJaiTiwK2HapPZC5EHewd8L2meUMda/C AritaE87y3Fz860wLqNPXisy7mh113fWcnA0iCeySxa7zIvHljNDQ5bRlyiRIE0U3Y45 PxEVWCdlXmjk6jmT/n2Sqb6BEky469Z7VBcR/H4SjpZj9d8yZ0SNX9hatmRYCrduZwl4 TpZqBGmK9jKFMJV1CxyViZe+V/KVYr7cBSYiFVpOiiTuoNzad83j9vjnLp8KXqAV55Jq MK26NBppx6NwGNStEIovKh1OQ1nfhJGskrEeFsl4lm2u7kmgXxl3+twVYLegMxZeSpO4 /zhQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp13si2015187ejc.24.2021.02.12.09.25.22; Fri, 12 Feb 2021 09:25:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231131AbhBLRXM (ORCPT + 99 others); Fri, 12 Feb 2021 12:23:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:43636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229796AbhBLRXJ (ORCPT ); Fri, 12 Feb 2021 12:23:09 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3912064E42; Fri, 12 Feb 2021 17:22:27 +0000 (UTC) Date: Fri, 12 Feb 2021 17:22:24 +0000 From: Catalin Marinas To: Vincenzo Frascino Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, Andrew Morton , Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Andrey Konovalov , Lorenzo Pieralisi Subject: Re: [PATCH v13 7/7] kasan: don't run tests in async mode Message-ID: <20210212172224.GF7718@arm.com> References: <20210211153353.29094-1-vincenzo.frascino@arm.com> <20210211153353.29094-8-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210211153353.29094-8-vincenzo.frascino@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Catalin