[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1043618.1724861676@warthog.procyon.org.uk>
Date: Wed, 28 Aug 2024 17:14:36 +0100
From: David Howells <dhowells@...hat.com>
To: Baokun Li <libaokun@...weicloud.com>
Cc: dhowells@...hat.com, Markus Elfring <Markus.Elfring@....de>,
netfs@...ts.linux.dev, linux-fsdevel@...r.kernel.org,
linux-erofs@...ts.ozlabs.org, Jeff Layton <jlayton@...nel.org>,
stable@...nel.org, LKML <linux-kernel@...r.kernel.org>,
Christian Brauner <brauner@...nel.org>,
Gao Xiang <hsiangkao@...ux.alibaba.com>,
Hou Tao <houtao1@...wei.com>, Jingbo Xu <jefflexu@...ux.alibaba.com>,
Yang Erkun <yangerkun@...wei.com>, Yu Kuai <yukuai3@...wei.com>,
Zizhi Wo <wozizhi@...wei.com>, Baokun Li <libaokun1@...wei.com>
Subject: Re: [PATCH] cachefiles: fix dentry leak in cachefiles_open_file()
Baokun Li <libaokun@...weicloud.com> wrote:
> > You couldn't do that anyway, since kernel_file_open() steals the caller's ref
> > if successful.
> Ignoring kernel_file_open(), we now put a reference count of the dentry
> whether cachefiles_open_file() returns true or false.
Actually, I'm wrong kernel_file_open() doesn't steal a ref.
David
Powered by blists - more mailing lists