Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4097384rdb; Mon, 11 Dec 2023 08:45:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyHvIL+VJX5TGcUWHzRp12zBRqDpVl+dBxOZUpD4H/0O4h37+4wnfJ7sB5y+Dsb5AQc/57 X-Received: by 2002:a92:2809:0:b0:35d:59a2:3337 with SMTP id l9-20020a922809000000b0035d59a23337mr5807015ilf.59.1702313133179; Mon, 11 Dec 2023 08:45:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702313133; cv=none; d=google.com; s=arc-20160816; b=f9qc3/uTV8jiK99xa0mWtBjV2/BEcfRzwYou6dczHxcQ1jvctI4NJTJChtOkt7JNBJ naCx58u9J+s4WfQMLOlJIqHaQlps+ajJEYOY+9127lMciltH5Y6GVxVyiSO/1vItz4lQ rRTTXGGuxdwJAx1Ya5mNbrWt0+haEn6dtAB/lBe4s22kzKlFFrkzzO5KiGClRn1JvwXB PVKNz3FYos0PmDZWKcMC00LTOvvvNmbrF5kKpxeI3pC6xBWKhjPkZ/E0ZXb+mv5ZfR32 0hm6KhR0Ni5qaI14zRS/0oty2wZEUbH/6dblWVVz1ylzWqQo1syHsv9TBRR2D/2cASsB 0QyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=i7+HUN9YymZ4vhBFtbMavTxW/F7DkeQt7GVW2zJaY3Y=; fh=gHaoT4XMlFH9UYc+/4XPK2hvhU7RMe3yZ8NuTuxuoyo=; b=m64D9WkQzvxNFnxQnhcATDVhHvVbmj91sVysQmu5T/NGkA60z4O4XI2CIh1eYD6vnU YVcBmddYhrYovvpoyo6YYlJo0OiDrtLyFET/I/9mzoaxBqNnCakLGV//3NYVcxTBMtMX QuZWSndPlxH7w4TaRxj/KRc6e4pT/XDRXfVsG5klz+tA3O8LPVcNEnpflWY37MZ+Swk1 RuOwAngms1ZpsR9+54uM/Sp7XheZe7ABoM30DUUD8hyBGSoTAao8vGs1rpbEH7BXOEvf fIFshX+isVj7p6qP0uSrwGPhHRo9GZyPgMnn8Wxi/de7hELviaNsFMwXaA405hopihy0 rgaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tum.de header.s=tu-postout21 header.b=mlVfJUG6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tum.de Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o9-20020a634e49000000b005c2791fedb1si5557346pgl.874.2023.12.11.08.45.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:45:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@tum.de header.s=tu-postout21 header.b=mlVfJUG6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tum.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9105C8056983; Mon, 11 Dec 2023 08:45:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234989AbjLKQpU (ORCPT + 99 others); Mon, 11 Dec 2023 11:45:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234965AbjLKQpS (ORCPT ); Mon, 11 Dec 2023 11:45:18 -0500 X-Greylist: delayed 441 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 11 Dec 2023 08:45:20 PST Received: from postout2.mail.lrz.de (postout2.mail.lrz.de [129.187.255.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 846B5D2; Mon, 11 Dec 2023 08:45:20 -0800 (PST) Received: from lxmhs52.srv.lrz.de (localhost [127.0.0.1]) by postout2.mail.lrz.de (Postfix) with ESMTP id 4SpnV85qdXzyVM; Mon, 11 Dec 2023 17:37:52 +0100 (CET) Authentication-Results: postout.lrz.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=tum.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tum.de; h= in-reply-to:content-disposition:content-type:content-type :mime-version:references:message-id:subject:subject:from:from :date:date:received:received; s=tu-postout21; t=1702312671; bh=I QZ37jqHjRiCVAog/SxFby9In37jtg4+0rtjT7Qm7bQ=; b=mlVfJUG6uMk6HCn0w GE8s0S6afNDFSYXDag/1mnxPJU83BIHAt5ccF6i6+x4q+kPHXTfqbpKUI9Ps+DAF 7D8eu4qS/ue6gZ+7mSqzxmc2IjIlsroDoEui4w3/8jgYSWMiAGjcFqJnh/DPmCFp Q7CQReOfLxA6F1jgf5NtgCYPReIDWM0YfYvjGSgEGEnhblaq/CUnk9ORGvG5I7F0 kwCPNTX2zDiMKPtA3/f7awuim9OgqtxoQ7x9Fp6M++kSsdq2glcx6ocd8eQ8FnQx Nkhv+Ky1mpE0itBEcrGbXhyyAWvWyBF7TMZjun8sFCHHOrMNirXCaG80D1y6x/K9 eW/BA== X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs52.srv.lrz.de X-Spam-Score: -2.883 X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from postout2.mail.lrz.de ([127.0.0.1]) by lxmhs52.srv.lrz.de (lxmhs52.srv.lrz.de [127.0.0.1]) (amavisd-new, port 20024) with LMTP id qxvPLSwCoF-F; Mon, 11 Dec 2023 17:37:51 +0100 (CET) Received: from Monitor.dos.cit.tum.de (Monitor.dos.cit.tum.de [IPv6:2a09:80c0:38::165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by postout2.mail.lrz.de (Postfix) with ESMTPSA id 4SpnV65Z38zyTN; Mon, 11 Dec 2023 17:37:50 +0100 (CET) Date: Mon, 11 Dec 2023 17:37:38 +0100 From: Paul =?utf-8?Q?Heidekr=C3=BCger?= To: Steven Rostedt Cc: Peter Collingbourne , Marco Elver , andrey.konovalov@linux.dev, Andrew Morton , Andrey Konovalov , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov , Masami Hiramatsu , linux-trace-kernel@vger.kernel.org, Nick Desaulniers Subject: Re: [PATCH v3 1/3] kasan: switch kunit tests to console tracepoints Message-ID: References: <20230215143306.2d563215@rorschach.local.home> <20230505095805.759153de@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230505095805.759153de@gandalf.local.home> X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 11 Dec 2023 08:45:30 -0800 (PST) Hi all! On 05.05.2023 09:58, Steven Rostedt wrote: > On Mon, 1 May 2023 15:02:37 -0700 > Peter Collingbourne wrote: > > > > > "ftrace" is really for just the function tracing, but CONFIG_FTRACE > > > > really should just be for the function tracing infrastructure, and > > > > perhaps not even include trace events :-/ But at the time it was > > > > created, it was for all the "tracers" (this was added before trace > > > > events). > > > > > > It would be great to see this cleaned up. I found this aspect of how > > > tracing works rather confusing. > > > > > > So do you think it makes sense for the KASAN tests to "select TRACING" > > > for now if the code depends on the trace event infrastructure? > > > > Any thoughts? It looks like someone else got tripped up by this: > > https://reviews.llvm.org/D144057 > > Yeah, it really does need to get cleaned up, but unfortunately it's not > going to be a trivial change. We need to make sure it's done in a way that > an old .config still keeps the same things enabled with the new config > settings. That takes some trickery in the dependency. > > I'll add this to my todo list, hopefully it doesn't fall into the abyss > portion of that list :-p > > -- Steve Just adding to Peter's concern re: CONFIG_KASAN_KUNIT_TEST's dependency on CONFIG_TRACEPOINTS. I'm having no luck running the KASan KUnit tests on arm64 with the following .kunitconfig on v6.6.0: CONFIG_KUNIT=y CONFIG_KUNIT_ALL_TESTS=n CONFIG_DEBUG_KERNEL=y CONFIG_KASAN=y CINFIG_KASAN_GENERIC=y CONFIG_KASAN_KUNIT_TEST=y CONFIG_TRACEPOINTS, which CONFIG_KASAN_TEST relies on since the patch this thread is based on, isn't defined for arm64, AFAICT. If I comment out the dependency on CONFIG_TRACEPOINTS, the tests appear to run, but KUnit isn't picking up the KASan output. If I revert the patch, the above .kunitconfig appears to work fine on arm64 and the tests pass. The above .kunitconfig works as intended on X86, no changes necessary. Am I missing something? Many thanks, Paul