Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3158133imb; Tue, 5 Mar 2019 02:20:16 -0800 (PST) X-Google-Smtp-Source: APXvYqzH0wUc2FKOPSY3thXqw5wqaa781gk+yJm/J0VybwUkfHEed406wn89BAMVe6WhQNix9Ywg X-Received: by 2002:aa7:8117:: with SMTP id b23mr1157414pfi.2.1551781216720; Tue, 05 Mar 2019 02:20:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551781216; cv=none; d=google.com; s=arc-20160816; b=KL1vG89xiRlip7wcdplJ9nanUFFwF2T5Gkt9qqAW08MSDkW2ZhuvVSOlRktFnyKjox cEGQSQ2wPlzZ4HvRoIXSi4yeAOTXZ+GEOY5Xh2iMXjVQwiAjQxhk8MsS/YQnbltkbzfn X+kntpI/X95ijywxSHEZEhjdJRifBT1Kp/PgMx4eqaaA0KXG9siYUVH7PnMiKPry7xuF 1ZpkbVzrxF5ozHPkaaSySg2PICxuV8hMFB7IN69dnSEk/Kv6Z0aKRr7LSXsX3KyeHVmh 5TWujlQD3KZmeJ1/TCkX2y52EfzU3Ih5GNbOQxK+PpfRoa9q3GqIICeWOii3xQGQ5qKi CJAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=B4wdFcvaQS9jQ+A96f4iwiWLIVrRdXxvFqFNs+W8ziA=; b=xP5pcmEc49GABBTQaEKw4/JGOeiMuOlrLqwvkXlQiNkijkODTcsNGmaFm2PLLSMu13 IxjH7AbAEPOLp+SmFB4su9T+px6A9fgkqpy3x5jXg7f9P1iVB/yP8FoP8gtaCtVOirYq s8yJQY5WBgcffFGjvyt869RRs7MKixXXQLr2j78D7KnM2xN51II7Nm4DgsKK3VzqURkb LGYfPpcxzvZ60CbfMgkmFnW8a/bgzre2qtWWa9gWfyJTi93vl2cuvkIKLGXVqZZ0cpV+ YoU95TyCeOj6wqTqs9fsQ6AtgUvjc36UPKBX5OGNayB605Z6X5HTXTzBU2LwzlJy/aKI Afbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Ckd119AE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x125si8142725pfd.30.2019.03.05.02.20.01; Tue, 05 Mar 2019 02:20:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Ckd119AE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727331AbfCEJze (ORCPT + 99 others); Tue, 5 Mar 2019 04:55:34 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:41118 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbfCEJzd (ORCPT ); Tue, 5 Mar 2019 04:55:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; 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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=B4wdFcvaQS9jQ+A96f4iwiWLIVrRdXxvFqFNs+W8ziA=; b=Ckd119AEXAaocwB1e1eYphnMi FeX6nPYqK/kOiCtUOoy1uHwB63/BD5ZCx/amoMcFoJkbu4tugwe/vHyBEcyEy//3fITVthW+v/f68 R3TS8hZT/7tsQ/SKTadOcemkA+jONlRdnHwIJacWd8zRw13qfVubvadHfClbxRzt01nUuXidg77wf WEvk0UwP4kWjYdb9LsGHxWtfS0nZlscINv//lhVigNKxU2pRjmzcJMzMPTCFXc3z1VrgB6BAexzFt zJPc98WB5ghjkAF5f60OEXoF1xWFYEQYw3mlXwPDOpZMiwO6Llt+hqM+l26APzDzkVBox9Kk+8t2G pl5YdglNQ==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:54940) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1h16nB-0000Mp-VA; Tue, 05 Mar 2019 09:55:22 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1h16mv-00035r-Sh; Tue, 05 Mar 2019 09:55:05 +0000 Date: Tue, 5 Mar 2019 09:55:05 +0000 From: Russell King - ARM Linux admin To: Manivannan Sadhasivam Cc: Linus Walleij , Wen Yang , Andreas =?iso-8859-1?Q?F=E4rber?= , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Linux ARM , "linux-kernel@vger.kernel.org" , Kukjin Kim , Krzysztof Kozlowski , linux-samsung-soc , Michal Simek , Dinh Nguyen , Heiko =?iso-8859-1?Q?St=FCbner?= , "open list:ARM/Rockchip SoC..." , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , avifishman70@gmail.com, Tomer Maimon , Patrick Venture , Nancy Yuen , Brendan Higgins , OpenBMC Maillist , Xu Wei , Maxime Ripard , Chen-Yu Tsai , Catalin Marinas , Will Deacon , Simon Horman , Magnus Damm , Linux-Renesas , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , wang.yi59@zte.com.cn Subject: Re: [PATCH 01/15] ARM: actions: fix a leaked reference by addingmissing of_node_put Message-ID: <20190305095505.znposuv6avjtbfwf@shell.armlinux.org.uk> References: <1551430616-42014-1-git-send-email-wen.yang99@zte.com.cn> <20190301155523.GA1915@Mani-XPS-13-9360> <20190304144829.GA5265@Mani-XPS-13-9360> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 05, 2019 at 07:21:19AM +0530, Manivannan Sadhasivam wrote: > On Tue, 5 Mar, 2019, 4:08 AM Linus Walleij > > On Mon, Mar 4, 2019 at 3:48 PM Manivannan Sadhasivam > > wrote: > > > On Mon, Mar 04, 2019 at 01:29:33PM +0100, Linus Walleij wrote: > > > > On Fri, Mar 1, 2019 at 4:55 PM Manivannan Sadhasivam > > > > wrote: > > > > > Hi Wen, > > > > > > > > > > On Fri, Mar 01, 2019 at 04:56:42PM +0800, Wen Yang wrote: > > > > > > The call to of_get_next_child returns a node pointer with refcount > > > > > > incremented thus it must be explicitly decremented after the last > > > > > > usage. > > > > > > > > > > > > Detected by coccinelle with the following warnings: > > > > > > ./arch/arm/mach-actions/platsmp.c:112:2-8: ERROR: missing > > of_node_put; acquired a node pointer with refcount incremented on line 103, > > but without a corresponding object release within this function. > > > > > > ./arch/arm/mach-actions/platsmp.c:124:2-8: ERROR: missing > > of_node_put; acquired a node pointer with refcount incremented on line 115, > > but without a corresponding object release within this function. > > > > > > ./arch/arm/mach-actions/platsmp.c:137:3-9: ERROR: missing > > of_node_put; acquired a node pointer with refcount incremented on line 128, > > but without a corresponding object release within this function. > > > > > > > > > > > > > > > > We have a floating patch for this: > > > > > https://www.spinics.net/lists/arm-kernel/msg694544.html > > > > > > > > > > Andreas: Can you please take a second look at the patchset submitted > > by Linus > > > > > Walleij and Russel for simplifying the Actions startup code? > > > > > > > > Andreas wrote a version of simplifying secondary startup in the > > > > same spirit as Russell's patches, and it's merged and all > > > > is fine I think. > > > > > > > > > > Oops. I think I missed that! Can you please point me to that patch? And > > how it > > > got merged? I did the PR for actions stuff this time and haven't > > included any > > > mach-actions patches. > > > > I just did git log arch/arm/mach-actions but I think it came in quite some > > time > > ago, not last merge window: > > > > But you see: > > commit 6c2eb3e76fb84e2eb46d484f71fab469c0d9532c > > "ARM: owl: smp: Drop owl_secondary_boot()" > > commit bad29933fef76fb6ee577f4a0b6d145c1f52f663 > > "ARM: owl: smp: Use __pa_symbol()" > > commit 18cfd9429d8a82c49add8f3ca9d366599bfcac45 > > "ARM: owl: smp: Drop bogus holding pen" > > > > platsmp.c looks just fine these days. Except for what Wei's patch is > > fixing, > > of_node_put(). > > > > Nope. platsmp.c still requires some cleanup like removing the redundant > bootlock and pen_release flag as pointed out by Russel. Andreas just > replied to your cleanup patches but there was no follow up since that. So, > I guess we can just apply Russell's patches and this patch once Andreas is > fine with it (it looks good to me though). No. My patches are in my tree queued for this merge window. They are part of a series that can not be broken up and merged separately because all the per-platform patches need to be merged before the final patch "ARM: smp: remove arch-provided "pen_release"" otherwise the platforms break. I thought that was already explained. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up