Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp508076pxk; Thu, 3 Sep 2020 05:53:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKT8zsX0+n0vHiITwHfWpRTFS2s+f9T1iJjefIMqWZDpdzOR9NSFDCQ+Gncfk/YuibaHd3 X-Received: by 2002:aa7:d6ce:: with SMTP id x14mr2933019edr.359.1599137606220; Thu, 03 Sep 2020 05:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599137606; cv=none; d=google.com; s=arc-20160816; b=us9kA9r7ENeAbCgADWuwf89enUBEW/r9Z4ImHjTA9zOCrweOqPjH9lhrh80OZFj1X4 gWO017kBm7lE5gYaYiSvAMjXl4X+9LtfFPq2ThGZ+23LEqVm83krhOkaEUv/Z4YpxCB4 jq9vvvvcjmoKSzx1wNnccc16EVKKeCb/byoaNmXPRzMzHsevuujbd8w1vECHrwEQ9+J6 k5edxKkA83ELoQXmbLcZY+J/Ltb7WNrBN1CaK4sv8ddV2lwk6IquhDy3c0Ynyj83s2qt 39EINS7k4JSWJ2hN2sifn2qS0U48x5y71LqsG1g9WTOq2mZ8YC3MQ+Nv7l2JcWX7ePO8 u3iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=C2d6QG1IblDeyroVtS3hMSNO/LsvLyKHGpkVymmB4pg=; b=JGQr/bCkqSP0GaucPM4UsdFI3mB95Yqv93Uy+me9QkZOG1fFHIZSvS7DfN4h9RNi7K PeEPQpVs3HE71j3oNZX3WRiAArJCKxkj1A0a4iJ571ZIVjdHLknuB11uDhZ+GkowSxHy OfQIwQaHaWNjE7vzAAowgTpeQvJLOCHIB6cwWk9Kk4VNf2ocnAQkzlnTvwIoJ6cAWdTH cDnfiRU4vKMTaT26+gH904SDo5iSugJXQAh35GDPRXMfVaWG0RNpOZWwj3+xmhL/LRd4 M3HVjDRFrC4iZTPxOs1eq+Dr5ebyu1Vyg+1gDPzLiwuR+amuM9EaejPT+C+VOrBuHCrD PN+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=l+VpGWun; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si482413edn.26.2020.09.03.05.53.03; Thu, 03 Sep 2020 05:53:26 -0700 (PDT) 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=@lca.pw header.s=google header.b=l+VpGWun; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728959AbgICMsy (ORCPT + 99 others); Thu, 3 Sep 2020 08:48:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728893AbgICMid (ORCPT ); Thu, 3 Sep 2020 08:38:33 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A5C0C061246 for ; Thu, 3 Sep 2020 05:38:33 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id e5so1723017qth.5 for ; Thu, 03 Sep 2020 05:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=C2d6QG1IblDeyroVtS3hMSNO/LsvLyKHGpkVymmB4pg=; b=l+VpGWunXGi10wTShVSflV5Z/zSRT8cCTRxA819xi63BVbtXqlDpnECjBDN7GsHK7z or/7Sqa1wMEMzBpsWVzrxXsFMyFqiWbufjImu+VlfgkFRZCjpHcxErVTGWkswDasZfQr 6yWHvRV1b8AQlYNlt89QWL9z+Q4EZpOls6QyvVy3ESS8+f+aqBaB8vcShXcMkuM19NnG p7mGV8w5kiUuRNUWzqMRO4W8fA5nR9arzaRRoe75UAP/QmfNfZLu/zF1Zi5HnyFyFN/I XfCL0idn3B2DF1Z7l3CRyneOXAHtA0bZYF7e2xSkOuCf2ax+VpT3DVFrFYwQFzAhADRE X7wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=C2d6QG1IblDeyroVtS3hMSNO/LsvLyKHGpkVymmB4pg=; b=jHMW2wkVDzhYvOIV5pwBfHUacJpmciv3GaEWF98C8ddoyTy3fnD3zy9/MxGGjGjK8s iF+WqUdj5wtlGlhkvNqmzV2YO/jKA99TqbkkTDJCztcRGmaStV5puEGnODIyYYmMMB5P m0rQgMXhS/i1rAD7/qOoyB7yfGB8gz/7wZWPL4vGCXA0E6bzkP5yhgm17TNcjPpJMOPb ARXEr0NAiPC/JxhaI/2CipaXDAsu+VqXTSf7bmgpT4Re6XubyCX2QdiWR00DPnW2b+vG +OqcI3Azk0STPiC1zvCQtJ2OQu7KVsA+v5EEFe1Cp82FbQbSy3V/9kjXveS8O8vVru9i T6tQ== X-Gm-Message-State: AOAM5334WjrqtkXceykAeAUJc/q/5ZcnUzffBd+Ofd2j1/2lrdIftbV/ YKEeO4YDprkaGlIEPDk/Nfa3sg== X-Received: by 2002:aed:2ce7:: with SMTP id g94mr3289809qtd.184.1599136711564; Thu, 03 Sep 2020 05:38:31 -0700 (PDT) Received: from lca.pw (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id r6sm2088194qkc.43.2020.09.03.05.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 05:38:30 -0700 (PDT) Date: Thu, 3 Sep 2020 08:38:25 -0400 From: Qian Cai To: skhan@linuxfoundation.org, sfr@canb.auug.org.au Cc: brendanhiggins@google.com, urielguajardo@google.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-next@vger.kernel.org Subject: Re: [PATCH 2/2] kunit: ubsan integration Message-ID: <20200903123824.GA4225@lca.pw> References: <20200806174326.3577537-1-urielguajardojr@gmail.com> <20200806174326.3577537-2-urielguajardojr@gmail.com> <20200902125223.GA5676@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200902125223.GA5676@lca.pw> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 02, 2020 at 08:52:24AM -0400, Qian Cai wrote: > On Thu, Aug 06, 2020 at 05:43:26PM +0000, Uriel Guajardo wrote: > > Integrates UBSAN into the KUnit testing framework. It fails KUnit tests > > whenever it reports undefined behavior. > > > > Signed-off-by: Uriel Guajardo > > It looks like this patch had been merged into linux-next but the "[PATCH 1/2] > kunit: support failure from dynamic analysis tools" did not. Hence, it caused a > compiling failure. > > lib/ubsan.c: In function ‘ubsan_prologue’: > lib/ubsan.c:141:2: error: implicit declaration of function ‘kunit_fail_current_test’; did you mean ‘kunit_init_test’? [-Werror=implicit-function-declaration] > kunit_fail_current_test(); > ^~~~~~~~~~~~~~~~~~~~~~~ > kunit_init_test > cc1: some warnings being treated as errors Stephen, Shuah, can you revert this commit or pick up its dependency as well? https://lore.kernel.org/linux-kselftest/20200813205722.1384108-1-urielguajardojr@gmail.com/ Still seeing this on today's linux-next build. > > > --- > > lib/ubsan.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/lib/ubsan.c b/lib/ubsan.c > > index cb9af3f6b77e..1460e2c828c8 100644 > > --- a/lib/ubsan.c > > +++ b/lib/ubsan.c > > @@ -14,6 +14,7 @@ > > #include > > #include > > #include > > +#include > > > > #include "ubsan.h" > > > > @@ -137,6 +138,7 @@ static void ubsan_prologue(struct source_location *loc, const char *reason) > > { > > current->in_ubsan++; > > > > + kunit_fail_current_test(); > > pr_err("========================================" > > "========================================\n"); > > pr_err("UBSAN: %s in %s:%d:%d\n", reason, loc->file_name, > > -- > > 2.28.0.163.g6104cc2f0b6-goog > >