Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4286461rdb; Mon, 11 Dec 2023 14:48:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+Px+i/HlXtDNln4Aw64Fr+6r29ywC0TJlC/LLZjg4Wc9VSa/BIU119dfddUbMNyFibStZ X-Received: by 2002:a05:6871:7990:b0:1fb:e5f:c539 with SMTP id pb16-20020a056871799000b001fb0e5fc539mr6214888oac.49.1702334935380; Mon, 11 Dec 2023 14:48:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702334935; cv=none; d=google.com; s=arc-20160816; b=crn/WHcT56k7dZFOcq5EwoNsV2J3jC4gmTww+hzBi3TqG92fYx3ZCXkWtgBeDNAI09 aqZhrM2DPbcwbJOqmIgFFujftlQb7xgZcgaoaL3oFFCGPxE5zVrJl3gxMVuGwdeU198K n9WbDCDFFhdwwnKYYHFoQ4P0IJF2dRvTlo5JQc5xMysUeUN9oXq0DnbWqosisx6vmAri OZEpqgPWI5d5wxXfk2TQzeAOp2NLDlJUtHWUfJ8j3lA22cgGszzZ7U4r9kPBqbu12PwN rhbxOEW9fds/nIo87bmz/0UOyifJtCT+TUDYQPkfPhIXYHu+fBVTueOVwcLJFYsPy8wW UyfA== 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=D31BDla4PBMR0dv+0ByYX5fPYZZCLsOgW6S2YQOK1H4=; fh=DaPmRuawHnAU18yOIjRFb3bKY82uB1AyEdAq5zDOlGw=; b=y5DaPTpj5UBtF7kv28oAdkJEd2VJTUUHLTlD4jiPC37f57qoUFi381PiAeWYjDuC5a RxVkbq2UldxwRaaL3i1UC08eSoUz6P6YI1wb7GNS/wsLf2qKC1BY6tjGoyxwE3ilF+c3 XS4w3e79w8Ibj0ro+/geV1VYQNKJS6DtHeiJIu35XbiZMWOSbrPt6Vubu5oil5tOLGZQ w6BG55YokU8hU2V7n7r4Jg6pOTJ9/lYB1WEb3bNf8/wCp/nlDbhyLIHbJsgm0d6FWMwk vLLf3Y/smytn2klMp3AVrduaiYhaUPD/OziY0krMGeahFtqsumcDvzuko8ZGxsZO0+rF NJhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tum.de header.s=tu-postout21 header.b=MZQYpE9q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id n2-20020a632702000000b005c6a04f9edesi6716682pgn.800.2023.12.11.14.48.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 14:48:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@tum.de header.s=tu-postout21 header.b=MZQYpE9q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 160A28057E62; Mon, 11 Dec 2023 14:48:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345239AbjLKWsj (ORCPT + 99 others); Mon, 11 Dec 2023 17:48:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbjLKWsV (ORCPT ); Mon, 11 Dec 2023 17:48:21 -0500 Received: from postout2.mail.lrz.de (postout2.mail.lrz.de [129.187.255.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7C38187; Mon, 11 Dec 2023 14:48:05 -0800 (PST) Received: from lxmhs52.srv.lrz.de (localhost [127.0.0.1]) by postout2.mail.lrz.de (Postfix) with ESMTP id 4SpxjG5tDvzyTl; Mon, 11 Dec 2023 23:48:02 +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=1702334882; bh=Lyi9Y87z52dsNVzPku4bbN/tUE2KjXbNI DCbU7BhnmU=; b=MZQYpE9qpYGWkW9PZljSYvvd3CVqIuFNXTIVmfPyKzZACNgTx PptgPSIyoiXHyf3tOlHvrzhaW5B3N4TznJlvgPVgDfOIr5xbLNArick89XfZWxfB AtUGh5CEB0ZeN3WcfkFh9nJXColDrXIeP22d6THk+gs13FgsUYaautEet7HpIHH9 PDEtAM/ZLueCMz8lbzNMuRjppVeGgv8c0CREyYAjhx3x1yFCg0k1Khh4eBERjhkl CtQAtIVVjQfGBjnxdfnzEvzYBbTfA1R0mSTZJwy+Fs8nxCsjpxi7xE+ABKXhpY9g nJOFukKNMODZ0wch69wX+Wns0iXIT5wfVwj1g== X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs52.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 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 RXtrqxiiQ05L; Mon, 11 Dec 2023 23:48:02 +0100 (CET) Received: from cerulean.fritz.box (unknown [IPv6:2001:a61:245c:a01:443b:cc34:8ae7:6ede]) (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 4SpxjF04PnzyTZ; Mon, 11 Dec 2023 23:48:00 +0100 (CET) Date: Mon, 11 Dec 2023 23:47:57 +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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 11 Dec 2023 14:48:53 -0800 (PST) On 11.12.2023 21:51, Andrey Konovalov wrote: > On Mon, Dec 11, 2023 at 7:59 PM Paul Heidekrüger > wrote: > > > > > 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. > > Does your .kunitconfig include CONFIG_TRACEPOINTS=y? I don't see it in > the listing that you sent earlier. Yes. For the kunit.py output from my previous email, I replaced CONFIG_DEBUG_KERNEL=y with CONFIG_TRACEPOINTS=y. So, the .kunitconfig I used to produce the output above was: CONFIG_KUNIT=y CONFIG_KUNIT_ALL_TESTS=n CONFIG_TRACEPOINTS=y CONFIG_KASAN=y CONFIG_KASAN_GENERIC=y CONFIG_KASAN_KUNIT_TEST=y This more or less mirrors what mm/kfence/.kunitconfig is doing, which also isn't working on my side; kunit.py reports the same error. Many thanks, Paul