From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66CB533F5B5 for ; Fri, 8 May 2026 18:08:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778263724; cv=none; b=srez+/f+eo6LFddfcrIuK33E+hhGB7E884pi2uUvsuFwuuETv16r9bmR3Qj7C/qvdAaAg7LOMI/Eh0xxIngRGUbkWOm4p/uozG6O95Z1StXO4auPjMothtynJXLNjQvZN0Ergu8TnwSF3YjZpjHkgLCnkf9SUF8PXsaVs8PFD3w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778263724; c=relaxed/simple; bh=6Pl86tXT92Er0RfFT3K0Z8dBBl2dijXzq/pVqogOWX8=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=EMxnNxvdFpQJ4XrEgFXAWQJLxxNuqIL2qnybcvbcq4VX9RGudmp7+rbwHqQTzrbB2f0fKjPm5CzKrjeqAA7rBH5eArTegDwklh+D3rP5gBgvbq1KdlMYMo3IViSXkPts+h3U27kbUMrW/kdAQA0QAnzBDBstznadBAkW7phhaVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JjTghZpp; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=DSnBw+Sl; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JjTghZpp"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="DSnBw+Sl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778263722; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZB2AN7WFWE7lBaJ7lcZVxXeo6nItoJqZYFWVy1xfbR8=; b=JjTghZppGBsDLFChhYzx86UO6WjdVmpU9NjMBzT71faKrYysQtu5UubkQuMIu3VnWg6HF3 BD1nrhE5Y3LS2mlYqrN54RdpdIPX1Wg5sLzYe1IBruMnqLy7YmZ4kz4InDsoCFSqD7m8yh bOy7qrgWErFhLHMlvkJW+PciKs/JnUM= Received: from mail-yx1-f71.google.com (mail-yx1-f71.google.com [74.125.224.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-349-P-RA7xdhMIeuh0fKJpzA5Q-1; Fri, 08 May 2026 14:08:41 -0400 X-MC-Unique: P-RA7xdhMIeuh0fKJpzA5Q-1 X-Mimecast-MFC-AGG-ID: P-RA7xdhMIeuh0fKJpzA5Q_1778263721 Received: by mail-yx1-f71.google.com with SMTP id 956f58d0204a3-65c7091141aso2477797d50.1 for ; Fri, 08 May 2026 11:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1778263721; x=1778868521; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=ZB2AN7WFWE7lBaJ7lcZVxXeo6nItoJqZYFWVy1xfbR8=; b=DSnBw+SlQl69yGyGl58G3q/vSe5ClBFbe0e556bJAZPIcR5lActWsfG6Ci1Ru6HEQU T/2JNAcy4Fp2M1fwtAZuUQcMwKNIc71nrcc+6xJL4KjHuMnIDfTf4iMQrd3VRtGLJipe w0CLt0I/EeJp7n+u24cbQkT89n9lszbfy++A/z+0TI4XDvtzlCJhRVhf9/yESYP02tk1 QUvbFddmiS8rh+5s/K4yfcQdP5u9Qym6O6FLdGOmdiZU4lkziTP6pnsi1iK4JX8V4ufA wqGxsiZGcxpYo7Xf/RBnUxzUnRQuVzsihZ2KQUy55dfXw6NSNZAGGJsnyf45/XllSRMv zhUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778263721; x=1778868521; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZB2AN7WFWE7lBaJ7lcZVxXeo6nItoJqZYFWVy1xfbR8=; b=Sg0vv5/anUCvULy5m6imRVzR8Dq+zP0geu0doqCUvSvbaxotR1oKCTmvrgNVKXulpL +Nb/pZu2+J1it0H27brSea+nkj50DphoDtpZSpOy79yrY68aiHAjenWkWiDNoON1q+vN scRlUjxv3pXNtW4JcwtGCwebFj7nRQopC28Rl/WhW4OXBayZ+1FlpGXJ0Vuyc15Zme3T fjpTKtGf/7Hgx2WamE7F9oUFvEZtEnqiyWycV0f1m5b9wRy423n/t0ZpFpbJ3h/zFCjG vk4ARJJjUpK3BCJnHbMt2CcExyW7BZJ6BfpE4Th83OIHS+8Y++TZ38yoFGzE8A8VlhBi 2Zkw== X-Forwarded-Encrypted: i=1; AFNElJ98MsxuUKUc+Hh3V1eWb3tcpDh1Szb7rBTaMWOq8OGsjSHyeQb9A56xQ82kcJoKjoBt3r7kvJ/tq4uzIDI=@vger.kernel.org X-Gm-Message-State: AOJu0YyrCxqfNEMF4WnbByF3NGjuHNJ8XPM0kG9bzgwNEjwrGJzXWw5h 8aizA/Xfoa/mPg50HKqq2XLGNPHuKTsQm6HfNRW8pBZ8Y8+ONu+8vvh0xuf5nCXimrMVvepNg1q IhVWRJXWNU1iOPiRv7YJcychkZj5x0X5kbZlT0Lw1KaH/OyBuxn0daIAW8js4gaQCyA== X-Gm-Gg: Acq92OHIejEaoVa7XxQTMEVLSN3kEMzq3k21fG+D5pUcvpAHgfY0vKmkVZM3UPHsHMd utuaiFu3G4c8dmhEUdGmr227L1sdgCLmpB+B5vxiqYm7/vo69CdgsRb1xRVHzvJe6sLwp9vZTwb rqF6AWtqSu5zyoXo4hHhs3My9I0Qk58xGrj5wi4Yyxf41CwfsfZmDIWVLkoefarLv1s1YslwmNs dghWrcFe2jrtlIgQ+H4kR6tiuXuLJpjoydKkokGe9HyPrOI6O8Y+9Xvy2T1sBycN/jZhxu3i4sj 0sZpr+Y96nXfXHLLCqTxcbZ/dTdiprqPtF1vDzrTiVlUPm/HS3rYCAMmxBZ3gP8CCuHainV1e6N rsW5ujIIOIh2WCc7r4GKQpKCYRZ7rYhRZnxTpAINaDYNzGaWutkqN X-Received: by 2002:a05:690e:4849:b0:652:f423:47e5 with SMTP id 956f58d0204a3-65c799bbb96mr9223426d50.42.1778263720457; Fri, 08 May 2026 11:08:40 -0700 (PDT) X-Received: by 2002:a05:690e:4849:b0:652:f423:47e5 with SMTP id 956f58d0204a3-65c799bbb96mr9223395d50.42.1778263719979; Fri, 08 May 2026 11:08:39 -0700 (PDT) Received: from li-4c4c4544-0032-4210-804c-c3c04f423534.ibm.com ([2600:1700:6476:1430::29]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-65d969fb40dsm1155285d50.4.2026.05.08.11.08.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2026 11:08:39 -0700 (PDT) Message-ID: Subject: Re: [PATCH] nilfs2: fix backing_dev_info reference leak From: Viacheslav Dubeyko To: Ryusuke Konishi Cc: Shuangpeng Bai , Viacheslav Dubeyko , Christian Brauner , linux-nilfs@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 08 May 2026 11:08:38 -0700 In-Reply-To: References: <20260507155021.941895-1-shuangpeng.kernel@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.0 (3.60.0-1.fc44app2) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Fri, 2026-05-08 at 11:05 +0900, Ryusuke Konishi wrote: > On Fri, May 8, 2026 at 6:41=E2=80=AFAM Viacheslav Dubeyko wrote: > >=20 > > On Thu, 2026-05-07 at 11:50 -0400, Shuangpeng Bai wrote: > > > setup_bdev_super() already initializes sb->s_bdev and takes a > > > reference on the block device backing_dev_info when assigning sb->s_b= di. > > >=20 > > > nilfs_fill_super() takes another reference to the same > > > backing_dev_info and stores it in sb->s_bdi again. The extra > > > reference is not paired with a matching bdi_put(), since > > > generic_shutdown_super() releases sb->s_bdi only once. > > >=20 > > > Drop the redundant bdi_get() in nilfs_fill_super(). The single > > > reference taken by setup_bdev_super() is enough and is released > > > during superblock shutdown. > > >=20 > > > Fixes: c1e012ea9e83 ("nilfs2: use setup_bdev_super to de-duplicate th= e mount code") > > > Signed-off-by: Shuangpeng Bai > > > --- > > > fs/nilfs2/super.c | 2 -- > > > 1 file changed, 2 deletions(-) >=20 > Acked-by: Ryusuke Konishi >=20 > Viacheslav, >=20 > Could you please apply this directly? > I have also verified the fix and confirmed that the Fixes tag > correctly identifies the origin of the leak for backporting. >=20 Applied. Thanks, Slava.