Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4880572rwb; Wed, 17 Aug 2022 07:32:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR4MNFqK9XYVNUf5D+N8roJV//Kt4wPpXVZrnWB8u/ktj03MP0OEiNxz2YZlycOE/ypvNIz5 X-Received: by 2002:aa7:87d8:0:b0:52e:ba7a:7fc0 with SMTP id i24-20020aa787d8000000b0052eba7a7fc0mr25949605pfo.46.1660746753454; Wed, 17 Aug 2022 07:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660746753; cv=none; d=google.com; s=arc-20160816; b=qBXNRNKb8YDB1+WMgagTk29F6sf7MoZX/eFDc/vtxQa4ktppffTBcUvAG1M9tuM/Lp T3jgcO/enhMBLvxUabWkmlENnScNremkmpmEpQXEyNemt+b9SaFsm8lJ3RUK7emMGyiW SWUlyWsf5UpUx5lzzYPMcQEe7snmFBNz8E4N/spuhuKZ7f4GVnGxnQ04KTLZ0MmDdFPj QbfsAxid77dtsIb+CBoRCYg65Fx9XASOt+4jKwypt1/qIyxkzcGKyU7/GQltMq37ngWO BMAXOErPfr3BRGW6wQzDpphQKyn4UNQzHiMLV+rgZJpl5eA+D67QnMwrYaDugMOUYiTE fwew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=mqY5tZeUtxfaGoX0NOTJ6n3122CFFVf59sl5BPbje+0=; b=DFgMFnoJw/Nw1Nxid2ApfE00gUY8dlIFL2etqSol03hPZhG2cJcWW6EneNHLMliIey gNSxGGZtmRRWcTWwvOxI8jWnHRZNePOW8vGsJ4dXsH7xW+2yB4xh3trOaeTU6qyMpyDz 2iGC56gkVTIo9SVmNHi6oBmV5ETAgAVMGNSmsyPsNgyPZof2mvePJKqyeIeZ2weEI9/a n2eAkyby8eHY10Uz9i3NXO8+jGuBAGceQ87hGO+oW6TjP1uW0hs1EXVv4KcCp5mfPXka lYqqijgRo7QNYADkTUGZLnjz7Hu0iDT114Ay2bcYfSQpC8bJ+RgfxkDXmqwasJ8k7Vrh UB3w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a17090311c800b0016d4e5ca5fbsi1630217plh.308.2022.08.17.07.32.22; Wed, 17 Aug 2022 07:32:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237162AbiHQOEm (ORCPT + 99 others); Wed, 17 Aug 2022 10:04:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237149AbiHQOEF (ORCPT ); Wed, 17 Aug 2022 10:04:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569C4615C for ; Wed, 17 Aug 2022 07:03:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 150A761469 for ; Wed, 17 Aug 2022 14:03:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8662BC4314C; Wed, 17 Aug 2022 14:03:22 +0000 (UTC) Date: Wed, 17 Aug 2022 10:03:31 -0400 From: Steven Rostedt To: Krister Johansen Cc: LKML , Jiri Olsa , Peter Zijlstra , Frederic Weisbecker , Ingo Molnar , David Reaver , Masami Hiramatsu Subject: Re: [PATCH] tracing/perf: Fix double put of trace event when init fails Message-ID: <20220817100331.0851f7a2@gandalf.local.home> In-Reply-To: <20220817044656.GA1941@templeofstupid.com> References: <20220816192817.43d5e17f@gandalf.local.home> <20220817044656.GA1941@templeofstupid.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, 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 Tue, 16 Aug 2022 21:46:56 -0700 Krister Johansen wrote: > Thanks again, Steven. Is this one that you would consider tagging for a > backport to stable at the appropriate time? I believe this one showed up > in 5.15, if it's any help. So the warning started with this commit: 1d18538e6a092 ("tracing: Have dynamic events have a ref counter") Which switched the module_put() to the trace_event_put(). I guess the difference is that module_put() has ret = atomic_dec_if_positive(&module->refcnt); Where it could be called more than once after reaching zero and not warn about it. But the trace_event_put() will warn if you call it after it reaches zero. I'll add a stable tag. -- Steve