Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1022409iob; Wed, 4 May 2022 12:55:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfGQjkD1iYPmb6mvFP0yPQzkEVQO9fGgP8yc4a8/f9eVY3mKbJii0AhbdUn+GVblhCiBRi X-Received: by 2002:a05:6a00:1307:b0:4b0:b1c:6fd9 with SMTP id j7-20020a056a00130700b004b00b1c6fd9mr22432680pfu.27.1651694110913; Wed, 04 May 2022 12:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651694110; cv=none; d=google.com; s=arc-20160816; b=fLhWwminyRD7lbpADaLIj4hh7T8o/jnAV9xJfhIB/UMMNM2PPfay2Kka2U4YdemL63 3UgAQpGXwkSF2uXaEKPat9eA0p7s0f7NUMsFip6wuGJ3oxifkf3s7Yhemz6MK3acLtV9 LzoLnpI57XNCQIX3U7t42B0g1B6h9x/uaWsfrWNRnvyg3pZreq04l2HJ06a8wmdP8snw /Tk7IK8yZWuLjr/KqrX0UFNqeVUIe6A0oWw3MQQVllVarvjDsZzq69ywAvQXsA3TuGs/ peO9n04I95V5MarJvL7+uDH4BGiQJAUUfdswBku3NEMzbhCEVdiHJE1uLDNI0HBuTA/4 DUow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Dn3HTp6KUp78ZFzWlHBYdXj5KOE/G4agBHq21Rs9ZcU=; b=dHryLwhRD+m61LMa4NOVvQE6jw9IVztr44BELRiaOjUspUVw+LwEXPxjlLx6JMJf9Y oC38e6JK3rrMl4s/hGyVwBS9HFNC8sZGs/nuCMIHRyN9dXYbis6YF/9R7X7rf5Av8avx BmF0N6bCXagjQLLVopnlKi72nF4eNgX08wyDrPUzJGw6PpYXl2ajiORmw1PbV2KyUKGp KHDNs9FCmyPU3Dg6kEEY9uo5epGWqSa01FHXmvLNY6aIt9RZ8H9N9Ho9xz7iMdepeI55 zAzk1DkKmEx+WoXsURRxnLAYwswGalH/K6VF+IvzxLd1EvAu0xPb6vblVy4fJoZg5Iwu qQdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=q8P31Bge; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p3-20020a170902e74300b0015e95edda4csi10792314plf.606.2022.05.04.12.54.54; Wed, 04 May 2022 12:55:10 -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=@infradead.org header.s=bombadil.20210309 header.b=q8P31Bge; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377253AbiEDSto (ORCPT + 99 others); Wed, 4 May 2022 14:49:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377241AbiEDStl (ORCPT ); Wed, 4 May 2022 14:49:41 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E3B4101DC; Wed, 4 May 2022 11:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Dn3HTp6KUp78ZFzWlHBYdXj5KOE/G4agBHq21Rs9ZcU=; b=q8P31BgeHM8LksWa1g6pVQGEev 8H/7gSHdSIGf4hnUZNG6k+NP/eyDVuhEa+E/bIHsjVXN5T1EKYCJy7/bIZ2gwofMBVL0m04h906iy O3m6WyGqfypCYPOeFlE0zbL6KzH75Dt6yQynZ2YQb+tjQcvc8h0DNJLxPlj13yCZ/0fHhfWFYko29 +mbPlaxqsXq8iB7o++eo7wHDCeL+pv7RLP4uld2Owm2FwNjROt2Nbdn7jgEo1D8SAnfFhVijf+4Ah 2gPgRMk9OnlAr8zlq0l5QdnCMe8bwU9AhVy3E7SmAac3O5pVOrjuKc62H1lx2a7NKVVOWSVVV3BVX R0OH7blQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmK0f-00CBsb-2f; Wed, 04 May 2022 18:46:01 +0000 Date: Wed, 4 May 2022 11:46:01 -0700 From: Luis Chamberlain To: Daniel Latypov Cc: David Gow , Shuah Khan , Lucas De Marchi , Aaron Tomlin , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, Brendan Higgins , Andy Shevchenko , Jonathan Corbet , Andrew Morton , Kees Cook , Greg KH , "Guilherme G . Piccoli" , Sebastian Reichel , John Ogness , Joe Fradley , kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jani Nikula Subject: Re: [PATCH v2] kunit: Taint kernel if any tests run Message-ID: References: <20220429043913.626647-1-davidgow@google.com> <20220430030019.803481-1-davidgow@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On Wed, May 04, 2022 at 11:25:14AM -0500, Daniel Latypov wrote: > On Wed, May 4, 2022 at 9:51 AM Luis Chamberlain wrote: > > selftests has modules, although I am not sure if there are selftests > > which do not load modules. Shuah? > > I'm not Shuah, but there are indeed selftests that don't load modules. > > I went looking for an example and found > tools/testing/selftests/bpf/test_doc_build.sh, which runs entirely in > userspace (basically just `make docs`). OK so, we can just skip tainting considerations for selftests which don't use modules for now. There may be selftests which do wonky things in userspace but indeed I agree the userspace taint would be better for those but I don't think it may be worth bother worrying about those at this point in time. But my point in that sharing a taint between kunit / selftests modules does make sense and is easily possible. The unfortunate aspect is just that selftests don't have a centralized runner, because I can just run tools/testing/selftests/sysctl/sysctl.sh for example and that's it. So I think we have no other option but to just add the module info manually for selftests at this time. Luis