Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4177095rdb; Mon, 11 Dec 2023 10:59:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeDyTclteWCihusZr61FZyD20G76/GxhOPnpfKAGGaxNavALNXjLxsumuAHq5dCqjwrOe8 X-Received: by 2002:a05:6a00:1c87:b0:6ce:7d6f:cf4d with SMTP id y7-20020a056a001c8700b006ce7d6fcf4dmr2585347pfw.54.1702321176999; Mon, 11 Dec 2023 10:59:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702321176; cv=none; d=google.com; s=arc-20160816; b=unpld6m+GiypMWKTX0wBYbfCTF6pm0+bYQatdUaQvn9JBkfhfJFtVnTuCUlMyYGACM WAyMdTSOc4fnvL6mcKpx8aCSiHFz+Rf/i284ZcjvRs/aBfyyUqDotBRzGg0OdVX2M0lf RAHSzEYWNG1T2l8m5AU6UUe3EH0qHUXDXDWsDtMpCoq4VoLgGH138N1v1u7p3AKp46N0 iAtIxJKAIvFfxIi+UhrWyIHeBOnxvtJTgggrOxaJxrinwHIxxnKplSxlFWvQl85gV54r 5+19MBJYypc+T0KB80ZCqp0P2dpwhUBvRhF5a1B6PEH2fNDmaGW011MvDVdeAAuRrN1u iulA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KggLwwMr4K2s7yjk+3jiz5Ko6D5Gf137eV//dqR0DIY=; fh=DaPmRuawHnAU18yOIjRFb3bKY82uB1AyEdAq5zDOlGw=; b=bG7Kvl3E8B3axRYto9B2LlGvq6RjKH+1COo+/htSLiT0gJg7MDKpAWdA+BN5j7ovNQ +IMs2q0aGMhkKjHOa8khDPILfp64jiVOEQ7xlpYvsT316LoOLAPm1fVi52noF7nz1EwD AvuJNkAjBjUS4Ot1IYnu7NwTNxtH08UZ1BdaU55qTk5oilyOENjlwBvbUXt3ZR2Xo3fQ BRwSBLSyHe0e7mWr5/OsoEz9xZ+aKznBR51gbGBirpVe7x+VhaMbKbjpIxIJoRBcbsWF ElKUvMYl58bcOL9cZFkwtJZF+PoYQgqzXea3424F+QN0CqxSdOFt1lfzEc9Zi28E1O/1 +8SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tum.de header.s=tu-postout21 header.b=OD+eLULt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bv186-20020a632ec3000000b005859aec9406si6445991pgb.16.2023.12.11.10.59.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 10:59:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@tum.de header.s=tu-postout21 header.b=OD+eLULt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 09763805E033; Mon, 11 Dec 2023 10:59:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344328AbjLKS7S (ORCPT + 99 others); Mon, 11 Dec 2023 13:59:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbjLKS7R (ORCPT ); Mon, 11 Dec 2023 13:59:17 -0500 Received: from postout1.mail.lrz.de (postout1.mail.lrz.de [129.187.255.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD920B4; Mon, 11 Dec 2023 10:59:21 -0800 (PST) Received: from lxmhs51.srv.lrz.de (localhost [127.0.0.1]) by postout1.mail.lrz.de (Postfix) with ESMTP id 4SprdL22mNzyTc; Mon, 11 Dec 2023 19:59:18 +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-transfer-encoding:content-disposition :content-type:content-type:mime-version:references:message-id :subject:subject:from:from:date:date:received:received; s= tu-postout21; t=1702321156; bh=wzxkPiBTm3s8ZGp87MxJnVY/QY6RAgQlb fQjTK03dlg=; b=OD+eLULtQirJNVgNfxfD5We9/CnESR3bql7En7h6xjEkCVHqJ /VnNO/xymw6jV9CfXtOQyeeqS22wLqXgnd0Mq+Zm9Ur9sABCAwx0YxqyuXyQvbkU xnIClFKRbPMemo/qb8gb8lN9Ll65aFOCsWRgtrIAF1/0IBT89rB6gC4T6PZbMYph AeHr1LiiRx3Hk4ieM3JCyf727JUcWNSvr6G8Rhxo2oLzKBO4qThwZjRa/kz+6vtm zhOKYbsv2NIgrXkIwyTJY7NT7e5eJ0oK7GAGnRpFMrN51gNd57G8spCj4GjZldHF sIW2SInC3qweh6Larylr9jRDyDS2GnKuyHzMw== X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs51.srv.lrz.de X-Spam-Score: -2.881 X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 Received: from postout1.mail.lrz.de ([127.0.0.1]) by lxmhs51.srv.lrz.de (lxmhs51.srv.lrz.de [127.0.0.1]) (amavisd-new, port 20024) with LMTP id fmaQedN7hfuU; Mon, 11 Dec 2023 19:59:16 +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 postout1.mail.lrz.de (Postfix) with ESMTPSA id 4SprdH6P1fzySj; Mon, 11 Dec 2023 19:59:15 +0100 (CET) Date: Mon, 11 Dec 2023 19:59:10 +0100 From: Paul =?utf-8?Q?Heidekr=C3=BCger?= To: Andrey Konovalov Cc: Steven Rostedt , Peter Collingbourne , Marco Elver , andrey.konovalov@linux.dev, Andrew Morton , 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Mon, 11 Dec 2023 10:59:34 -0800 (PST) Hi Andrey! On 11.12.2023 18:50, Andrey Konovalov wrote: > On Mon, Dec 11, 2023 at 5:37 PM Paul Heidekrüger > wrote: > > > > 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? > > Hi Paul, > > I've been successfully running KASAN tests with CONFIG_TRACEPOINTS > enabled on arm64 since this patch landed. Interesting ... > What happens when you try running the tests with .kunitconfig? Does > CONFIG_TRACEPOINTS or CONFIG_KASAN_KUNIT_TEST get disabled during > kernel building? Yes, exactly, that's what's happening. Here's the output kunit.py is giving me. I replaced CONFIG_DEBUG_KERNEL with CONFIG_TRACEPOINTS in my .kunitconfig. Otherwise, it's identical with the one I posted above. ➜ ./tools/testing/kunit/kunit.py run --kunitconfig=mm/kasan/.kunitconfig --arch=arm64 Configuring KUnit Kernel ... Regenerating .config ... Populating config with: $ make ARCH=arm64 O=.kunit olddefconfig ERROR:root:Not all Kconfig options selected in kunitconfig were in the generated .config. This is probably due to unsatisfied dependencies. Missing: CONFIG_KASAN_KUNIT_TEST=y, CONFIG_TRACEPOINTS=y Does CONFIG_TRACEPOINTS have some dependency I'm not seeing? I couldn't find a reason why it would get disabled, but I could definitely be wrong. > Or tests just don't get executed? > > Thanks! Many thanks, Paul