Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4289294rdb; Mon, 11 Dec 2023 14:57:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQadFt5F/D5L54XCQap5j8UKj3pP5pxuTseZkO22wNjK6mxTR/L2nxCqRVgGBQUjHVIEQ5 X-Received: by 2002:a05:6a20:2590:b0:190:7d54:f0c4 with SMTP id k16-20020a056a20259000b001907d54f0c4mr6709058pzd.87.1702335449087; Mon, 11 Dec 2023 14:57:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702335449; cv=none; d=google.com; s=arc-20160816; b=qoQsuQJbJ6FwFYIonsqDxxmSjspPZpMaUuhcOiHNH7OsXJ9vX8k73EnyBpcS6yYVQP HXBGrmnqIXcB+ttvW1MtK+7GomvRcBSk4jKbpRv1GvKN2bAr8XXCJdPait92B/VpJDiE WNZa8YoP2LwXQJ0eHpFgs6VIrSnA2nN3H3np3DR9Ip1b4QGUkMNmlqZ8+XoEv0AU7tcr Gtp5S5cct3t6RZgAgYEjyydAFiMrcnoe1Ueg+Aw6hcyTjH9qttERqDeDJXhj2NARCc4k lsGG8QKmPzWirOPsQKm7LFs3dG/bBAxFMyVcBlDep1ZmxgoiSpCeEWE+hv5quSlbHOfD mddg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VkXKnEfT8eKc5Yh5rOydAPt9sQ7NUY597Q2G+9UH8MI=; fh=GsT3hAat2TqRvpMYR9O/XV5pBI0aUTywK8FkNd4Ngjw=; b=UWG0RrMMVIIeTAFS9OdELiOqnI6YEQkI+AdtZcjug+TuIIKq1uukFMTwk8dVDW1mB+ FjdPzOwbHRM26zr5G5ikr+6llBCdrmOS7C4JHoLNHNFGq7YbQlPKAHAb5IUOnDUOJqtF w1jCQQDZnrEOPINSnsWbYXs4ST4/A/ADtJGazafukrQI1nHADxuEeygeagQah8DKv/5/ mJe1U50HZgpq0LGO60TIXUfXFXMqEN84X+5iWcf5nYXR0YMSdV+SYW1/p4jDkfT0BM+D wPmu/ypvLhE1hw9FQ7yb+I8EFsu1xHhvUMmaVb0rVD7zk8uGMU3Otcrj6vEkglEbvxWW sceg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=nHMFiq70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id s19-20020a656453000000b005b977eea853si6877181pgv.694.2023.12.11.14.57.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 14:57:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=nHMFiq70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A954180AFBB2; Mon, 11 Dec 2023 14:57:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345160AbjLKW5M (ORCPT + 99 others); Mon, 11 Dec 2023 17:57:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345064AbjLKW5L (ORCPT ); Mon, 11 Dec 2023 17:57:11 -0500 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E378DB for ; Mon, 11 Dec 2023 14:57:17 -0800 (PST) Received: by mail-vs1-xe35.google.com with SMTP id ada2fe7eead31-4649daf0dd4so1359892137.0 for ; Mon, 11 Dec 2023 14:57:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702335436; x=1702940236; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VkXKnEfT8eKc5Yh5rOydAPt9sQ7NUY597Q2G+9UH8MI=; b=nHMFiq70nH5mhzLtP1Lg5xRDXJdj8MglQpkFewHaDlhsCVDjZW3EGwawPjyn2ENZ7r 7o5QnJjgCU8dfJ7d2S3sxraSgUf4HLnOHSMj/GoIt7fv2lQtA1dSPfRazZCRIE4yN7Zu nHJ1TWw5OAmotxPlNKfrpYdUQhh+OmmjJi0axSQBCvViCC5d2aK65FNKkjyXjRS3ihBu LlF1p5xEPMyPPj4siicZAE5dHwePCQ0E/O9v0zEVdut3srmAqFlUFL9RAAaMT9CV01dw VaMC4oXmgGP7pgzZZMLMNGoh98UZ2NDVeQ1ICIjrBkvRWnVjWArAFJ5pMFpELhQzNF+f B+GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702335436; x=1702940236; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VkXKnEfT8eKc5Yh5rOydAPt9sQ7NUY597Q2G+9UH8MI=; b=UsKeU9pEaYYs3MPDDK14oVeLLe/7/CUzsWZmXoTora6O4XIl/7mE4BOf2+JT6qqaWs 7OCwnjnniRI2xqO08iC7zB93rVFNU41XOK8QoyMpsjyEV5BUCQkceqq4MgpdgSG71s3s WxbELmQqWxxEPHQsQQ3+wFBBKO/N4pRZx1lCUyIA5PtlSbTSGOqoBcPWhdWqvjiIox+q WQh4rUMBC1JIYO4B0tn1gesF+F0WiwJrITCh84O9HWa47Et0KpzFffTgs3i9xNUIRJSO c1mBfEkpFhtiS5CCc4f8+tarCbugnK72C4BBeIi7A3SOI7DZXeycTYtqAhYHCf/ogodd MlSw== X-Gm-Message-State: AOJu0YxGHCz1WfAR6lTbceAH/r4W6PHWyZ4zNtxYloolexLB+1R3uKIu tk7IfpcSHJw+U7vjGQ9zLbnyUM+oZrRh6DZ38eEOEA== X-Received: by 2002:a05:6102:38cd:b0:464:811a:9ef9 with SMTP id k13-20020a05610238cd00b00464811a9ef9mr3502893vst.17.1702335436511; Mon, 11 Dec 2023 14:57:16 -0800 (PST) MIME-Version: 1.0 References: <20230215143306.2d563215@rorschach.local.home> <20230505095805.759153de@gandalf.local.home> In-Reply-To: From: Marco Elver Date: Mon, 11 Dec 2023 23:56:37 +0100 Message-ID: Subject: Re: [PATCH v3 1/3] kasan: switch kunit tests to console tracepoints To: =?UTF-8?Q?Paul_Heidekr=C3=BCger?= Cc: Andrey Konovalov , Steven Rostedt , Peter Collingbourne , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 11 Dec 2023 14:57:26 -0800 (PST) On Mon, 11 Dec 2023 at 23:48, Paul Heidekr=C3=BCger wrote: > > On 11.12.2023 21:51, Andrey Konovalov wrote: > > On Mon, Dec 11, 2023 at 7:59=E2=80=AFPM Paul Heidekr=C3=BCger > > 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_KERN= EL with > > > CONFIG_TRACEPOINTS in my .kunitconfig. Otherwise, it's identical with= the one I > > > posted above. > > > > > > =E2=9E=9C ./tools/testing/kunit/kunit.py run --kunitconfig= =3Dmm/kasan/.kunitconfig --arch=3Darm64 > > > Configuring KUnit Kernel ... > > > Regenerating .config ... > > > Populating config with: > > > $ make ARCH=3Darm64 O=3D.kunit olddefconfig > > > ERROR:root:Not all Kconfig options selected in kunitconfig we= re in the generated .config. > > > This is probably due to unsatisfied dependencies. > > > Missing: CONFIG_KASAN_KUNIT_TEST=3Dy, CONFIG_TRACEPOINTS=3Dy > > > > > > 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=3Dy? I don't see it i= n > > the listing that you sent earlier. > > Yes. For the kunit.py output from my previous email, I replaced > CONFIG_DEBUG_KERNEL=3Dy with CONFIG_TRACEPOINTS=3Dy. So, the .kunitconfig= I used to > produce the output above was: > > CONFIG_KUNIT=3Dy > CONFIG_KUNIT_ALL_TESTS=3Dn > CONFIG_TRACEPOINTS=3Dy > CONFIG_KASAN=3Dy > CONFIG_KASAN_GENERIC=3Dy > CONFIG_KASAN_KUNIT_TEST=3Dy > > This more or less mirrors what mm/kfence/.kunitconfig is doing, which als= o isn't > working on my side; kunit.py reports the same error. mm/kfence/.kunitconfig does CONFIG_FTRACE=3Dy. TRACEPOINTS is not user selectable. I don't think any of this has changed since the initial discussion above, so CONFIG_FTRACE=3Dy is still needed.