From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796390605; b=huRQfjQW8p4DLVAwd5V5JWdPeeGsAz8RW5SjOe9lew/o39sW90btORVXk7tAtNHLkELe kboMo6N24b2IhmaxG9qxCqjUueKiPARo+cgKJ3UiCERVKyRTMD86kFIKTjWzdPaaTtwzl s55sGnTnkamAEyC3Bs7qc8NrY+TliQ8QnH+D2p/n1vmhIV6jISH/DBWdU2qYBfF094hSk W5/VhQm1r4xz0vdjFzWovNODzkBR0eAszmDEtjlYBLu3VW+vhmsna3dex7BS3sZLSn4Gv SLCYJWVXCVEcHtzeUnT6igyNCYITnPUYYTB08vcIgzShb17XatuP1TdRNI4A1upqZbQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796390605; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=8EPoM2btQDSGzkANJE1g2HQXHsv4pXXB3ksb2GIbmO4=; b=cVXonKfPzOvIWIDLE5YF9uloidE5A/kCZj8v4DTlKOIc4fNNFGikJWf2Tv900OAfvDL3 cTrsbfYkO7gQGyKb6ZcSfUSKcURrg5pAoLl6CtA6J7GeumekxjRivYeDq9doF4bqQ9xFc JmNKTGY+xtJ4vcjgxNBsrCU93UWeFUHi9rf85AWfR6/+eUFzF6QzXGFjpycLgNF2Zt4Tj PcP1bxLDe4SQPzI70C1xFI3hmv20eI6f3juh9NJCv4+v66dg+UnX9GB2uEyMsPW9xDB2j 29rfvhQtN7xQDFsnW8nZ1HJvdzhyk5d5oi9eTRYp8ABnFC4xOZsMeMlY2stzylK1kbA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aqXO+5Fi; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A25E606A332 for ; Fri, 4 Dec 2026 13:23:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aqXO+5Fi Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EF3C1F000C2; Fri, 4 Dec 2026 13:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796390604; bh=8EPoM2btQDSGzkANJE1g2HQXHsv4pXXB3ksb2GIbmO4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=aqXO+5Fi1c7fp3Qsm1syZvMfostj0bEQRgNH1Q/RHXIqd0Xvd+KDOzMUZsodHmFuQ UQm9WGJq+PVrablamqnicEu9Xr9WNp7fICJp9frd5AWPDsdAc1I9CX8HCdaoAUF5t2 4L7nX0GhCoXg/nf/gAX3gDanPaN4emEO09ZUCb8KfQHK+Qir0GdPJRs7f50X8SGJiT YEbqmIEJNR1GrZe/hJRZakxIFpLrd8Mo3pKZm3v7UJdS+PkR8zG8F7H/AWLazy48kd 8EhO99sYD/3xx6mnQq1COBhbwSEzZWtXL0BU0WrEO5XiLVRcmFRx8S6Y6SOQf55KfX Cmn02BgieR8Gg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] sbus: fix device node leak in openprom_init() Reply-To: sashiko-reviews@lists.linux.dev To: "Yuwei Chen" <2522445001@qq.com> Cc: sparclinux@vger.kernel.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 13:23:24 +0000 X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] sbus: Fixes tag cites unrelated commit a88b5ba8bd8a -- commit 5ed223b9ec480bcbbd1c3a4665050fd8fa592969 Author: Yuwei Chen <2522445001@qq.com> > sbus: fix device node leak in openprom_init() > > openprom_init() looks up "/" with of_find_node_by_path() and passes > that node to of_get_child_by_name(). The child lookup takes its own > reference on "options" and does not drop the root. The root pointer > is discarded. "options" is kept for the life of the driver and is not > dropped in openprom_cleanup(). > > The root reference has been leaked since sparc started using the > generic OF lookup, which increments the refcount. The "options" > reference was added when the open-coded sibling walk was replaced by > of_get_child_by_name(). > > Drop the root after the child lookup. Drop "options" when the module > unloads. > > Fixes: a88b5ba8bd8a ("sparc,sparc64: unify kernel/") > Fixes: df58f37b5d8f ("sbus: Use of_get_child_by_name helper") > Cc: stable@vger.kernel.org > Signed-off-by: Yuwei Chen <2522445001@qq.com> [Severity: Low] Does the first Fixes tag point to the right commit? Commit a88b5ba8bd8a ("sparc,sparc64: unify kernel/") only moved files under arch/sparc/ and updated Makefiles. The commit that switched sparc to the refcounting generic of_find_node_by_path() implementation in drivers/of/base.c is: Fixes: 1ef4d4242d9c ("Consolidate of_find_node_by routines") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/tencent_DC660D945BB= BF4A260290AD4396EBF242909@qq.com?part=3D1