linux-stable/fs/ocfs2
Artem Chernyshev 0fe11dd3fe fs: ocfs2: namei: check return value of ocfs2_add_entry()
[ Upstream commit 6b72e5f9e7 ]

Process result of ocfs2_add_entry() in case we have an error
value.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Link: https://lkml.kernel.org/r/20230803145417.177649-1-artem.chernyshev@red-soft.ru
Fixes: ccd979bdbc ("[PATCH] OCFS2: The Second Oracle Cluster Filesystem")
Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Kurt Hackel <kurt.hackel@oracle.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:20:09 +02:00
..
cluster
dlm
dlmfs ocfs2: dlmfs: fix error handling of user_dlm_destroy_lock 2022-06-09 10:21:24 +02:00
Kconfig
Makefile
acl.c
acl.h
alloc.c ocfs2: fix data corruption after conversion from inline format 2021-10-27 09:56:51 +02:00
alloc.h
aops.c ocfs2: fix data corruption after failed write 2023-04-05 11:23:42 +02:00
aops.h
blockcheck.c
blockcheck.h
buffer_head_io.c
buffer_head_io.h
dcache.c
dcache.h
dir.c
dir.h
dlmglue.c ocfs2: fix freeing uninitialized resource on ocfs2_dlm_shutdown 2023-04-20 12:10:24 +02:00
dlmglue.h
export.c
export.h
extent_map.c
extent_map.h
file.c ocfs2: check new file size on fallocate call 2023-06-21 15:45:37 +02:00
file.h
filecheck.c
filecheck.h
heartbeat.c
heartbeat.h
inode.c
inode.h
ioctl.c
ioctl.h
journal.c ocfs2: fix memory leak in ocfs2_mount_volume() 2023-01-14 10:15:19 +01:00
journal.h ocfs2: fix memory leak in ocfs2_mount_volume() 2023-01-14 10:15:19 +01:00
localalloc.c
localalloc.h
locks.c
locks.h
mmap.c
mmap.h
move_extents.c ocfs2: fix non-auto defrag path not working issue 2023-03-11 16:39:57 +01:00
move_extents.h
namei.c fs: ocfs2: namei: check return value of ocfs2_add_entry() 2023-09-19 12:20:09 +02:00
namei.h
ocfs1_fs_compat.h
ocfs2.h Revert "ocfs2: mount shared volume without ha stack" 2022-08-03 12:00:43 +02:00
ocfs2_fs.h
ocfs2_ioctl.h
ocfs2_lockid.h
ocfs2_lockingver.h
ocfs2_trace.h
quota.h
quota_global.c
quota_local.c
refcounttree.c
refcounttree.h
reservations.c
reservations.h
resize.c
resize.h
slot_map.c Revert "ocfs2: mount shared volume without ha stack" 2022-08-03 12:00:43 +02:00
slot_map.h
stack_o2cb.c
stack_user.c
stackglue.c ocfs2: fix memory leak in ocfs2_stack_glue_init() 2023-01-14 10:15:17 +01:00
stackglue.h
suballoc.c ocfs2: fix a deadlock when commit trans 2022-02-01 17:25:41 +01:00
suballoc.h
super.c ocfs2: fix use-after-free when unmounting read-only filesystem 2023-06-21 15:45:37 +02:00
super.h
symlink.c
symlink.h
sysfile.c
sysfile.h
uptodate.c
uptodate.h
xattr.c ocfs2: Switch to security_inode_init_security() 2023-05-30 12:57:56 +01:00
xattr.h