Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp872135rwe; Fri, 26 Aug 2022 17:03:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR40dRMI5oT7tTArKOr55p8NWZUzlYW+DxGd9WxgDoWiWmkgf2yypz8IzowRGIpX0g5QmR9E X-Received: by 2002:a17:90b:2c12:b0:1fd:78fa:5ea7 with SMTP id rv18-20020a17090b2c1200b001fd78fa5ea7mr2937490pjb.29.1661558619610; Fri, 26 Aug 2022 17:03:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661558619; cv=none; d=google.com; s=arc-20160816; b=Pz0pqim0ilBecogqhTMlZrhtr6yqi4fGa+bjybAt/cP3dXOgXBNOHkkLY/wTofaK/0 +JO+eRw7Lk9z7fZ1+T19DbpxPQk8iY/Kv168Ks7eV1NUASY19NIeYVNWZ44MD8lz7Un4 bLmDAh5zQjR9X0uBZHBkhYwLlROn5MK3wl10yixHu1Ba3VQfbp/MjAh2oohfYMpgjv+f DONatQTH/rptNxfOHoEFVo/ZETOmrgokomfzuqACocGy8TJGA5wEGD7/YZQQJjhG+G3q yZOq8IX2g4XoQ7lUgerP/tHj21liOlTmByGdI+vWNWiEcMc7pIkPFbkXc2r3a6qnhZMp sSuQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=F0dTmxLJrnsy4gIcGvwPKCHqInG1VhzfK+JPBlb64pM=; b=i9LsYerKtTDVZ3YQVeRHLV2Fvy5b3Iv/2G0YKxWVsH5gwuHYJcKTulNmqaKZF+3r9W FmzXShgOYkcj3x9DGhuGAdyaJiob/4U5MukrbwzT0CE3rvO9a0JcVbAtVn67dUKdDT22 hKzX42EcI3HNtnx6Tfi2ZZtRsm5zom+2V063EvhlqNIUbzk2ZZx+C4fuHcGcUPBViG4/ Y5JmF9IFGpKXVxYK23xK9B5eaFLLKYREegv7Q2U8Sv5Qqli/xdclwJUukUyWvL7ctLwV rZtb9vzJAhciNBAhO5VyDCsLycOSAX8ElKypcyYZSRfr0ryPrTA4uLMF+3Q/oo0RtEwl Qdcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ct8fBxjQ; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j71-20020a636e4a000000b0041b64ff7fd9si2877759pgc.517.2022.08.26.17.03.28; Fri, 26 Aug 2022 17:03:39 -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=@intel.com header.s=Intel header.b=Ct8fBxjQ; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245341AbiHZXgs (ORCPT + 99 others); Fri, 26 Aug 2022 19:36:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbiHZXgq (ORCPT ); Fri, 26 Aug 2022 19:36:46 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A4839568E; Fri, 26 Aug 2022 16:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661557005; x=1693093005; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=u20zxDzkp31lrS39BKPMIAjH1TtKgLIefJ0jzT7lrls=; b=Ct8fBxjQEQxfCYbeyWnIyv5GHNUqYWHvG2/7roPFiGK2Og3qBCS1FnRo WYwPFVzIYRVWfzIoeKusbUaiEFukVyEyoFwcug3gd6JO3EdRFy7nT8S3V J4ZWOu2KjIc0ZY0+eYUYFuh4eHC/P+ZDG3n3BOSzDRcT94L8jMFo4NuGV fx+hlQEc6trNEXqU+UIaJQy4ambG09vG8ixA7GC/DzJMJxxqUWtpSK474 XkUqvn+ogCSJPwLb/6cYO61ZdVaGCIZ+1Mdbl6biHspkvt9TkGbWUyFz6 TD+AvS0k7zs84NNKhKvbI2zeByKey0062j6TBaGUyZKBaHoqjEJl0ccDg g==; X-IronPort-AV: E=McAfee;i="6500,9779,10451"; a="356330045" X-IronPort-AV: E=Sophos;i="5.93,266,1654585200"; d="scan'208";a="356330045" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2022 16:36:44 -0700 X-IronPort-AV: E=Sophos;i="5.93,266,1654585200"; d="scan'208";a="640243606" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.209.82.226]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2022 16:36:44 -0700 Date: Fri, 26 Aug 2022 16:36:42 -0700 From: Alison Schofield To: Dave Jiang Cc: Steven Rostedt , linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, Ira Weiny , Dan Williams Subject: Re: [PATCH] tracepoint: Allow trace events in modules with TAINT_TEST Message-ID: References: <20220826223511.170256-1-alison.schofield@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Fri, Aug 26, 2022 at 03:48:42PM -0700, Dave Jiang wrote: > > On 8/26/2022 3:35 PM, alison.schofield@intel.com wrote: > > From: Alison Schofield > > > > Commit 2852ca7fba9f ("panic: Taint kernel if tests are run") > > introduced a new taint type, TAINT_TEST, to signal that an > > in-kernel test has been run. > > has been loaded? > I took that explanation directly from the mentioned commit, where it seems that 'run' was the intended word when referring to KUnit tests. Reviewer feedback led the submitter to make the taint per module to handle 'longer lasting' modules. > > > > TAINT_TEST taint type defaults into a 'bad_taint' list for > > kernel tracing and blocks the creation of trace events. This > > causes a problem for CXL testing where loading the cxl_test > > module makes all CXL modules out-of-tree, blocking any trace > > events. > > > > Trace events are in development for CXL at the moment and this > > issue was found in test with v6.0-rc1. > > > > Reported-by: Ira Weiny > > Suggested-by: Dan Williams > > Signed-off-by: Alison Schofield > > --- > > kernel/tracepoint.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c > > index 64ea283f2f86..5f17378c9dc2 100644 > > --- a/kernel/tracepoint.c > > +++ b/kernel/tracepoint.c > > @@ -571,7 +571,8 @@ static void for_each_tracepoint_range( > > bool trace_module_has_bad_taint(struct module *mod) > > { > > return mod->taints & ~((1 << TAINT_OOT_MODULE) | (1 << TAINT_CRAP) | > > - (1 << TAINT_UNSIGNED_MODULE)); > > + (1 << TAINT_UNSIGNED_MODULE) | > > + (1 << TAINT_TEST)); > > } > > static BLOCKING_NOTIFIER_HEAD(tracepoint_notify_list); > > > > base-commit: 4c612826bec1441214816827979b62f84a097e91