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=1796299546; b=Fe0G6NPGVYmyS/chUS3XC1QNBWrAnjGxfwWdI9is3Qy18Ki1o2tKTWvAkxrJsTDU+Pk9 WVcDU+0Ihq76uLc0h7XzjRP+6RbpZlWUf7sYVkmPjxqEwkJBovJ93bss7fmzqi0tsiFki UsgbQzdAXwRYdUfvTihqeM/S49RYSsIfmN68d7PeeAvZRDnRgasndb7ULBDUaDmUioG6T Fisu2ZKehZrTL4mJCZT5Dk/wbLA43qP/jLTygYdmvVzJ5QTklKeMUk5MSQ7cMBQkcw5Rj hQ1jV4LkYFijDgTQHqq8UDaETf8+Khy46yDpSMqIUAaIlf72I4wmBBUn7NAyU5STRbQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796299546; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=+woWVfmgAkTN64wWPGnPRLmyp+z96JFbcZ1spq/4j2E=; b=3us4XBnWPRqhhponIBZnR28hnNs6VZIPaqlndRDVjVPDHK0MLMMrmZEh69QnNHU38YC1 XpzOHcq2jm1LPlJYpGENREfp1UVMEigHqPjNxp4Xl8voLc46htwa2xakD0UE4jU31gBiV vwb4y38BuLL2z6Spm5TP0qL3kpn20uNq5KK+7+2YB3858s9ksgPNROjODfdvqyf7K90du 87jU/uJkUTzU/GdYG4X9lOeaobB+p4OHm2/BX7Qe0NxZK8/J/NEFXu4Wt2xq0jumZ7trQ mzr4n/vGmUn68D0wr+P9L/nz7BeSSfOVCJgDPEMTEW5d1Yl4UnBrHljKEczftmikK1A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=P690jifS; 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 9D250607A7FD; Thu, 3 Dec 2026 12:05:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=P690jifS Received: by smtp.kernel.org (Postfix) with ESMTPSA id C26361F00896; Thu, 3 Dec 2026 12:05:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796299546; bh=+woWVfmgAkTN64wWPGnPRLmyp+z96JFbcZ1spq/4j2E=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=P690jifSh56QCD/axOiEWSb/8vuTyiKoyda1Em1Du3wy8+QFQFzdsQzmqru+YKwDN R1mkaUscWvCbHYh+6bjD8X9ljz7bK5HckVP3X87mkHrRwfppeEGDwmpoUaC+vFxeIM Nog2xQT3dkexOZkgUeAYRk4kOjPhoAFrla18iKmw= Date: Thu, 3 Dec 2026 13:05:32 +0100 From: Greg Kroah-Hartman To: Poil Zero Cc: Alice Ryhl , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Christian Brauner , Carlos Llamas , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Subject: Re: [PATCH v4] rust_binder: unregister shrinker if binderfs initialization fails Message-ID: <2026120300-backed-deprive-58c8@gregkh> References: <20261203032206.1039135-1-poilandgginchi@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261203032206.1039135-1-poilandgginchi@gmail.com> On Thu, Dec 03, 2026 at 11:22:06AM +0800, Poil Zero wrote: > BinderModule::init() registers the Binder shrinker before initializing > binderfs. If init_rust_binderfs() fails, the driver returns an error > but leaves the shrinker registered and its list_lru allocated. > > Unregister the shrinker on this error path before destroying its > list_lru so that active reclaim callbacks finish before teardown. > Return the original binderfs error. > > Fixes: eafedbc7c050 ("rust_binder: add Rust Binder driver") > Signed-off-by: Poil Zero > --- > Changes in v4: > - Resend with git send-email to preserve the diff headers. > > Changes in v3: > - Match the From and Signed-off-by names. You might have matched it, but that's not the correct one to use, please fix and use your real name for both, I can't take this as-is. thanks, greg k-h