Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp853632ybl; Thu, 12 Dec 2019 06:02:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzdGExK4L2zvKJDhecYvavyyHBd0CPisXqKXkt7XA4Aly7iv8yc9vvY+jmZb60VioEi/Go0 X-Received: by 2002:a05:6830:1715:: with SMTP id 21mr8533026otk.67.1576159338913; Thu, 12 Dec 2019 06:02:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576159338; cv=none; d=google.com; s=arc-20160816; b=QZIerSlqj52GIRbyXhblJTv0gR6NUFXBpk8Ir1y0Ts2B0V3YGzqjSXbKXVDiUdpVpd 1Es4SMZXpj9iwljupYeGDy3OG8uyNCb0+u9VeL4NwnLwu2/xfNKSvoJ4itO1IfBxAC4a grK+vjkAD2CSxkJbpqmnUDMICucNt/LaOQksyBRBFcnRozKhYs+gejWr78LWXUXnoe6I TJ9CYntqytNEdmRXyCgBTRsKZx3C2d5IkTssxRbBwfImlTtjtZmALGSTNaJZxAaN7PKN 1k7Qrl0FGL7X7HHt/aVYXUAo/G/VivHP7PGFYnkzy9FfkA2TKsv1dc2vfqEKtYj5MKVh qZXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=edrllggi3NtoqCqRExhvHilxEwYMbR+YZf1vHVZ2QT0=; b=gjlk6z6t8IYA6DAeHRuT11LY0DhsTfqGOCk+qul0E02HtAk9YheuQAaIz80VsOeazo 1S211tSAuR3EDqzAy8k9PXUNE20A0cfWUbImOt5EplhPriQXR7xXZDv5GEJrzQJDoVPg 6eVrZVmt0EFA+34MzKND9KR4q2F5eVlejqRNjKI1pjlzJm3slyIudhgrAceYlYFgb0Qx TFSrd8tAFRVlfUaPc1falzyB2K39e/ylA0PmjCanDKsdAIEUe7oR3aUC4URZQ41RzdSc RMYxWOJgpCXL5NH4b/5lrGu2nGI9m6iGuOtcPFvg70R2FtazUde4cYnAELA6+oJTQQlo cUFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rmi1gkkd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7si3205806otl.133.2019.12.12.06.02.04; Thu, 12 Dec 2019 06:02:18 -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=pass header.i=@kernel.org header.s=default header.b=rmi1gkkd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729630AbfLLOAQ (ORCPT + 99 others); Thu, 12 Dec 2019 09:00:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:54994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729524AbfLLOAQ (ORCPT ); Thu, 12 Dec 2019 09:00:16 -0500 Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 922A021655; Thu, 12 Dec 2019 14:00:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576159215; bh=w6j7nt8EVQhGqeeabig/3mMtxBUSwyE1b0/3qRLnlMY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=rmi1gkkd4I+2394B3wixXdiXO3A3D0r2w2dH7yVZGFDe1Z8I0ja30fsJ2t8IZ+rCh Duh2X+pXYS65dQtBq5brAD93r3mic178CAaeGzI1CbWc5IyIJ4BKhxWIqg+jTrDGWr HUvkRctVRdbDGf5w3EXNugc6xO4/q/zWl++5AmOk= Received: by mail-qk1-f173.google.com with SMTP id r14so1618225qke.13; Thu, 12 Dec 2019 06:00:15 -0800 (PST) X-Gm-Message-State: APjAAAWpxBDC38pzafU1+iiYfc2q4ZKd66/w08OALT6gF81m3mqlQhTz MTgHxZ5Vg2XRB2MSw7gF2TGcwbP7BhM/0X59WQ== X-Received: by 2002:ae9:f205:: with SMTP id m5mr8219015qkg.152.1576159214753; Thu, 12 Dec 2019 06:00:14 -0800 (PST) MIME-Version: 1.0 References: <1575965693-30395-1-git-send-email-frowand.list@gmail.com> <20191211201856.GA21857@bogus> <486ce60c-8a74-7baf-1054-c81c83e79e56@gmail.com> In-Reply-To: <486ce60c-8a74-7baf-1054-c81c83e79e56@gmail.com> From: Rob Herring Date: Thu, 12 Dec 2019 08:00:03 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] of: refcount leak when phandle_cache entry replaced To: Frank Rowand Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 12, 2019 at 5:17 AM Frank Rowand wrote: > > On 12/11/19 2:18 PM, Rob Herring wrote: > > On Tue, 10 Dec 2019 02:14:53 -0600, frowand.list@gmail.com wrote: > >> From: Frank Rowand > >> > >> of_find_node_by_phandle() does not do an of_node_put() of the existing > >> node in a phandle cache entry when that node is replaced by a new node. > >> > >> Reported-by: Rob Herring > >> Fixes: b8a9ac1a5b99 ("of: of_node_get()/of_node_put() nodes held in phandle cache") > >> Signed-off-by: Frank Rowand > >> --- > >> > >> Checkpatch will warn about a line over 80 characters. Let me know > >> if that bothers you. > >> > >> drivers/of/base.c | 2 ++ > >> 1 file changed, 2 insertions(+) > >> > > > > Applied, thanks. > > > > Rob > > > > If the rework patch of the cache that you posted shortly after accepting > my patch, then my patch becomes not needed and is just extra noise in the > history. Once your patch finishes review (I am assuming it probably > will), then my patch should be reverted. The question is what to backport: nothing, this patch or mine? My thought was to apply this mainly to backport. If you're fine with nothing or mine, then we can drop it. I'm a bit nervous marking mine for stable. Rob