On Fri, Jul 19, 2024 at 09:43:36PM +0800, libaokun@xxxxxxxxxxxxxxx wrote: > From: Baokun Li <libaokun1@xxxxxxxxxx> > > [ Upstream commit 85b08b31a22b481ec6528130daf94eee4452e23f ] > > Export fscache_put_volume() and add fscache_try_get_volume() > helper function to allow cachefiles to get/put fscache_volume > via linux/fscache-cache.h. > > Signed-off-by: Baokun Li <libaokun1@xxxxxxxxxx> > Link: https://lore.kernel.org/r/20240628062930.2467993-2-libaokun@xxxxxxxxxxxxxxx > Signed-off-by: Christian Brauner <brauner@xxxxxxxxxx> > Stable-dep-of: 522018a0de6b ("cachefiles: fix slab-use-after-free in fscache_withdraw_volume()") > Stable-dep-of: 5d8f80578907 ("cachefiles: fix slab-use-after-free in cachefiles_withdraw_cookie()") > Signed-off-by: Baokun Li <libaokun1@xxxxxxxxxx> > --- > fs/fscache/internal.h | 2 -- > fs/fscache/volume.c | 14 ++++++++++++++ > include/linux/fscache-cache.h | 6 ++++++ > 3 files changed, 20 insertions(+), 2 deletions(-) All now queued up, thanks. greg k-h