Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6160396rwd; Mon, 19 Jun 2023 03:19:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7CKG4YOeqG87xrfiebQ2vwsL9ouRrqIleyy6d3EUaQjCIIQOwtg4uPwUYxl1Va/9BWewzD X-Received: by 2002:a05:6a20:244c:b0:10a:e8b1:34bb with SMTP id t12-20020a056a20244c00b0010ae8b134bbmr6005095pzc.56.1687169986265; Mon, 19 Jun 2023 03:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687169986; cv=none; d=google.com; s=arc-20160816; b=x7WOXu66YKuRAcAQE50f8yBavzZ8xwerfhNXAMEYVwA4Vly+wwGBOFoHcFCSKx/Ft8 Axn7Ohb43M4KcaJefRb2SBltxK10mWXHlEXALxYOUa5eHnPzTSfJc5WCknmwoVXSVwD8 WHkzl8Xx8MK5woNV4IbiePoCOUrP0TL+pIXenF2N+ZkYXQ4MtM88e1RzL6uBoQnCWo7f 0dOlDCyCrMG1pNjVs7Ovs2+RSbJ1ZyDC/jvGv8nHidyXWtEou04axeLv9ff71Yhi4nRe yc9xfTRRzLsjf2Yr/u9cu5VKH2X00X9R1ucelMXdWInKUubD3huJrykghkXJ3Xuf3MiN IWDw== 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=TitqDCAZ4k0kUmwWL2ar9UbakjN8g88PZ4eJsoBtptM=; b=hCQVaWr3Wg1cysaAqeZJ46Hop63UjPJZSoTE5D9BOMSBKPaimY/vCbeHAmRaxwqn4j 1wtPCJzlne95nc9omMW5tu7loK086PS5HQzEls1EMt/rRMhy4qQyX0pfK2ZJUy6wBZC4 KhG6ag1yRFTgGrEduUmXCTx26iYKN+UTXMIm0pjBtm2jPFdRcpG9JUUsLoXHcGFEZ6pt ib8A5Hbs8mElBFhd8d310ekJRZ3iV3C7gFi4r8C0eFKv8Py/XcxXzsc7bIPUWXWAgkLF ENat7kJVmb7HP6VoXwiAkoJeJ3DJS0ibv/T9tKM9SbGTho3ULY8Ty7MqgUWhPiiv3eSo srWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ggdlD1Fc; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n16-20020a170902e55000b001b6717c9e37si371960plf.525.2023.06.19.03.19.32; Mon, 19 Jun 2023 03:19: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=@linaro.org header.s=google header.b=ggdlD1Fc; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230098AbjFSJ6J (ORCPT + 99 others); Mon, 19 Jun 2023 05:58:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231848AbjFSJ5O (ORCPT ); Mon, 19 Jun 2023 05:57:14 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EB2EE58 for ; Mon, 19 Jun 2023 02:57:11 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f9b258f3d8so4255525e9.1 for ; Mon, 19 Jun 2023 02:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687168630; x=1689760630; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=TitqDCAZ4k0kUmwWL2ar9UbakjN8g88PZ4eJsoBtptM=; b=ggdlD1Fc1EqBybvqJQe0fukI25JfKzFgSzXYqpuHcFK2D2CV0OmeGSi3UGqqlN+6kY q8lOJmPNeOM7JStY4ycQm/M4KPWrhqGwph34t1KE533DO428a7tcfJdU5EXJTBRbNUwa vQtFztAJkgIXXy3480T605ckmV2Z3xbCl2KzRMyVVZRbXv7gjMnnpyhnVwY5zAhq0cvW XaozgORjDTDEVBElEeXi94y2aQoRH6zgp1YZBxIRU865tMb22AP7PX1CCVDpgJJLYrjK HhVAt4Kl8ofO1SIWto2V+HJ2uNfhKP6yDlLEy/OaCFYIXF4N4qqSSNtds06rKd6AxmBV ZLlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687168630; x=1689760630; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TitqDCAZ4k0kUmwWL2ar9UbakjN8g88PZ4eJsoBtptM=; b=cH8ZkRnBfwJhVDMoUYCoGGW/p3xTbyavBuUowjPIe/WZokM4Cx3a4KkZ4eBloGXkrI YqoTju5rKLtjaqbAuT2jTaFKTfNfPJpBsBPGeDXwSqyNmII8kHCC1D7LKMNyvkTPU6a7 BnypD06qPQ/S65fqGhQkWJ6cMx/zfMwNmhcWxxz1HqdevpD8bN+7Xm23WMiPp7ZHpj/k anVJnR7Lr9BpRqTd9lY58qW9x60vX68MMvC0owZTw4ekniFfLRqTanecgL4ew0c/WSNl 1BOjQZywXVYUnq1NQQQCO1ayMAsipDOqsJxSkySayRPl4F3+GP+h94/q8/jpoZzfcoat xAXw== X-Gm-Message-State: AC+VfDzkWRhKnFimuzfkNsilHVvRLnuGinvMKY1cFS5nKjNlmVDgvE0Y 4A4QoZdYuQb5azBSxL8KoDFlnA== X-Received: by 2002:a1c:7705:0:b0:3f9:6f7:9d7d with SMTP id t5-20020a1c7705000000b003f906f79d7dmr4561926wmi.0.1687168629876; Mon, 19 Jun 2023 02:57:09 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id o19-20020a05600c511300b003f8fe1933e4sm10891640wms.3.2023.06.19.02.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 02:57:07 -0700 (PDT) Date: Mon, 19 Jun 2023 12:57:04 +0300 From: Dan Carpenter To: Fei Shao Cc: Stephen Boyd , Jerome Brunet , Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] clk: Fix memory leak in devm_clk_notifier_register() Message-ID: <658d32f2-a71b-4dc2-bff9-649fadf41889@kadam.mountain> References: <20230619112253.v2.1.I13f060c10549ef181603e921291bdea95f83033c@changeid> <35f6212e-69f8-432f-a5c8-99ed5c844f11@moroto.mountain> <32fa8c0e-26f4-4ee4-889a-4037530c128d@kadam.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32fa8c0e-26f4-4ee4-889a-4037530c128d@kadam.mountain> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Mon, Jun 19, 2023 at 12:24:41PM +0300, Dan Carpenter wrote: > > It was actually detected by kmemleak on an unreleased Chromebook device. > > I added the trace snippet in the message at first but removed that > > before sending this. Maybe I shouldn't have. > > > > I can resend a v3 to add that back if that's preferable. What do you think? The other reason to include stack traces is so that if someone else runs into the same bug they can find your patch by googling their stack trace. Normal users aren't going to be running kmemleak. And people doing testing work for companies are hopefully going to pull this fix in via the stable tree so they'll get this patch automatically that way so they won't see it either. But if the stack trace is like a NULL dereference bug, then users absolutely do notice that kind of thing. You should always include those kind of stack traces. regards, dan carpenter