Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp190424rwe; Tue, 23 Aug 2022 22:01:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR5y4CghuOEG56FxkLaQ1MEIuPO9XaVY3yj+elbO3BaZEDT0+HKpTVVEM7KwHXkAUsVVqnl8 X-Received: by 2002:a17:90a:e7ce:b0:1fb:3f8b:95ee with SMTP id kb14-20020a17090ae7ce00b001fb3f8b95eemr6657241pjb.110.1661317306976; Tue, 23 Aug 2022 22:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661317306; cv=none; d=google.com; s=arc-20160816; b=zygfLDRpm82Ux4pHoocCiOmTdk8pwiMwuGvKQCvcASJMw3xL6DouzLwW/Yk4yTtww0 oEgKrWHagglsHDRkAy4afZlsymrL9L25QyNaj2Sn+XWJrUKXRHxAgLpYKvM1U18Rj8SJ +iLHgLKvPIUMJ30tqjq/f8u8fLtdg4v9Tj8SzqhXqBTGaeU5ns93Zn2oTbotjoxGcOjt W1oo/vwH1k1fbRwBnYApArCvSAM8RJfSZCNCIbrIptYdeyVtR+794SHbresottxGhTGF 3WVFpoa4zgcZazGrpE3Rba05nIa0HQCli0RYEvd01iEiqXVK0MU4pXJUz78CC1sOqGfi 4EAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jyM+DlYcD9A/G8Fef/I8BBdoma6QXrqxs0cWoQwzDvA=; b=PvYCSQad3OUJ9DrTS1xEmV3d5JiQRdbvpeOTjmf3U70YksMuwzCtr6C8FHPIxLh+Az 9u/rZOjtr5amtCPNxQxV5dBHuS3/tUQVBg9U/nn3skOb/VnRwCHN1c4i8zhSczIIzyuv Ew3njpoMnW+t9YoLcZxQrR3SWhBoGClc3Xe7/MnOh2wjeT+HhZY+IvN9CmtM8ZphGwjm lhBWJYKRSYo3kFhyX0nELYvIPU6HCgfXjALSflV4MfiYn7Qb1It35gKARhN2KVWWQYEN CEcFH+5jV5BK9JGYSpKfdoMNXBYdN7f2uIzn4D8N2OBLmEYJRVyrEUHjPopg8b8NivTF b4Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=G943f1VI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o7-20020aa79787000000b0053708adb535si2869305pfp.257.2022.08.23.22.01.33; Tue, 23 Aug 2022 22:01:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=G943f1VI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234138AbiHXElT (ORCPT + 99 others); Wed, 24 Aug 2022 00:41:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232848AbiHXElR (ORCPT ); Wed, 24 Aug 2022 00:41:17 -0400 Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com [IPv6:2607:f8b0:4864:20::92d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBB678768F for ; Tue, 23 Aug 2022 21:41:16 -0700 (PDT) Received: by mail-ua1-x92d.google.com with SMTP id l26so6305627uai.2 for ; Tue, 23 Aug 2022 21:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=jyM+DlYcD9A/G8Fef/I8BBdoma6QXrqxs0cWoQwzDvA=; b=G943f1VIXrxzd6Yqo1a5RZqUIYTZtThxytht4j4A8ST85FUeyioHc5A5vVEVXWqNlN bsTh6H8CHuPmMzFL+ycXagq80aRfZ6DM1R40CwZBVb4KddxhaEVLW3XQS6sZmYGyUikV O0gkLM4Mqtg0UVWWAUYebTu3+I8I5FQ9lAwZJDqVykdo3ChiJS0/eBUDMmw+HaIT6wCj C0uPkt1ZwqUHFP16yRAQZZW1MTkLoCq7iy4V1YyV7BpjUxk5AzWD6hCCU7/TlYw4BaBM Q8UY7WpPtQJu8SqIyOaFAlpSH9bqOpredDgM8jK1MCAil9a8s1olFRdk4ir/Yi//HziZ zpFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=jyM+DlYcD9A/G8Fef/I8BBdoma6QXrqxs0cWoQwzDvA=; b=H6FSofbhhOx5vDZ6EN4nSXmG5U+aFOcO+yt0TvhQy2OJg1oToPoqByVCEHpjUzDa86 DJvpJszIZAhi1CMlsrGR5Hs0g4QFT4ol2ozg16dntqASuPO2LQu2NrvVM7aM5A3tiq6K kvCvVfFPkH1RpHQhyWjsVBfUEDuoT2QMS0DhwLsDRv3h7hc4p0apN9alStMi9qZvT2wk tCxoJhgjHTRBcXqW/fHSWAQmxkoPC42Rujw0Incvp/sSzleeSug7KnlNugfB5WBHZFSG 2Q+6LDtGhxQn2GMxWcEAIZ3XxRvqM4hJ2AeEolOC3XN95wbckJKDz1R5cTPWkpWyHHSB s8xw== X-Gm-Message-State: ACgBeo3uOIbCKmvZgTYQdvxfMfZPzjs34Ggsu9aqnvVCpz9BBGKKAPgY Cyn0J8StAzBdt2pT5XqZShvz66M4o7ycwALJKV0IOw== X-Received: by 2002:ab0:3b09:0:b0:39a:82bc:88e5 with SMTP id n9-20020ab03b09000000b0039a82bc88e5mr10792971uaw.26.1661316075879; Tue, 23 Aug 2022 21:41:15 -0700 (PDT) MIME-Version: 1.0 References: <20220824041933.822838-1-joefradley@google.com> In-Reply-To: <20220824041933.822838-1-joefradley@google.com> From: David Gow Date: Wed, 24 Aug 2022 12:41:04 +0800 Message-ID: Subject: Re: [PATCH v2] tools: Add new "test" taint to kernel-chktaint To: Joe Fradley Cc: Brendan Higgins , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Jonathan Corbet , kernel-team@android.com, Linux Kernel Mailing List Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000093b46c05e6f54a38" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 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 --00000000000093b46c05e6f54a38 Content-Type: text/plain; charset="UTF-8" On Wed, Aug 24, 2022 at 12:19 PM Joe Fradley wrote: > > Commit c272612cb4a2 ("kunit: Taint the kernel when KUnit tests are run") > added a new taint flag for when in-kernel tests run. This commit adds > recognition of this new flag in kernel-chktaint. > > Reviewed-by: David Gow > Signed-off-by: Joe Fradley > --- > Changes in v2: > - based off of kselftest/kunit branch > - Added David's Reviewed-by tag > This still looks good to me. Unless anyone objects, I guess we'll take this through the KUnit branch (which, after all, is where the taint was originally added). I've added it to the list for 6.1, but it technically could be considered a fix for 6.0 as well. Cheers, -- David > tools/debugging/kernel-chktaint | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/tools/debugging/kernel-chktaint b/tools/debugging/kernel-chktaint > index f1af27ce9f20..279be06332be 100755 > --- a/tools/debugging/kernel-chktaint > +++ b/tools/debugging/kernel-chktaint > @@ -187,6 +187,7 @@ else > echo " * auxiliary taint, defined for and used by distros (#16)" > > fi > + > T=`expr $T / 2` > if [ `expr $T % 2` -eq 0 ]; then > addout " " > @@ -195,6 +196,14 @@ else > echo " * kernel was built with the struct randomization plugin (#17)" > fi > > +T=`expr $T / 2` > +if [ `expr $T % 2` -eq 0 ]; then > + addout " " > +else > + addout "N" > + echo " * an in-kernel test (such as a KUnit test) has been run (#18)" > +fi > + > echo "For a more detailed explanation of the various taint flags see" > echo " Documentation/admin-guide/tainted-kernels.rst in the Linux kernel sources" > echo " or https://kernel.org/doc/html/latest/admin-guide/tainted-kernels.html" > -- > 2.37.1.595.g718a3a8f04-goog > --00000000000093b46c05e6f54a38 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIPnwYJKoZIhvcNAQcCoIIPkDCCD4wCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg ggz5MIIEtjCCA56gAwIBAgIQeAMYYHb81ngUVR0WyMTzqzANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA3MjgwMDAwMDBaFw0yOTAzMTgwMDAwMDBaMFQxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSowKAYDVQQDEyFHbG9iYWxTaWduIEF0bGFz IFIzIFNNSU1FIENBIDIw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