Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp852488rwe; Fri, 26 Aug 2022 16:27:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR77bz7mttTzIXZ7dDnHW4aMRCAj/oLIvvnXGv3sIUV+7nQV8M6JNJ5Gx5UUscoqmojlzlTf X-Received: by 2002:a05:6a00:1309:b0:535:d421:1347 with SMTP id j9-20020a056a00130900b00535d4211347mr6177030pfu.5.1661556452483; Fri, 26 Aug 2022 16:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661556452; cv=none; d=google.com; s=arc-20160816; b=FqZ8he6aw3fxVKahVGB1tJUz8J6AUwZMU4bPeTwZZDyvqizmg6csjFtnCw6Xqvhepc pqWRjMKMcdfBbnqotDDBM76PpGHgpNNSc5Qg/b6/yW4faToL3Vg6UB3oxuT9FSBJVO9g SFOA4W8Ci0xyoT5nbxl2yUN9Fb3FbQn2KfRtpc47pRSHSs1gMMorfUnk+A1tRiKERltT fHEprxZfA5YFNkxr53d8GZyoovtJKnbuZG9j3U8eryoh/vpCYeuo6MLS2YFS0nI36qIZ vVySnJWJ2fMTSOuQIvMePxTXSu4ZvARC890rucDFm0A0isw+/tAN3olyxVWzgucSa59i 7S2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=v889MdeOYSOXfttlUHUrGNPHF6hosQW8oxFxfjKmUsU=; b=y5D+c5mwlkY3sYbceTru4SmsL95BOVQesrGwX6MUz2wyeGVCq12gQ7Y+LMToiL6TFv 5oYatvIROTIeDvCHiPi3szsO/x8aH6KSjWFjUjy7Fa1joYgMHlbpLrMWwgkCs/zzwnOh /MzF1iiNmxCJbGYEUxvVIFbwOG55/He2h+vtnR6RAZgasGTSJGuV3JZ/tybQfbwTfzFx lblqqEyXzmYuJ2Lr7J805SY2iQOC4nF6R52H3ChNeZZnY4vQJqWYiMA/S7XlrlQg/g0y 7AclFgOb3LhiwXaeHUTsXzm3kdzZ6QbF1UxSytmz0d8+3CthI4mwfaIUCURo2+CJMYRb bQvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MthOyyN3; 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 x21-20020a1709027c1500b00174418919a6si1908504pll.513.2022.08.26.16.27.20; Fri, 26 Aug 2022 16:27:32 -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=MthOyyN3; 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 S1344903AbiHZWsv (ORCPT + 99 others); Fri, 26 Aug 2022 18:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344711AbiHZWst (ORCPT ); Fri, 26 Aug 2022 18:48:49 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3928E9279; Fri, 26 Aug 2022 15:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661554128; x=1693090128; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=jMituVpkGi3k1+Nche8Hgl4KTD1RuXeor1WtiNrz3gA=; b=MthOyyN3Q7OnkqIL6BFVe7g7tevOv7xATiiuP3ev3gcup6jLgxVh98pG kWmZWIVfMsJJ1h4Rq7lTbZe+aBHhCgq5MZOwddPsFTxnSvyn9J0houJSx 7VBQGyR0vWKxJfNJk0twOEwaw2rt6bcAV8LcM3gi+SBR+hHNe0CiBOGqv NpcNOIDqmnMUM4xIyftagOysXsTmYm/wXFIWpEojFudeKWcL2Koxr2Zk2 c+DjBuoSxaYGhNSlMud+U1avz+c9tFlm99jlRQ1Yd/qHVNXNXTegXAmkX X1NI0ZuLOP9oD48E13IHvJ44NromcFd/HevScFN19Mv+NdOVK+MrchNC+ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10451"; a="292187442" X-IronPort-AV: E=Sophos;i="5.93,266,1654585200"; d="scan'208";a="292187442" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2022 15:48:44 -0700 X-IronPort-AV: E=Sophos;i="5.93,266,1654585200"; d="scan'208";a="587463787" Received: from djiang5-mobl1.amr.corp.intel.com (HELO [10.212.32.23]) ([10.212.32.23]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2022 15:48:43 -0700 Message-ID: Date: Fri, 26 Aug 2022 15:48:42 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.2.0 Subject: Re: [PATCH] tracepoint: Allow trace events in modules with TAINT_TEST Content-Language: en-US To: alison.schofield@intel.com, Steven Rostedt Cc: linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, Ira Weiny , Dan Williams References: <20220826223511.170256-1-alison.schofield@intel.com> From: Dave Jiang In-Reply-To: <20220826223511.170256-1-alison.schofield@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 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? > > 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