Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4137633rdb; Mon, 11 Dec 2023 09:50:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzIpltobz06/K/gn2cfni/uhaJn7vijH/PeLgH/CqTB+hRdjTGKSKQfM9064BCH4H49LFP X-Received: by 2002:a17:90a:d246:b0:285:a0de:c726 with SMTP id o6-20020a17090ad24600b00285a0dec726mr1846679pjw.35.1702317036547; Mon, 11 Dec 2023 09:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702317036; cv=none; d=google.com; s=arc-20160816; b=BWPDXYadQwXIodAl8rPD6dAKZSG1KWDKwLM9jaDFvJvv6K56HT0jCzJzKqh2xrTeek GsKEReYwISRpCOnV7Rz1wfXtLcxHIcA5+EHJ+kvZxudptxT4QI7gy66D5hg7i0Rv0aEB 8LeFdV5t6wn/q+8522nCobO5C4WZf341ok4zbU8LsI+OMwlrIS1EtgvUza3+Rrx/UVsi Rdk8i3jPuCmKOgHNSApHmQQ0PSqa8sEBuESGL0u9353GX13qVailGIuNTFp1L3x1ZTx0 5UXrvMkn8rKrHA+JudPVjMn2ttmCAEFN8fmzNuWUhxxsR5wrta8ReEuJr9AEldVKTngk uOxQ== 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=tiLi/yokcTOlHvcoLGIsa/eRQZmbR3afyB1eNuF7ev0=; fh=i0W2A2eq0+ABFU0kQIx38SXH4G0GLVPJSKpmgwl4lCY=; b=tmiuYw2RPCyhsdfKvxrZct4s6UjfmTTqOOn54ByfL4qz9jXs/xMvBo8HDO/ysIVvZr jrS0YoyFOheQJTQRwS7bLGFIjZuCJdeBGuzynlZxiF76x0TvgW+1HU0eWZrwlJfaY3L0 FKZXvU45Ffddaj+L84zQQDE2EboPqxk/ohxWWIFJAaAuvbnbgEbDWN1DsiiQYgzsbKh7 rkTtiYSEBoL9+06EgCj2C8LcsICgZw7n/+PigwLlqaDxd2/h4AXAQR/pLmbki9QdJ4zd +zfX73aL5ufYBs0tBYjHD+9G68glE6/udUplLmHVyF1M7K2G5qDCJdmnq24db6I3IYkz Yx+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cOdQKG+b; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id mh1-20020a17090b4ac100b00285864ca8a0si7630363pjb.180.2023.12.11.09.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 09:50: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=@gmail.com header.s=20230601 header.b=cOdQKG+b; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id EC28C809A767; Mon, 11 Dec 2023 09:50:32 -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 S1344578AbjLKRuL (ORCPT + 99 others); Mon, 11 Dec 2023 12:50:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbjLKRuJ (ORCPT ); Mon, 11 Dec 2023 12:50:09 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C6D8C7; Mon, 11 Dec 2023 09:50:12 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-28aabe4a728so432766a91.3; Mon, 11 Dec 2023 09:50:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702317011; x=1702921811; 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=tiLi/yokcTOlHvcoLGIsa/eRQZmbR3afyB1eNuF7ev0=; b=cOdQKG+bEEe+J4ehE0xdFOEvupK/BKS2a+CMxVRk7t+38nTEpNFLXnFLx3T61n3lNR tzKwRoHUD8i4Q2Man5DN9zC4cXZSgPXqGxsu1c7Za6N2oiV5L4rnZVk8YTmou1pTHnge UnfY9VXAF8h9LAR+SqbpEL+Oaze27ljAKMYkYnr5jjewCmoSWI5NUvZqcEyReMYt14F2 EcoN3WYma9uDBRpxAcP456gPyoOCMjOPY+AYnN6itPW4kKWH/WTDWnrzwtr9ksVFOhGL 9OR19qu0eEp+nKKJOsUA8gzW+z16Sk4E6yJos54HgJ/NuSOOKUa85O4CzopWH1qZVtW7 htAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702317011; x=1702921811; 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=tiLi/yokcTOlHvcoLGIsa/eRQZmbR3afyB1eNuF7ev0=; b=BKAMhKgFNOW5N9vsLcGNpy0090H9mcdTUzQ57wCzAF5jE9ppm8GlwavNaGNcR3YkVe E96wHFqPdcuybF0dJ3Zm0wyVN6Ibbwuups+KYzXcxPqJ5lGH4DZ197z9L6L6plKLDGW2 DVYuTP1+Chdm4Bao1iUA6nCyHxYoMW0AIRCcME6v4fzz+ntXBya9cT98VcGrDxrUNk7L wk0BQIBoH9C6ATn8Q7kqSCJbEEoqsvHtxOIsclOPrgkhPgZ5D0BeMlmlFq+l9QChCU2W 7TDnTlZVAqT8ns61q9sutoZiAhDY1F0ymA2djStGuLEtTcqWAquu4kek7hS1EyGScwVS mopQ== X-Gm-Message-State: AOJu0YzNp4xpxEUQxrZtzcUTprD0/iGEoDRUFgAzJmYFUoPy+sSG1Mnz ZqRT1OAQZWGM6lNw1qobWB3hloP0k/ryPaQNzZs= X-Received: by 2002:a17:90a:454f:b0:286:d42d:e7e with SMTP id r15-20020a17090a454f00b00286d42d0e7emr2099722pjm.3.1702317011374; Mon, 11 Dec 2023 09:50:11 -0800 (PST) MIME-Version: 1.0 References: <20230215143306.2d563215@rorschach.local.home> <20230505095805.759153de@gandalf.local.home> In-Reply-To: From: Andrey Konovalov Date: Mon, 11 Dec 2023 18:50:00 +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: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 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 09:50:33 -0800 (PST) On Mon, Dec 11, 2023 at 5:37=E2=80=AFPM Paul Heidekr=C3=BCger 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_FTRA= CE > > > > > really should just be for the function tracing infrastructure, an= d > > > > > perhaps not even include trace events :-/ But at the time it was > > > > > created, it was for all the "tracers" (this was added before trac= e > > > > > events). > > > > > > > > It would be great to see this cleaned up. I found this aspect of ho= w > > > > tracing works rather confusing. > > > > > > > > So do you think it makes sense for the KASAN tests to "select TRACI= NG" > > > > 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 t= hat > > 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 o= n > CONFIG_TRACEPOINTS. > > I'm having no luck running the KASan KUnit tests on arm64 with the follow= ing > .kunitconfig on v6.6.0: > > CONFIG_KUNIT=3Dy > CONFIG_KUNIT_ALL_TESTS=3Dn > CONFIG_DEBUG_KERNEL=3Dy > CONFIG_KASAN=3Dy > CINFIG_KASAN_GENERIC=3Dy > CONFIG_KASAN_KUNIT_TEST=3Dy > > CONFIG_TRACEPOINTS, which CONFIG_KASAN_TEST relies on since the patch thi= s > thread is based on, isn't defined for arm64, AFAICT. > > If I comment out the dependency on CONFIG_TRACEPOINTS, the tests appear t= o run, > but KUnit isn't picking up the KASan output. > > If I revert the patch, the above .kunitconfig appears to work fine on arm= 64 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. What happens when you try running the tests with .kunitconfig? Does CONFIG_TRACEPOINTS or CONFIG_KASAN_KUNIT_TEST get disabled during kernel building? Or tests just don't get executed? Thanks!