OpenCloudOS-Kernel/fs/fuse
yangyun f36df5cc86 fuse: fix memory leak in fuse_create_open
commit 3002240d16494d798add0575e8ba1f284258ab34 upstream.

The memory of struct fuse_file is allocated but not freed
when get_create_ext return error.

Fixes: 3e2b6fdbdc ("fuse: send security context of inode on file")
Cc: stable@vger.kernel.org # v5.17
Signed-off-by: yangyun <yangyun50@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-12 11:11:26 +02:00
..
Kconfig dax: remove CONFIG_DAX_DRIVER 2021-12-04 08:58:51 -08:00
Makefile fuse: move ioctl to separate source file 2021-04-12 15:04:30 +02:00
acl.c fs.idmapped.v6.3 2023-02-20 11:53:11 -08:00
control.c fuse: convert to ctime accessor functions 2023-07-24 10:29:59 +02:00
cuse.c fuse: fix UAF in rcu pathwalks 2024-08-29 17:33:33 +02:00
dax.c fuse: dax: set fc->dax to NULL in fuse_dax_conn_free() 2023-12-20 17:01:52 +01:00
dev.c fuse: Initialize beyond-EOF page contents before setting uptodate 2024-08-29 17:33:11 +02:00
dir.c fuse: fix memory leak in fuse_create_open 2024-09-12 11:11:26 +02:00
file.c fuse: update stats for pages in dropped aux writeback list 2024-09-12 11:11:26 +02:00
fuse_i.h fuse: fix UAF in rcu pathwalks 2024-08-29 17:33:33 +02:00
inode.c fuse: fix UAF in rcu pathwalks 2024-08-29 17:33:33 +02:00
ioctl.c fuse: ioctl: translate ENOSYS in outarg 2023-06-21 11:17:36 +02:00
readdir.c fuse: cache btime 2023-08-21 12:14:59 +02:00
virtio_fs.c virtiofs: forbid newlines in tags 2024-08-29 17:33:35 +02:00
xattr.c fuse: use unsigned type for getxattr/listxattr size truncation 2024-09-12 11:11:26 +02:00